1 Star 0 Fork 0

poem/LXLG

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
intoPage.html 5.68 KB
一键复制 编辑 原始数据 按行查看 历史
poem 提交于 2018-07-10 17:13 . init
<!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>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/pomexl/LXLG.git
git@gitee.com:pomexl/LXLG.git
pomexl
LXLG
LXLG
master

搜索帮助