落地页微信jssdk

master
ELF 5 years ago
parent 622ef0571e
commit 9783acc3c1

@ -9,7 +9,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
<script type="text/javascript" src="__JS__/jquery-1.11.1.min.js"></script> <script type="text/javascript" src="__JS__/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script> <script type="text/javascript" src="http://res2.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
<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">
<title>{$data[0]['relation_game_name']}</title> <title>{$data[0]['relation_game_name']}</title>
<!--<script type="text/javascript" src="/static/js/jquery-1.4.2.min.js"></script>--> <!--<script type="text/javascript" src="/static/js/jquery-1.4.2.min.js"></script>-->
@ -133,29 +133,29 @@
var dataIndex = getVs(); var dataIndex = getVs();
$('#data-' + dataIndex).css('display','unset'); $('#data-' + dataIndex).css('display','unset');
// $.ajax({ $.ajax({
// url: "{:U('Home/generateWechatSign')}", url: "{:U('Home/generateWechatSign')}",
// dataType: 'json', dataType: 'json',
// type: 'post', type: 'post',
// data: {url: window.location.href}, data: {url: window.location.href},
// success: function(response) { success: function(response) {
// if (response.status) { if (response.status) {
// wx.config({ wx.config({
// debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来若要查看传入的参数可以在pc端打开参数信息会通过log打出仅在pc端时才会打印。 debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来若要查看传入的参数可以在pc端打开参数信息会通过log打出仅在pc端时才会打印。
// appId: response.data.appid, appId: response.data.appid,
// 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: ['onMenuShareAppMessage', 'onMenuShareTimeline', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
// }) })
// var title = $('[name=title]').val(); var title = $('[name=title]').val();
// var description = $('[name=description]').val(); var description = $('[name=description]').val();
// var icon = $('[name=icon]').val(); var icon = $('[name=icon]').val();
//
// wxReady(title, description, icon) wxReady(title, description, icon)
// } }
// } }
// }); });
function wxReady(title, description, img) { function wxReady(title, description, img) {
wx.ready(function () { wx.ready(function () {

Loading…
Cancel
Save