|
|
@ -1,294 +1,133 @@
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta itemprop="name" content="{$game['relation_game_name']}"/>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta itemprop="image" content="{$game['icon']}"/>
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
|
|
<meta name="description" itemprop="description" content="{$game['features']}"/>
|
|
|
|
<script src="__JS__/jquery-1.11.3.min.js"></script>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
|
<script type="text/javascript" src="__JS__/getRem.js"></script>
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<script type="text/javascript" src="__JS__/swiper.min.js"></script>
|
|
|
|
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/swiper.min.css">
|
|
|
|
<script type="text/javascript" src="__JS__/jquery-1.11.1.min.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/reset.css">
|
|
|
|
<script type="text/javascript" src="https://res2.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/index2.css">
|
|
|
|
<link href="{:get_cover(C('CH_SET_ICO'),'path')}" type="image/x-icon" rel="shortcut icon">
|
|
|
|
<title>home</title>
|
|
|
|
<title>{$game['relation_game_name']}</title>
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="__CSS__/20180207/promition.css">
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="__CSS__/20180207/game.css">
|
|
|
|
|
|
|
|
<link href="__STATIC__/ios9/css/common.css" rel="stylesheet" type="text/css">
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="__CSS__/landing_page.css">
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<body class="main_bg" style="background-color: #0a0a0a;height: auto;">
|
|
|
|
<div class="home">
|
|
|
|
<input type="hidden" name="title" value="{$game['relation_game_name']}">
|
|
|
|
<div class="home-box">
|
|
|
|
<input type="hidden" name="icon" value="{$game['icon']}">
|
|
|
|
<div class="heard">
|
|
|
|
<input type="hidden" name="desc" value="{$game['features']}">
|
|
|
|
<img src="{$game['icon']}" alt="">
|
|
|
|
<input type="hidden" name="isIOS13" value="<?php if($isIOS13):?>1<?php else:?>0<?php endif;?>">
|
|
|
|
<div class="right">
|
|
|
|
<?php if ($isWechat):?>
|
|
|
|
<div>{$game['relation_game_name']}</div>
|
|
|
|
<?php if ($isAndroid):?>
|
|
|
|
<div>{$game['features']}</div>
|
|
|
|
<div class="bn-rule" style="display: none;"><img id="rule-img" src="__STATIC__/ios9/images/android-rule.png"></div>
|
|
|
|
<div>
|
|
|
|
<?php elseif ($isIOS):?>
|
|
|
|
<?php if ($downloadUrl == 'https://'.$_SERVER['HTTP_HOST']) :?>
|
|
|
|
<div class="bn-rule" style="display: none;"><img id="rule-img" src="__STATIC__/ios9/images/ios-rule.png"></div>
|
|
|
|
<div class="download">免费安装</div>
|
|
|
|
<?php endif;?>
|
|
|
|
<?php else :?>
|
|
|
|
<?php endif;?>
|
|
|
|
<div class="download">免费安装</div>
|
|
|
|
|
|
|
|
<?php endif ;?>
|
|
|
|
|
|
|
|
<img src="__IMG__/wenhao.png" class="doubt" alt="">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="evaluate">
|
|
|
|
|
|
|
|
<div class="evaluate-box">
|
|
|
|
|
|
|
|
<div class="number">
|
|
|
|
|
|
|
|
<span>{$game['game_score']}</span>
|
|
|
|
|
|
|
|
<div class="start">
|
|
|
|
|
|
|
|
<img src="__IMG__/start1.png" alt="">
|
|
|
|
|
|
|
|
<img src="__IMG__/start1.png" alt="">
|
|
|
|
|
|
|
|
<img src="__IMG__/start1.png" alt="">
|
|
|
|
|
|
|
|
<img src="__IMG__/start1.png" alt="">
|
|
|
|
|
|
|
|
<img src="__IMG__/start.png" alt="">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="grade">14.48K个评分</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="evaluate-box">
|
|
|
|
|
|
|
|
<span>#{$game['recommend_level']}</span>
|
|
|
|
|
|
|
|
<div class="grade">网络游戏</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="evaluate-box">
|
|
|
|
|
|
|
|
<span>16+</span>
|
|
|
|
|
|
|
|
<div class="grade">年龄</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="slide_list">
|
|
|
|
|
|
|
|
<ul class="slide-box">
|
|
|
|
|
|
|
|
<volist name="game['flooring_page_imgs']" id="item">
|
|
|
|
|
|
|
|
<li class="slide-item">
|
|
|
|
|
|
|
|
<img src="{$item}" alt="">
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</volist>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="synopsis">
|
|
|
|
|
|
|
|
<div>简介</div>
|
|
|
|
|
|
|
|
<div id="brief_introduction">{$game['features']}</div>
|
|
|
|
|
|
|
|
<div id="look_more">
|
|
|
|
|
|
|
|
<div class="bg-blur"></div>
|
|
|
|
|
|
|
|
<div class="more">查看更多</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="appraisal">
|
|
|
|
|
|
|
|
<div class="title">评分及评论</div>
|
|
|
|
|
|
|
|
<div class="appraisal-box">
|
|
|
|
|
|
|
|
<div class="left">
|
|
|
|
|
|
|
|
<span>{$game['game_score']}</span>
|
|
|
|
|
|
|
|
<span>满分5分</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="right">
|
|
|
|
|
|
|
|
<div class="start-number">
|
|
|
|
|
|
|
|
<div class="start">
|
|
|
|
|
|
|
|
<img src="__IMG__/start1.png" alt="">
|
|
|
|
|
|
|
|
<img src="__IMG__/start1.png" alt="">
|
|
|
|
|
|
|
|
<img src="__IMG__/start1.png" alt="">
|
|
|
|
|
|
|
|
<img src="__IMG__/start1.png" alt="">
|
|
|
|
|
|
|
|
<img src="__IMG__/start1.png" alt="">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="strip">
|
|
|
|
|
|
|
|
<div style="width: 2.77rem;"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="start-number">
|
|
|
|
|
|
|
|
<div class="start">
|
|
|
|
|
|
|
|
<img src="__IMG__/start1.png" alt="">
|
|
|
|
|
|
|
|
<img src="__IMG__/start1.png" alt="">
|
|
|
|
|
|
|
|
<img src="__IMG__/start1.png" alt="">
|
|
|
|
|
|
|
|
<img src="__IMG__/start1.png" alt="">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="strip">
|
|
|
|
|
|
|
|
<div style="width: 0.24rem;"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="start-number">
|
|
|
|
|
|
|
|
<div class="start">
|
|
|
|
|
|
|
|
<img src="__IMG__/start1.png" alt="">
|
|
|
|
|
|
|
|
<img src="__IMG__/start1.png" alt="">
|
|
|
|
|
|
|
|
<img src="__IMG__/start1.png" alt="">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="strip">
|
|
|
|
|
|
|
|
<div style="width: 0.06rem;"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="start-number">
|
|
|
|
|
|
|
|
<div class="start">
|
|
|
|
|
|
|
|
<img src="__IMG__/start1.png" alt="">
|
|
|
|
|
|
|
|
<img src="__IMG__/start1.png" alt="">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="strip">
|
|
|
|
|
|
|
|
<div style="width: 0.04rem;"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="start-number">
|
|
|
|
|
|
|
|
<div class="start">
|
|
|
|
|
|
|
|
<img src="__IMG__/start1.png" alt="">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="strip">
|
|
|
|
|
|
|
|
<div style="width: 0;"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mark">14.48K个评分</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="device">
|
|
|
|
|
|
|
|
<div class="title">新功能</div>
|
|
|
|
|
|
|
|
<div class="soon-title">更新说明:</div>
|
|
|
|
|
|
|
|
<div class="del">1、优化用户体验</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="information">
|
|
|
|
|
|
|
|
<div class="title">信息</div>
|
|
|
|
|
|
|
|
<div class="data-box">
|
|
|
|
|
|
|
|
<span>大小</span>
|
|
|
|
|
|
|
|
<div>{$game['game_size']}MB</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="data-box">
|
|
|
|
|
|
|
|
<span>类别</span>
|
|
|
|
|
|
|
|
<div>游戏</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="data-box">
|
|
|
|
|
|
|
|
<span>语言</span>
|
|
|
|
|
|
|
|
<div>英语,简体中文</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="data-box">
|
|
|
|
|
|
|
|
<span>年龄分级</span>
|
|
|
|
|
|
|
|
<div>限16岁以上</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="data-box">
|
|
|
|
|
|
|
|
<span>价格</span>
|
|
|
|
|
|
|
|
<div>免费</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="privacy">隐私政策</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="foot">
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<div>闽ICP备19000000号-0</div>
|
|
|
|
|
|
|
|
<div>闽网文{2019}1554-099号</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>抵制不良游戏,拒绝盗版游戏。注意自我保护,谨防受骗上当。</div>
|
|
|
|
|
|
|
|
<div>适度游戏益脑,沉迷游戏伤身。合理安排时间,享受健康生活。</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="window" style="display: none;">
|
|
|
|
<div class="h_wrap">
|
|
|
|
<div class="containner">
|
|
|
|
<div id="data-2">
|
|
|
|
<div class="containner-box">
|
|
|
|
<volist name="game['flooring_page_imgs']" id="item">
|
|
|
|
<div class="text"> 购买至尊下载,赠送限量至尊超级礼包(价值100元)</div>
|
|
|
|
<?php if ($downloadUrl == 'https://'.$_SERVER['HTTP_HOST']) :?>
|
|
|
|
<div class="text">• 至尊下载:永不闪退、不丢数据稳定有保障</div>
|
|
|
|
<a href="#" class="no-package"><img src="{$item}" style="width: 100%;"/></a>
|
|
|
|
<div class="text"> • 同一设备安装一次可在一年内无限次下载重装</div>
|
|
|
|
<?php else :?>
|
|
|
|
<div class="blue-btn" onclick="location.href='mobile.php/Ssg/pay/game_id/{$game[\'id\']}/promote_id/{$promoteId}'">¥10至尊下载</div>
|
|
|
|
<a href="javascript:;" class="down-link" down-link="{$downloadUrl}"><img src="{$item}" style="width: 100%;"/></a>
|
|
|
|
<div class="gray-btn" onclick="location.href='{$downloadUrl}'">普通下载</div>
|
|
|
|
<?php endif ;?>
|
|
|
|
</div>
|
|
|
|
</volist>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="second" style="display: none;">
|
|
|
|
<script src="__STATIC__/layer/layer.js"></script>
|
|
|
|
<div class="second-box">
|
|
|
|
<script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script>
|
|
|
|
<div class="title">升级IOS9后,游戏打不开怎么办</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
<div class="carousel">
|
|
|
|
$('.down-link').on('click', function () {
|
|
|
|
<div class="swiper-container">
|
|
|
|
if ($('.bn-rule').length > 0) {
|
|
|
|
<div class="swiper-wrapper">
|
|
|
|
$('.bn-rule').css('display','block')
|
|
|
|
<div class="swiper-slide">
|
|
|
|
$('.bn-rule').css('z-index','12')
|
|
|
|
<div class="swiper-slide-box">
|
|
|
|
return
|
|
|
|
<div>一、游戏安装完毕,点击游戏图标弹出如下提示:</div>
|
|
|
|
|
|
|
|
<div class="slide-img">
|
|
|
|
|
|
|
|
<img src="__IMG__/1.png" alt="" style=" height: 2.86rem;">
|
|
|
|
|
|
|
|
<img src="__IMG__/box-scroll.png" alt="" class="case">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="swiper-slide">
|
|
|
|
|
|
|
|
<div class="swiper-slide-box">
|
|
|
|
|
|
|
|
<div>二、进入[设置] - [通用] - [描述文件]:找到对应证书名称</div>
|
|
|
|
|
|
|
|
<div class="slide-img">
|
|
|
|
|
|
|
|
<img src="__IMG__/2.png" alt="" style="height: 2.75rem;">
|
|
|
|
|
|
|
|
<img src="__IMG__/box-scroll.png" alt="" class="case">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="swiper-slide">
|
|
|
|
|
|
|
|
<div class="swiper-slide-box">
|
|
|
|
|
|
|
|
<div>三、信任当前证书</div>
|
|
|
|
|
|
|
|
<div class="slide-img">
|
|
|
|
|
|
|
|
<img src="__IMG__/3.png" alt="" style="height: 2.06rem;">
|
|
|
|
|
|
|
|
<img src="__IMG__/box-scroll.png" alt="" class="case">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="swiper-slide">
|
|
|
|
|
|
|
|
<div class="swiper-slide-box">
|
|
|
|
|
|
|
|
<div>四、下载过程中若出现以下情况,请检查网络和内存再次尝试下载</div>
|
|
|
|
|
|
|
|
<div class="slide-img">
|
|
|
|
|
|
|
|
<img src="__IMG__/4.png" alt="" style="height: 2.88rem;">
|
|
|
|
|
|
|
|
<img src="__IMG__/box-scroll.png" alt="" class="case">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="swiper-slide">
|
|
|
|
|
|
|
|
<div class="swiper-slide-box">
|
|
|
|
|
|
|
|
<div>五、如果您已验证并正常体验游戏,一段时间后,点击游戏图标再次出现信任提示且无法信任时,请卸载游戏包,重新安装游戏验证</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Add Pagination -->
|
|
|
|
|
|
|
|
<div class="swiper-pagination"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="blue-btn">点我去信任</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
$(function(){
|
|
|
|
|
|
|
|
if ($("#brief_introduction").length<80) {
|
|
|
|
|
|
|
|
$("#look_more").hide();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$(".more").click(function(){
|
|
|
|
if ($('input[name=isIOS13]').val() == 1) {
|
|
|
|
$("#look_more").hide();
|
|
|
|
if (parseInt("{:I('get.status', 0)}") > 0) {
|
|
|
|
$("#brief_introduction").css("overflow", "visible");
|
|
|
|
location.href = "{:U('iosDown',array('gid'=>$apply['game_id'],'pid'=>$apply['promote_id'],'status'=>1))}"
|
|
|
|
});
|
|
|
|
return
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
layer.confirm('请先到官网注册', {title: '提示'}, function () {
|
|
|
|
|
|
|
|
location.href = "/mobile.php?s=/User/login/pid/" + "{$apply.promote_id}" + "/gid/" + "{$apply.game_id}" + ".html"
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
var downLink = $(this).attr('down-link')
|
|
|
|
|
|
|
|
location.href = downLink
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function swiperGet(){
|
|
|
|
$('.no-package').click(function() {
|
|
|
|
var swiper = new Swiper('.swiper-container', {
|
|
|
|
layer.msg('暂无下载', {
|
|
|
|
loop: true,
|
|
|
|
icon: 7,
|
|
|
|
// autoplay: img > 1,
|
|
|
|
time: 2000
|
|
|
|
pagination: {
|
|
|
|
|
|
|
|
el: '.swiper-pagination',
|
|
|
|
|
|
|
|
clickable: true,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
autoplay: {
|
|
|
|
|
|
|
|
delay: 3000,
|
|
|
|
|
|
|
|
stopOnLastSlide: false,
|
|
|
|
|
|
|
|
disableOnInteraction: false,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
swiperGet();
|
|
|
|
|
|
|
|
$(".download").click(function(){
|
|
|
|
|
|
|
|
$(".window").show();
|
|
|
|
|
|
|
|
document.body.style.overflow = 'hidden';
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
$(".window").click(function(){
|
|
|
|
|
|
|
|
$(".window").hide();
|
|
|
|
|
|
|
|
document.body.style.overflow = 'auto';
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
$(".gray-btn").click(function(){
|
|
|
|
|
|
|
|
event.stopPropagation();
|
|
|
|
|
|
|
|
$(".second").show();
|
|
|
|
|
|
|
|
swiperGet();
|
|
|
|
|
|
|
|
document.body.style.overflow = 'hidden';
|
|
|
|
|
|
|
|
$(".window").hide();
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
$(".second").click(function(){
|
|
|
|
|
|
|
|
$(".second").hide();
|
|
|
|
|
|
|
|
document.body.style.overflow = 'auto';
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
$(".doubt").click(function(){
|
|
|
|
|
|
|
|
$(".second").show();
|
|
|
|
|
|
|
|
document.body.style.overflow = 'hidden';
|
|
|
|
|
|
|
|
swiperGet();
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
$.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=desc]').val();
|
|
|
|
|
|
|
|
var icon = $('[name=icon]').val();
|
|
|
|
|
|
|
|
wxReady(title, description, icon)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function wxReady(title, description, img) {
|
|
|
|
|
|
|
|
wx.ready(function () {
|
|
|
|
|
|
|
|
wx.onMenuShareAppMessage({
|
|
|
|
|
|
|
|
title: title,
|
|
|
|
|
|
|
|
desc: description,
|
|
|
|
|
|
|
|
link: window.location.href,
|
|
|
|
|
|
|
|
imgUrl: img,
|
|
|
|
|
|
|
|
type: '',
|
|
|
|
|
|
|
|
dataUrl: ''
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
wx.onMenuShareTimeline({
|
|
|
|
|
|
|
|
title: title,
|
|
|
|
|
|
|
|
link: window.location.href,
|
|
|
|
|
|
|
|
imgUrl: img
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
wx.onMenuShareQQ({
|
|
|
|
|
|
|
|
title: title,
|
|
|
|
|
|
|
|
desc: description,
|
|
|
|
|
|
|
|
link: window.location.href,
|
|
|
|
|
|
|
|
imgUrl: img
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
wx.onMenuShareWeibo({
|
|
|
|
|
|
|
|
title: title,
|
|
|
|
|
|
|
|
desc: description,
|
|
|
|
|
|
|
|
link: window.location.href,
|
|
|
|
|
|
|
|
imgUrl: img
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
wx.onMenuShareQZone({
|
|
|
|
|
|
|
|
title: title,
|
|
|
|
|
|
|
|
desc: description,
|
|
|
|
|
|
|
|
link: window.location.href,
|
|
|
|
|
|
|
|
imgUrl: img
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|