|
|
@ -10,7 +10,7 @@
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
|
|
<link href="{:get_cover(C('CH_SET_ICO'),'path')}" type="image/x-icon" rel="shortcut icon">
|
|
|
|
<link href="{:get_cover(C('CH_SET_ICO'),'path')}" type="image/x-icon" rel="shortcut icon">
|
|
|
|
<script src="__JS__/jquery-1.11.3.min.js"></script>
|
|
|
|
<script src="__JS__/jquery-1.11.3.min.js"></script>
|
|
|
|
<script type="text/javascript" src="https://res2.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
|
|
|
|
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
|
|
|
<script type="text/javascript" src="__JS__/getRem.js"></script>
|
|
|
|
<script type="text/javascript" src="__JS__/getRem.js"></script>
|
|
|
|
<script type="text/javascript" src="__JS__/swiper.min.js"></script>
|
|
|
|
<script type="text/javascript" src="__JS__/swiper.min.js"></script>
|
|
|
|
<script type="text/javascript" src="__JS__/ladingpage.js"></script>
|
|
|
|
<script type="text/javascript" src="__JS__/ladingpage.js"></script>
|
|
|
@ -1534,7 +1534,7 @@ function getCurUserId() {
|
|
|
|
timestamp: response.data.time,
|
|
|
|
timestamp: response.data.time,
|
|
|
|
nonceStr: response.data.randStr,
|
|
|
|
nonceStr: response.data.randStr,
|
|
|
|
signature: response.data.sign,
|
|
|
|
signature: response.data.sign,
|
|
|
|
jsApiList: ['onMenuShareAppMessage', 'onMenuShareTimeline', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
|
|
|
|
jsApiList: ['updateAppMessageShareData', 'updateTimelineShareData', 'onMenuShareWeibo']
|
|
|
|
})
|
|
|
|
})
|
|
|
|
var title = $('[name=title]').val();
|
|
|
|
var title = $('[name=title]').val();
|
|
|
|
var description = $('[name=desc]').val();
|
|
|
|
var description = $('[name=desc]').val();
|
|
|
@ -1546,37 +1546,37 @@ function getCurUserId() {
|
|
|
|
|
|
|
|
|
|
|
|
function wxReady(title, description, img) {
|
|
|
|
function wxReady(title, description, img) {
|
|
|
|
wx.ready(function () {
|
|
|
|
wx.ready(function () {
|
|
|
|
wx.onMenuShareAppMessage({
|
|
|
|
wx.updateAppMessageShareData({
|
|
|
|
title: title,
|
|
|
|
title: title,
|
|
|
|
desc: description,
|
|
|
|
desc: description,
|
|
|
|
link: window.location.href,
|
|
|
|
link: window.location.href,
|
|
|
|
imgUrl: img,
|
|
|
|
imgUrl: img,
|
|
|
|
type: '',
|
|
|
|
success: function () {
|
|
|
|
dataUrl: ''
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
wx.onMenuShareTimeline({
|
|
|
|
wx.updateTimelineShareData({
|
|
|
|
title: title,
|
|
|
|
title: title,
|
|
|
|
link: window.location.href,
|
|
|
|
link: window.location.href,
|
|
|
|
imgUrl: img
|
|
|
|
imgUrl: img,
|
|
|
|
});
|
|
|
|
success: function () {
|
|
|
|
wx.onMenuShareQQ({
|
|
|
|
// 设置成功
|
|
|
|
title: title,
|
|
|
|
}
|
|
|
|
desc: description,
|
|
|
|
|
|
|
|
link: window.location.href,
|
|
|
|
|
|
|
|
imgUrl: img
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
wx.onMenuShareWeibo({
|
|
|
|
wx.onMenuShareWeibo({
|
|
|
|
title: title,
|
|
|
|
title: title,
|
|
|
|
desc: description,
|
|
|
|
desc: description,
|
|
|
|
link: window.location.href,
|
|
|
|
link: window.location.href,
|
|
|
|
imgUrl: img
|
|
|
|
imgUrl: img,
|
|
|
|
|
|
|
|
success: function () {
|
|
|
|
|
|
|
|
// 用户确认分享后执行的回调函数
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
cancel: function () {
|
|
|
|
|
|
|
|
// 用户取消分享后执行的回调函数
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
wx.onMenuShareQZone({
|
|
|
|
|
|
|
|
title: title,
|
|
|
|
|
|
|
|
desc: description,
|
|
|
|
|
|
|
|
link: window.location.href,
|
|
|
|
|
|
|
|
imgUrl: img
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
wx.error(function(res){
|
|
|
|
|
|
|
|
// config信息验证失败会执行error函数,如签名过期导致验证失败,具体错误信息可以打开config的debug模式查看,也可以在返回的res参数中查看,对于SPA可以在这里更新签名。
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|