File: /www/wwwroot/www.snodshop.com/Home/Tpl/Order/wx.html
<!DOCTYPE html>
<html>
<head>
<title>{$info.name}</title>
<meta charset="utf-8" />
<link rel="dns-prefetch" href="http://res.wx.qq.com/">
<link rel="dns-prefetch" href="http://mmbiz.qpic.cn/">
<meta content="yes" name="apple-mobile-web-app-capable"/>
<meta content="yes" name="apple-touch-fullscreen"/>
<meta content="telephone=no" name="format-detection"/>
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0, user-scalable=no" name="viewport">
<meta name="description" content="{$info.brief}">
<meta name="keywords" content="{$info.brief}">
<meta name="author" content="www.akmall.cc">
<style>
body{background:#000;text-align:center;}
.share-image img{max-width:100%;}
.scroll{position: fixed;left:0;bottom:0;font-size:12px;width:100%;z-index:999999;color:#fff;font-size:16px;margin:0;padding:5px 0;overflow:hidden;text-align:left;}
.scroll .site-flex{height:35px;width:100%;overflow: hidden;position: relative;background-size: 50px;margin: 0 auto;max-width: 600px;}
.scroll li{margin-bottom: 5px;font-size:12px;list-style:none;}
</style>
</head>
<body>
<notempty name="weixin">
<div class="scroll"><div class="site-flex">
</div></div>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript">
var appid='{$weixin.appId}',
timestamp={$weixin.timestamp},
nonceStr="{$weixin.nonceStr}",
signature="{$weixin.signature}",
title='{$info.name}',
description='{$info.brief}',
link='{$url.link}',
imgUrl='{$info.image|imageUrl}',
order='{$url.order}';
wx.config({
debug: true,
appId: appid,
timestamp: timestamp,
nonceStr: nonceStr,
signature: signature,
jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage','hideMenuItems',]
});
wx.ready(function(){
//wx.hideMenuItems({menuList: ["menuItem:favorite","menuItem:share:qq","menuItem:share:weiboApp","menuItem:copyUrl","menuItem:openWithQQBrowser","menuItem:openWithSafari","menuItem:share:email"],});
var shareData = {
title: title,
desc: description,
link: link,
imgUrl: imgUrl,
success: function () {window.location.href =order; }
};
wx.onMenuShareAppMessage(shareData);
wx.onMenuShareTimeline(shareData);
});
wx.error(function (res) {
alert(res.errMsg);
});
</script>
<else />
window.history.back();
</notempty>
</body>
</html>