You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

305 lines
11 KiB
HTML

5 years ago
<!DOCTYPE html>
<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 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://res2.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
5 years ago
<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>-->
<link rel="stylesheet" href="__CSS__/20180207/promition.css">
<link rel="stylesheet" href="__CSS__/20180207/game.css">
5 years ago
<link href="__STATIC__/ios9/css/common.css" rel="stylesheet" type="text/css">
5 years ago
<style>
.weixin {
position: absolute;
top: -80px;
right: 0;
width: 17rem;
height: 30rem;
margin-top: 2px;
background: url(__IMG__/img_sign.png) left top no-repeat;
background-size: 100% 100%;
z-index: 99;
}
5 years ago
html {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
body, div {
margin: 0;
padding: 0;
}
.bn-rule {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: #333;
}
.bn-rule img {
margin-top: 21px;
width: 100%;
}
5 years ago
</style>
</head>
<body class="main_bg">
5 years ago
<div class="bn-rule" style="display: none;"><img id="rule-img" src=""></div>
5 years ago
<div class="h_wrap">
<notempty name="data[0]['flooring_page_imgs']">
<div id="data-1" style="display: none;">
<volist name="data[0]['flooring_page_imgs']" id="vo">
<?php $dowUrl = get_apply_dow_url($data[0]['id'],$_GET['pid']); ?>
<?php if ($dowUrl == ('https://'.$_SERVER['HTTP_HOST'])) :?>
<a href="#" class="js_b"><img src="{$vo|get_cover='path'}" style="width: 100%;"/></a>
<?php else :?>
<?php if ($data[0]['sdk_version'] == 2) $gameId = $data[0]['id'];?>
<a href="javascript:;" class="down-link" down-link="{$dowUrl}"><img src="{$vo|get_cover='path'}" style="width: 100%;"/></a>
<?php endif ;?>
</volist>
</div>
</notempty>
<notempty name="data[1]['flooring_page_imgs']">
<div id="data-2" style="display: none;">
<volist name="data[1]['flooring_page_imgs']" id="vo">
<?php $dowUrl = get_apply_dow_url($data[1]['id'],$_GET['pid']); ?>
<?php if ($dowUrl == ('https://'.$_SERVER['HTTP_HOST'])) :?>
<a href="#" class="js_b"><img src="{$vo|get_cover='path'}" style="width: 100%;"/></a>
<?php else :?>
<?php if ($data[1]['sdk_version'] == 2) $gameId = $data[1]['id'];?>
<a href="javascript:;" class="down-link" down-link="{$dowUrl}"><img src="{$vo|get_cover='path'}" style="width: 100%;"/></a>
<?php endif ;?>
</volist>
</div>
</notempty>
<notempty name="data[0]['flooring_page_imgs']">
<div id="data-3" style="display: none;">
<volist name="data[0]['flooring_page_imgs']" id="vo">
<a href="#" class="js_b"><img src="{$vo|get_cover='path'}" style="width: 100%;"/></a>
</volist>
</div>
<else/>
<div id="data-3" style="display: none;">
<volist name="data[1]['flooring_page_imgs']" id="vo">
<a href="#" class="js_b"><img src="{$vo|get_cover='path'}" style="width: 100%;"/></a>
</volist>
</div>
</notempty>
<div class="h_title_box ta_c p_t_15">
<script src="__STATIC__/layer/layer.js"></script>
5 years ago
<script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script>
5 years ago
<script type="text/javascript">
$('.down-link').on('click', function () {
5 years ago
if (is_weixin()) {
var ruleImg = document.getElementById('rule-img');
if (is_android()) {
$('.bn-rule').css('display','block');
$('.bn-rule').css('z-index','12');
ruleImg.src = "__STATIC__/ios9/images/android-rule.png";
} else if (is_ios()) {
$('.bn-rule').css('display','block');
$('.bn-rule').css('z-index','12');
ruleImg.src = "__STATIC__/ios9/images/ios-rule.png";
}
5 years ago
} else {
5 years ago
if (is_ios()) {
location.href = "{:U('iosDown',array('gid'=>$gameId,'pid'=>I('get.pid')))}";
} else {
var downLink = $(this).attr('down-link');
location.href = downLink;
}
5 years ago
}
});
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({
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)
}
}
});
5 years ago
function wxReady(title, description, img) {
wx.ready(function () {
wx.onMenuShareAppMessage({
title: title,
desc: description,
link: location.href,
imgUrl: img,
type: '',
dataUrl: '',
success: function () {
}
});
wx.onMenuShareTimeline({
title: title,
link: location.href,
imgUrl: img,
success: function () {
}
});
wx.onMenuShareQQ({
title: title,
desc: description,
link: location.href,
imgUrl: img,
success: function () {
},
cancel: function () {
}
});
wx.onMenuShareWeibo({
title: title,
desc: description,
link: location.href,
imgUrl: img,
success: function () {
},
cancel: function () {
}
});
wx.onMenuShareQZone({
title: title,
desc: description,
link: location.href,
imgUrl: img,
success: function () {
},
cancel: function () {
}
});
});
}
//没有包提示
$(".js_b").click(function () {
layer.msg('暂无下载', {
icon: 7,
time: 2000 //2秒关闭如果不配置默认是3秒
});
});
$(".js_en").click(function () {
var en = $(this).attr('enable_status');
if (en != '1') {
$(this).attr('href', '#');
layer.msg('暂无下载', {
icon: 7,
time: 2000 //2秒关闭如果不配置默认是3秒
});
}
});
$(".and_down").click(function () {
if (is_weixin() || is_ios()) {
layer.msg('请使用安卓浏览器下载', {
<!-- icon: 7, -->
time: 2000 //2秒关闭如果不配置默认是3秒
});
return false;
}
});
$(".iso_down").click(function () {
if (is_weixin() || !is_ios()) {
layer.msg('请使用苹果浏览器下载', {
<!-- icon: 7, -->
time: 2000 //2秒关闭如果不配置默认是3秒
});
return false;
}
});
function is_weixin() {
var ua = navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == "micromessenger") {
return true;
} else {
return false;
}
}
function is_ios() {
var u = navigator.userAgent;
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
if (isiOS) {
return true;
} else {
return false;
}
}
function is_android() {
var u = navigator.userAgent;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
if (isAndroid) {
return true;
} else {
return false;
}
}
function getVs() {
var isIos = is_ios();
var index = 3;
if (isIos) {
<?php if (!empty($data[0]['sdk_version']) && $data[0]['sdk_version'] == 2) :?>
index = 1;
<?php elseif (!empty($data[1]['sdk_version']) && $data[1]['sdk_version'] == 2) :?>
index = 2;
<?php endif ;?>
} else {
var isAndroid = is_android();
if (isAndroid) {
<?php if (!empty($data[0]['sdk_version']) && $data[0]['sdk_version'] == 1) :?>
index = 1;
<?php elseif (!empty($data[1]['sdk_version']) && $data[1]['sdk_version'] == 1) :?>
index = 2;
<?php endif ;?>
}
}
return index;
}
</script>
</body>
</html>