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

5 years ago
<!DOCTYPE html>
<html lang="en">
<head>
<meta itemprop="name" content="{$data[0]['relation_game_name']}"/>
5 years ago
<?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;
}
}
?>
5 years ago
<meta itemprop="image" content="{:get_cover($data[0]['icon'],'path')}"/>
5 years ago
<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>
5 years ago
<script type="text/javascript" src="https://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
.register-box-max {
width: 80%;
5 years ago
height: 280px;
top: calc(50% - 140px);
5 years ago
left: 10%;
position: fixed;
z-index: 10;
background-color: #fff;
border-radius: 10px;
}
5 years ago
@media screen and (min-width: 768px) {
.register-box-max {
width: 50%;
left: 25%;
}
}
5 years ago
.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;
5 years ago
border-radius: 18px;
5 years ago
background-color: #1993ff;
color: #fff;
font-size: 1.1rem;
}
5 years ago
</style>
</head>
5 years ago
<body class="main_bg" style="background-color: #0a0a0a;height: auto;">
<input type="hidden" name="title" value="{$data[0]['relation_game_name']}">
5 years ago
<input type="hidden" name="icon" value="{:get_cover($data[0]['icon'],'path')}">
<input type="hidden" name="desc" value="{$data[0]['features']}">
5 years ago
<div class="bn-rule" style="display: none;"><img id="rule-img" src=""></div>
5 years ago
<!--<div class="register-box-max">-->
<!-- <div class="register-title-box">-->
5 years ago
<!-- <span>登录</span>-->
5 years ago
<!-- </div>-->
<!-- <div class="register-input-box">-->
5 years ago
<!-- <input value="" placeholder="账号/手机号">-->
5 years ago
<!-- <input value="" placeholder="密码">-->
<!-- </div>-->
<!-- <div class="register-btn-box">-->
5 years ago
<!-- <button>登录</button>-->
5 years ago
<!-- </div>-->
<!--</div>-->
<!--<div class="register-bg"></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>
5 years ago
<div class="h_title_box ta_c">
5 years ago
<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()) {
5 years ago
if (Boolean(navigator.userAgent.match(/OS [1][3-9]_[1-9][_\d]* like Mac OS X/i))) {
5 years ago
if (parseInt("{:I('get.status')}") > 0) {
location.href = "{:U('iosDown',array('gid'=>$gameId,'pid'=>I('get.pid'),'status'=>1))}";
return false;
} else {
5 years ago
layer.confirm('请先到官网注册',{title:''} , function () {
location.href = "/mobile.php?s=/User/login/pid/" + "{:I('get.pid')}" + "/gid/" + "{:I('get.gid')}" + ".html";
});
return false;
}
}
5 years ago
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).show();
5 years ago
$.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();
5 years ago
// var icon = window.location.protocol + "//" + window.location.host + $('[name=icon]').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: window.location.href,
5 years ago
imgUrl: img,
type: '',
dataUrl: '',
success: function () {
}
});
wx.onMenuShareTimeline({
title: title,
link: window.location.href,
5 years ago
imgUrl: img,
success: function () {
}
});
wx.onMenuShareQQ({
title: title,
desc: description,
link: window.location.href,
5 years ago
imgUrl: img,
success: function () {
},
cancel: function () {
}
});
wx.onMenuShareWeibo({
title: title,
desc: description,
link: window.location.href,
5 years ago
imgUrl: img,
success: function () {
},
cancel: function () {
}
});
wx.onMenuShareQZone({
title: title,
desc: description,
link: window.location.href,
5 years ago
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秒
});
}
});
5 years ago
$(".and_down").click(function () {
layer.msg('请使用安卓浏览器下载', {
<!-- icon: 7, -->
time: 2000 //2秒关闭如果不配置默认是3秒
});
5 years ago
});
$(".ios_down").click(function () {
layer.msg('请使用苹果浏览器下载', {
<!-- icon: 7, -->
time: 2000 //2秒关闭如果不配置默认是3秒
});
5 years ago
});
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;
}
}
}
5 years ago
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) :?>
5 years ago
<?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 ;?>
}
5 years ago
}
}
return index;
}
</script>
</body>
5 years ago
</html>