|
|
@ -2,7 +2,7 @@
|
|
|
|
<html lang="en">
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<head>
|
|
|
|
<meta itemprop="name" content="{$data[0]['relation_game_name']}"/>
|
|
|
|
<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"
|
|
|
|
<meta name="description" itemprop="description"
|
|
|
|
content="{$data[0]['features']}"/>
|
|
|
|
content="{$data[0]['features']}"/>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
@ -56,7 +56,9 @@
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
|
|
<body class="main_bg">
|
|
|
|
<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="bn-rule" style="display: none;"><img id="rule-img" src=""></div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="h_wrap">
|
|
|
|
<div class="h_wrap">
|
|
|
@ -141,7 +143,7 @@
|
|
|
|
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,
|
|
|
@ -149,9 +151,8 @@
|
|
|
|
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=desc]').val();
|
|
|
|
var icon = $('[name=icon]').val();
|
|
|
|
var icon = window.location.protocol + "//" + window.location.host + $('[name=icon]').val();
|
|
|
|
|
|
|
|
|
|
|
|
wxReady(title, description, icon)
|
|
|
|
wxReady(title, description, icon)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -162,7 +163,7 @@
|
|
|
|
wx.onMenuShareAppMessage({
|
|
|
|
wx.onMenuShareAppMessage({
|
|
|
|
title: title,
|
|
|
|
title: title,
|
|
|
|
desc: description,
|
|
|
|
desc: description,
|
|
|
|
link: location.href,
|
|
|
|
link: window.location.href,
|
|
|
|
imgUrl: img,
|
|
|
|
imgUrl: img,
|
|
|
|
type: '',
|
|
|
|
type: '',
|
|
|
|
dataUrl: '',
|
|
|
|
dataUrl: '',
|
|
|
@ -171,7 +172,7 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
wx.onMenuShareTimeline({
|
|
|
|
wx.onMenuShareTimeline({
|
|
|
|
title: title,
|
|
|
|
title: title,
|
|
|
|
link: location.href,
|
|
|
|
link: window.location.href,
|
|
|
|
imgUrl: img,
|
|
|
|
imgUrl: img,
|
|
|
|
success: function () {
|
|
|
|
success: function () {
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -179,7 +180,7 @@
|
|
|
|
wx.onMenuShareQQ({
|
|
|
|
wx.onMenuShareQQ({
|
|
|
|
title: title,
|
|
|
|
title: title,
|
|
|
|
desc: description,
|
|
|
|
desc: description,
|
|
|
|
link: location.href,
|
|
|
|
link: window.location.href,
|
|
|
|
imgUrl: img,
|
|
|
|
imgUrl: img,
|
|
|
|
success: function () {
|
|
|
|
success: function () {
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -189,7 +190,7 @@
|
|
|
|
wx.onMenuShareWeibo({
|
|
|
|
wx.onMenuShareWeibo({
|
|
|
|
title: title,
|
|
|
|
title: title,
|
|
|
|
desc: description,
|
|
|
|
desc: description,
|
|
|
|
link: location.href,
|
|
|
|
link: window.location.href,
|
|
|
|
imgUrl: img,
|
|
|
|
imgUrl: img,
|
|
|
|
success: function () {
|
|
|
|
success: function () {
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -199,7 +200,7 @@
|
|
|
|
wx.onMenuShareQZone({
|
|
|
|
wx.onMenuShareQZone({
|
|
|
|
title: title,
|
|
|
|
title: title,
|
|
|
|
desc: description,
|
|
|
|
desc: description,
|
|
|
|
link: location.href,
|
|
|
|
link: window.location.href,
|
|
|
|
imgUrl: img,
|
|
|
|
imgUrl: img,
|
|
|
|
success: function () {
|
|
|
|
success: function () {
|
|
|
|
},
|
|
|
|
},
|
|
|
|