代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="wap-font-scale" content="no">
<meta name="format-detection" content="telephone=no">
<title>通过触点投放进入的页面</title>
<link rel="stylesheet" href="css/global.css?v=11111">
<script src="js/jquery-3.2.1.min.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
</head>
<body>
<div class="r_content" id="intoPage">
<img class="titleImg" src="img/main_013.png" alt="">
<p class="">恭喜您获得一个红包</p>
<img class="mainImg" src="img/main_033.png" alt="">
<p class="">成功打开红包,就有机会获得888元红包哦!</p>
<img class="cancelImg" src="img/main_007.png" alt="">
</div>
</body>
<script>
var locationHref = location.href.split('#')[0];
//alert(locationHre +"---"+ location.href);
var configParam = {};
var shareParam = {
"title": "扫码领红包",
"desc": "京东卡和¥888话费等着你",
"link": "http://cqred.cqfuyuan.cn/index/Wxauth/index?channel=2",
"imgUrl": "http://cqred.cqfuyuan.cn/dx_wx/img/shareImg.jpg",
}
$(function(){
$.ajax({
type:"post",
url:"http://cqred.cqfuyuan.cn/index/Wxauth/getSignPackage",
async:true,
data:{"url":locationHref},
success:function(rs){
wx.config({
debug: false,
appId: rs.data.appId,
timestamp: rs.data.timestamp,
nonceStr: rs.data.nonceStr,
signature: rs.data.signature,
jsApiList: [
'checkJsApi',
'onMenuShareTimeline',
'onMenuShareAppMessage',
'onMenuShareQQ',
'onMenuShareWeibo',
'onMenuShareQZone',
'hideMenuItems',
'showMenuItems',
'hideAllNonBaseMenuItem',
'showAllNonBaseMenuItem',
'translateVoice',
'startRecord',
'stopRecord',
'onVoiceRecordEnd',
'playVoice',
'onVoicePlayEnd',
'pauseVoice',
'stopVoice',
'uploadVoice',
'downloadVoice',
'chooseImage',
'previewImage',
'uploadImage',
'downloadImage',
'getNetworkType',
'openLocation',
'getLocation',
'hideOptionMenu',
'showOptionMenu',
'closeWindow'
]
});
wx.ready(function () {
wx.checkJsApi({
jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage','onMenuShareQQ','onMenuShareWeibo','onMenuShareQZone'], // 需要检测的JS接口列表,所有JS接口列表见附录2,
success: function (res) {
}
});
wx.hideMenuItems({
menuList: [
"menuItem:copyUrl"
] // 要隐藏的菜单项,只能隐藏“传播类”和“保护类”按钮,所有menu项见附录3
});
wx.onMenuShareQZone({
title:shareParam.title,
desc:shareParam.desc, // 分享描述
link:shareParam.link,
imgUrl:shareParam.imgUrl,
success: function () {
},
cancel: function () {
},
});
wx.onMenuShareWeibo({
title:shareParam.title,
desc:shareParam.desc, // 分享描述
link:shareParam.link,
imgUrl:shareParam.imgUrl,
success: function () {
},
cancel: function () {
},
});
wx.onMenuShareQQ({
title:shareParam.title,
desc:shareParam.desc, // 分享描述
link:shareParam.link,
imgUrl:shareParam.imgUrl,
success: function () {
},
cancel: function () {
},
});
wx.onMenuShareTimeline({
title:shareParam.title,
desc:shareParam.desc, // 分享描述
link:shareParam.link,
imgUrl:shareParam.imgUrl,
success: function () {
},
cancel: function () {
},
});
wx.onMenuShareAppMessage({
title:shareParam.title,
desc:shareParam.desc, // 分享描述
link:shareParam.link,
imgUrl:shareParam.imgUrl,
success: function () {
// 用户确认分享后执行的回调函数
},
cancel: function () {
// 用户取消分享后执行的回调函
}
});
});
}
});
})
</script>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。