<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta http-equiv="x-rim-auto-match" content="none">
<link href="tpl/Wap/default/common/css/jg.css" rel="stylesheet" type="text/css" >
<link href="tpl/Wap/default/common/css/css2.css" rel="stylesheet" type="text/css" >
<script src="tpl/Wap/default/common/js/jquery.1.11.1.min.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<title></title>
</head>
<body>
<div class="sl">
<img id="show1" src="tpl/Wap/default/common/images/gif1.gif" class="slraed">
<p id="show2" class="slraed1"></p>
</div>
<div class="man">
<img src="tpl/Wap/default/common/images/scbj.png" class="manbg">
<span class="top">
<span class="ordertime">To:<span class="zt">{pigcms:$shuju['to']}</span></span>
<img src="tpl/Wap/default/common/images/sx.png" class="slraed5" id="show6">
</span>
<span class="goodsname">{pigcms:$shuju['content']}</span>
<span class="top1">
<span class="ordertime1">Form:<span class="zt1">{pigcms:$shuju['from']}</span></span>
</span>
<span class="btn" id="show9">分享给Ta</span>
<div class="bom">
<img src="tpl/Wap/default/common/images/gif2.gif" class="slraed2" id="show3">
<span class="top2" id="show4">
<span class="ordertime2">ID:<span class="zt2">{pigcms:$shuju['qklid']}</span></span>
</span>
<p id="show5" class="slraed3">请复制ID到http://blockchain.xxxx.com查询</p>
</div>
</div>
<p class="text"></p>
<div class="fc" id="show7" onclick="hideTanchuang()"></div>
<img src="tpl/Wap/default/common/images/fx.png" class="fxicon" id="show8">
<script language="javascript">
function codefans(){
var myshow1=document.getElementById("show1");
var myshow2=document.getElementById("show2");
var myshow3=document.getElementById("show3");
var myshow4=document.getElementById("show4");
var myshow5=document.getElementById("show5");
var myshow6=document.getElementById("show6");
myshow1.style.display="none";
myshow3.style.display="none";
myshow2.style.display='block';
myshow4.style.display='block';
myshow5.style.display='block';
myshow6.style.display='block';
}
setTimeout("codefans()",10000);//10秒,可以改动
</script>
<script type="text/javascript">
//显示分享
window.onload=function ()
{
var myshow7=document.getElementById('show7');
var myshow8=document.getElementById('show8');
var mybtn=document.getElementById('show9');
mybtn.onclick=function()
{
myshow7.style.display='block';
myshow8.style.display='block';
}
}
//关闭分享
function hideTanchuang()
{
var guanbi=document.getElementById('show7');
var guanbi1=document.getElementById('show8');
guanbi.style.display='none';
guanbi1.style.display='none';
}
wx.config({
//debug: false,
appId: "{pigcms:$sign['appId']}",
timestamp: "{pigcms:$sign['timestamp']}",
nonceStr: "{pigcms:$sign['nonceStr']}",
signature: "{pigcms:$sign['signature']}",
jsApiList: [
// 所有要调用的API都要加到这个列表中
'onMenuShareTimeline',
'onMenuShareAppMessage'
//'onMenuShareQQ'
]
});
wx.ready(function() {
wx.checkJsApi({
jsApiList: [
'onMenuShareTimeline',
'onMenuShareAppMessage'
],
success: function(res){
wx.onMenuShareAppMessage({
title : "{pigcms:$shuju['from']}向你表白了",
desc : "{pigcms:$shuju['content']}",
link : "http://blockchain.ruoxj.com/index.php?g=Wap&m=BiaoBai&a=fxjg&token=xxuyyd1495782247&qklid={pigcms:$shuju['qklid']}",
imgUrl : "http://blockchain.ruoxj.com/tpl/Wap/default/common/images/xiangjian_logo.png",
trigger: function (res) {
//alert('用户点击发送给朋友');
},
success: function (res) {
var guanbi=document.getElementById('show7');
var guanbi1=document.getElementById('show8');
guanbi.style.display='none';
guanbi1.style.display='none';
},
cancel: function (res) {
alert('已取消');
},
fail: function (res) {
alert(JSON.stringify(res));
}
});
wx.onMenuShareTimeline({
title:"{pigcms:$shuju['from']}向你表白了",
link:"http://blockchain.ruoxj.com/index.php?g=Wap&m=BiaoBai&a=fxjg&token=xxuyyd1495782247&qklid={pigcms:$shuju['qklid']}",
imgUrl:"http://blockchain.ruoxj.com/tpl/Wap/default/common/images/xiangjian_logo.png",
trigger: function (res) {
//alert('用户点击分享到朋友圈');
},
success: function(res){
var guanbi=document.getElementById('show7');
var guanbi1=document.getElementById('show8');
guanbi.style.display='none';
guanbi1.style.display='none';
},
cancel: function(res){
alert('已取消');
},
fail: function (res) {
alert(JSON.stringify(res));
}
});
wx.error(function(res){
alert("errorMSG:"+JSON.stringify(res));
});
}
});
});
</script>
</body>
</html>
微信公众号分享功能
最新推荐文章于 2024-07-07 17:26:33 发布