|
|
|
@ -2,14 +2,14 @@
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta itemprop="name" content="{$data[0]['relation_game_name']}"/>
|
|
|
|
|
<meta itemprop="image" content="__ROOT__{$data[0]['icon']|get_cover='path'}"/>
|
|
|
|
|
<meta itemprop="image" content="https://{$_SERVER['HTTP_HOST']}{$data[0]['icon']|get_cover='path'}"/>
|
|
|
|
|
<meta name="description" itemprop="description"
|
|
|
|
|
content="{$data[0]['features']}"/>
|
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
|
<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="http://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
|
|
|
|
|
<script type="text/javascript" src="https://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">
|
|
|
|
|
<title>{$data[0]['relation_game_name']}</title>
|
|
|
|
|
<!--<script type="text/javascript" src="/static/js/jquery-1.4.2.min.js"></script>-->
|
|
|
|
@ -56,7 +56,9 @@
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body class="main_bg">
|
|
|
|
|
|
|
|
|
|
<input type="hidden" name="title" value="{$data[0]['relation_game_name']}">
|
|
|
|
|
<input type="hidden" name="icon" value="{$data[0]['icon']|get_cover='path'}">
|
|
|
|
|
<input type="hidden" name="desc" value="{$data[0]['features']}">
|
|
|
|
|
<div class="bn-rule" style="display: none;"><img id="rule-img" src=""></div>
|
|
|
|
|
|
|
|
|
|
<div class="h_wrap">
|
|
|
|
@ -133,36 +135,35 @@
|
|
|
|
|
var dataIndex = getVs();
|
|
|
|
|
$('#data-' + dataIndex).css('display','unset');
|
|
|
|
|
|
|
|
|
|
// $.ajax({
|
|
|
|
|
// url: "{:U('Home/generateWechatSign')}",
|
|
|
|
|
// dataType: 'json',
|
|
|
|
|
// type: 'post',
|
|
|
|
|
// data: {url: window.location.href},
|
|
|
|
|
// success: function(response) {
|
|
|
|
|
// if (response.status) {
|
|
|
|
|
// wx.config({
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "{:U('Home/generateWechatSign')}",
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
type: 'post',
|
|
|
|
|
data: {url: window.location.href},
|
|
|
|
|
success: function(response) {
|
|
|
|
|
if (response.status) {
|
|
|
|
|
wx.config({
|
|
|
|
|
// debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
|
|
|
|
|
// appId: response.data.appid,
|
|
|
|
|
// timestamp: response.data.time,
|
|
|
|
|
// nonceStr: response.data.randStr,
|
|
|
|
|
// signature: response.data.sign,
|
|
|
|
|
// jsApiList: ['onMenuShareAppMessage', 'onMenuShareTimeline', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
|
|
|
|
|
// })
|
|
|
|
|
// var title = $('[name=title]').val();
|
|
|
|
|
// var description = $('[name=description]').val();
|
|
|
|
|
// var icon = $('[name=icon]').val();
|
|
|
|
|
//
|
|
|
|
|
// wxReady(title, description, icon)
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
appId: response.data.appid,
|
|
|
|
|
timestamp: response.data.time,
|
|
|
|
|
nonceStr: response.data.randStr,
|
|
|
|
|
signature: response.data.sign,
|
|
|
|
|
jsApiList: ['onMenuShareAppMessage', 'onMenuShareTimeline', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
|
|
|
|
|
})
|
|
|
|
|
var title = $('[name=title]').val();
|
|
|
|
|
var description = $('[name=desc]').val();
|
|
|
|
|
var icon = window.location.protocol + "//" + window.location.host + $('[name=icon]').val();
|
|
|
|
|
wxReady(title, description, icon)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function wxReady(title, description, img) {
|
|
|
|
|
wx.ready(function () {
|
|
|
|
|
wx.onMenuShareAppMessage({
|
|
|
|
|
title: title,
|
|
|
|
|
desc: description,
|
|
|
|
|
link: location.href,
|
|
|
|
|
link: window.location.href,
|
|
|
|
|
imgUrl: img,
|
|
|
|
|
type: '',
|
|
|
|
|
dataUrl: '',
|
|
|
|
@ -171,7 +172,7 @@
|
|
|
|
|
});
|
|
|
|
|
wx.onMenuShareTimeline({
|
|
|
|
|
title: title,
|
|
|
|
|
link: location.href,
|
|
|
|
|
link: window.location.href,
|
|
|
|
|
imgUrl: img,
|
|
|
|
|
success: function () {
|
|
|
|
|
}
|
|
|
|
@ -179,7 +180,7 @@
|
|
|
|
|
wx.onMenuShareQQ({
|
|
|
|
|
title: title,
|
|
|
|
|
desc: description,
|
|
|
|
|
link: location.href,
|
|
|
|
|
link: window.location.href,
|
|
|
|
|
imgUrl: img,
|
|
|
|
|
success: function () {
|
|
|
|
|
},
|
|
|
|
@ -189,7 +190,7 @@
|
|
|
|
|
wx.onMenuShareWeibo({
|
|
|
|
|
title: title,
|
|
|
|
|
desc: description,
|
|
|
|
|
link: location.href,
|
|
|
|
|
link: window.location.href,
|
|
|
|
|
imgUrl: img,
|
|
|
|
|
success: function () {
|
|
|
|
|
},
|
|
|
|
@ -199,7 +200,7 @@
|
|
|
|
|
wx.onMenuShareQZone({
|
|
|
|
|
title: title,
|
|
|
|
|
desc: description,
|
|
|
|
|
link: location.href,
|
|
|
|
|
link: window.location.href,
|
|
|
|
|
imgUrl: img,
|
|
|
|
|
success: function () {
|
|
|
|
|
},
|
|
|
|
|