<?php /* Smarty version 2.6.17, created on 2018-05-25 16:01:16
         compiled from bottom.html */ ?>
<div class="v_block"></div>
<?php if (! $this->_tpl_vars['cutScreenInfo'] && $this->_tpl_vars['display'] == 1): ?>
<!--nav begin-->
<div class="v_nav">
	<dl <?php if ($this->_tpl_vars['action'] != 'gift'): ?>class="on"<?php endif; ?>>
    	<a href="<?php echo $this->_tpl_vars['listUrl']; ?>
">
        <dt>
        	<p class="d"><img src="<?php echo $this->_tpl_vars['platform']['home_img_url']; ?>
"></p>
            <p class="c"><img src="<?php echo $this->_tpl_vars['platform']['home_img_url_hover']; ?>
"></p>
        </dt>
        <dd><?php echo $this->_tpl_vars['platform']['home_img_text']; ?>
</dd>
        </a>
    </dl>    
    <dl <?php if ($this->_tpl_vars['action'] == 'gift'): ?>class="on"<?php endif; ?>>
    	<a href="<?php echo $this->_tpl_vars['giftsUrl']; ?>
">
    	<dt>
        	<p class="d"><img src="<?php echo $this->_tpl_vars['platform']['gift_img_url']; ?>
"></p>
            <p class="c"><img src="<?php echo $this->_tpl_vars['platform']['gift_img_url_hover']; ?>
"></p>
        </dt>
        <dd><?php echo $this->_tpl_vars['platform']['gift_img_text']; ?>
</dd>
        </a>
    </dl>
    <dl>
    	<a href="<?php echo $this->_tpl_vars['platform']['follow_url']; ?>
" target="_blank">
    	<dt>
        	<p class="d"><img src="<?php echo $this->_tpl_vars['platform']['follow_img_url']; ?>
"></p>
            <p class="c"><img src="<?php echo $this->_tpl_vars['platform']['follow_img_url_hover']; ?>
"></p>
        </dt>
        <dd><?php echo $this->_tpl_vars['platform']['follow_img_text']; ?>
</dd>
        </a>
    </dl>
    <!--<dl>
    	<a href="#">
    	<dt>
        	<p class="d"><img src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
/public/static/img/nav_icon_4.png"></p>
            <p class="c"><img src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
/public/static/img/nav_icon_4_on.png"></p>
        </dt>
        <dd>分享</dd>
        </a>
    </dl>-->
</div>
<!--nav end-->
<?php endif; ?>
<?php if (! $this->_tpl_vars['notShowWeixinShare'] && ! $this->_tpl_vars['weixinShare']['notAllow']): ?>
<script type="text/javascript">

function share_button(e, title, url, img, content) {
    console.log(title);
    var u = navigator.userAgent.toLowerCase();
    var isApple = /iphone|ipad|ipod|ios/i.test(u);
    var isAndroid = /android/i.test(u);
    //isApple = true
    if (isApple || isAndroid) {
        e.parent().show();
        e.click(function()
        {
            WX_share(url, content, title, img);
        })
        
    } else {
        e.parent().hide();
    }
}

/*
function share_ios(title, url, img, content) {
    window.location = 'myscheme://share_title/' + title + '/share_url/' + url + '/share_img/' + img + '/share_content/' + content;
}

function share_android(title, url, img, content) {
    window.AndroidBridge.openShare(title, url, img, content);
}
*/

var URL = window.location.href, site;
site = 1;

<?php if ($this->_tpl_vars['weixinShare']['weixinShare_title']): ?>
new brickjs.MShare({
	website : 'sg',
    site: site,
    catalog: "",
    sUrl: "<?php echo $this->_tpl_vars['web_cfg']['url']; ?>
", //分享地址
    title: "<?php echo $this->_tpl_vars['weixinShare']['title']; ?>
",
    imgUrl: "<?php echo $this->_tpl_vars['weixinShare']['imgUrl']; ?>
",
    imgWidth: "640",
    imgHeight: "640",
    source_id : 1,
    source_table : 'onepage',
    desc: "<?php echo $this->_tpl_vars['weixinShare']['content']; ?>
",
    appKey: {
        tsina: "2412621184"
    },
    ralateUid: '1658402750',
    wxGuide: {
        imgUrl: '<?php echo $this->_tpl_vars['weixinShare']['imgUrl']; ?>
',
        width: 100,
        height: 100,
        style: {
            right: 0,
            top: 0
        }
    }
});
if ($('.share_button').length) {
    share_button($('.share_button'), '<?php echo $this->_tpl_vars['weixinShare']['title']; ?>
', '<?php echo $this->_tpl_vars['web_cfg']['url']; ?>
', '<?php echo $this->_tpl_vars['weixinShare']['imgUrl']; ?>
', '<?php echo $this->_tpl_vars['weixinShare']['content']; ?>
');
}
<?php else: ?>

var url = '<?php if ($this->_tpl_vars['weixinShare']['jump_url']): ?><?php echo $this->_tpl_vars['weixinShare']['jump_url']; ?>
<?php else: ?><?php echo $this->_tpl_vars['web_cfg']['url']; ?>
<?php endif; ?>';
var title = '<?php if ($this->_tpl_vars['weixinShare']['title']): ?><?php echo $this->_tpl_vars['weixinShare']['title']; ?>
<?php else: ?><?php echo $this->_tpl_vars['platform']['weixinShare_title']; ?>
<?php endif; ?>';
var img = '<?php if ($this->_tpl_vars['weixinShare']['imgUrl']): ?><?php echo $this->_tpl_vars['weixinShare']['imgUrl']; ?>
<?php else: ?><?php echo $this->_tpl_vars['platform']['weixinShare_img_url']; ?>
<?php endif; ?>';
var content = '<?php if ($this->_tpl_vars['weixinShare']['content']): ?><?php echo $this->_tpl_vars['weixinShare']['content']; ?>
<?php else: ?><?php echo $this->_tpl_vars['platform']['weixinShare_content']; ?>
<?php endif; ?>';

if ($('.share_button').length) {
    share_button($('.share_button'), title, url, img, content);
}

new brickjs.MShare({
	website : 'sg',
    site: site,
    catalog: "",
    sUrl: url, //分享地址
    title: title,
    imgUrl: img,
    imgWidth: "640",
    imgHeight: "640",
    source_id : 1,
    source_table : 'onepage',
    desc: content,
    appKey: {
        tsina: "2412621184"
    },
    ralateUid: '1658402750',
    wxGuide: {
        imgUrl: img,
        width: 100,
        height: 100,
        style: {
            right: 0,
            top: 0
        }
    }
});
<?php endif; ?>
</script>
<?php else: ?>
<script>
//关闭分享按钮
wx.hideOptionMenu();
</script>
<?php endif; ?>
</body>
</html>