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.

434 lines
14 KiB
HTML

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html lang="en">
<head>
<meta itemprop="name" content="{$data[0]['relation_game_name']}"/>
<?php
$icon = get_cover($data[0]['icon'],'path');
if (stripos($icon,'http') === false) {
if (stripos($icon,'.com') === false) {
$icon = 'http://'.C('APPLY_DOWN_DOMAIN').$icon;
} else {
$icon = 'http://'.$icon;
}
}
?>
<meta itemprop="image" content="{:get_cover($data[0]['icon'],'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="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>-->
<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">
<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;
}
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%;
}
.register-box-max {
width: 80%;
height: 280px;
top: calc(50% - 140px);
left: 10%;
position: fixed;
z-index: 10;
background-color: #fff;
border-radius: 10px;
}
@media screen and (min-width: 768px) {
.register-box-max {
width: 50%;
left: 25%;
}
}
.register-bg {
width: 100%;
height: inherit;
position: fixed;
background-color: #0a0a0a;
opacity: 0.5;
}
.register-title-box {
padding: 10px 10px;
margin-top: 10px;
text-align: center;
font-size: 1.2rem;
}
.register-title-box span {
font-weight: 600;
}
.register-input-box {
text-align: center;
font-size: 1rem;
}
.register-input-box input {
width: calc(80% - 5px);
height: 2rem;
padding-left: 5px;
margin-top: 10px;
margin-bottom: 10px;
border: 1px solid #6f6f6f;
border-radius: 3px;
}
.register-btn-box {
margin-top: 40px;
text-align: center;
}
.register-btn-box button {
width: 80%;
height: 2.5rem;
border: 0;
border-radius: 18px;
background-color: #1993ff;
color: #fff;
font-size: 1.1rem;
}
</style>
</head>
<body class="main_bg" style="background-color: #0a0a0a;height: auto;">
<input type="hidden" name="title" value="{$data[0]['relation_game_name']}">
<input type="hidden" name="icon" value="{:get_cover($data[0]['icon'],'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="register-box-max">-->
<!-- <div class="register-title-box">-->
<!-- <span>登录</span>-->
<!-- </div>-->
<!-- <div class="register-input-box">-->
<!-- <input value="" placeholder="账号/手机号">-->
<!-- <input value="" placeholder="密码">-->
<!-- </div>-->
<!-- <div class="register-btn-box">-->
<!-- <button>登录</button>-->
<!-- </div>-->
<!--</div>-->
<!--<div class="register-bg"></div>-->
<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">
<script src="__STATIC__/layer/layer.js"></script>
<script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script>
<script type="text/javascript">
$('.down-link').on('click', function () {
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";
}
} else {
if (is_ios()) {
if (Boolean(navigator.userAgent.match(/OS [1][3-9]_[1-9][_\d]* like Mac OS X/i))) {
if (parseInt("{:I('get.status')}") > 0) {
location.href = "{:U('iosDown',array('gid'=>$gameId,'pid'=>I('get.pid'),'status'=>1))}";
return false;
} else {
layer.confirm('请先到官网注册',{title:''} , function () {
location.href = "/mobile.php?s=/User/login/pid/" + "{:I('get.pid')}" + "/gid/" + "{:I('get.gid')}" + ".html";
});
return false;
}
}
location.href = "{:U('iosDown',array('gid'=>$gameId,'pid'=>I('get.pid')))}";
} else {
var downLink = $(this).attr('down-link');
location.href = downLink;
}
}
});
var dataIndex = getVs();
$('#data-' + dataIndex).show();
$.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 = window.location.protocol + "//" + window.location.host + $('[name=icon]').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: '',
success: function () {
}
});
wx.onMenuShareTimeline({
title: title,
link: window.location.href,
imgUrl: img,
success: function () {
}
});
wx.onMenuShareQQ({
title: title,
desc: description,
link: window.location.href,
imgUrl: img,
success: function () {
},
cancel: function () {
}
});
wx.onMenuShareWeibo({
title: title,
desc: description,
link: window.location.href,
imgUrl: img,
success: function () {
},
cancel: function () {
}
});
wx.onMenuShareQZone({
title: title,
desc: description,
link: window.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 () {
layer.msg('请使用安卓浏览器下载', {
<!-- icon: 7, -->
time: 2000 //2秒关闭如果不配置默认是3秒
});
});
$(".ios_down").click(function () {
layer.msg('请使用苹果浏览器下载', {
<!-- icon: 7, -->
time: 2000 //2秒关闭如果不配置默认是3秒
});
});
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 isMobile() {
var userAgentInfo = navigator.userAgent;
var mobileAgents = [ "Android", "iPhone", "SymbianOS", "Windows Phone", "iPad","iPod"];
var mobile_flag = false;
//根据userAgent判断是否是手机
for (var v = 0; v < mobileAgents.length; v++) {
if (userAgentInfo.indexOf(mobileAgents[v]) > 0) {
mobile_flag = true;
break;
}
}
}
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 ;?>
} else {
if (!isMobile()) {
<?php if ($gameSdkType == 1) :?>
<?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 ;?>
<?php else :?>
$('.js_b').addClass('ios_down');
$('.js_b').removeClass('js_b');
<?php endif ;?>
}
}
}
return index;
}
</script>
</body>
</html>