落地页游戏关闭下载判断

master
liuweiwen 5 years ago
parent 5697e8d2c6
commit fcbde62500

@ -214,8 +214,15 @@
<div class="text"> 购买至尊下载赠送限量至尊超级礼包价值100元</div> <div class="text"> 购买至尊下载赠送限量至尊超级礼包价值100元</div>
<div class="text">• 至尊下载:永不闪退、不丢数据稳定有保障</div> <div class="text">• 至尊下载:永不闪退、不丢数据稳定有保障</div>
<div class="text"> • 同一设备安装一次可在一年内无限次下载重装</div> <div class="text"> • 同一设备安装一次可在一年内无限次下载重装</div>
<?php if ($game['dow_status'] ==1):?>
<div class="blue-btn" onclick="location.href='mobile.php/Ssg/pay/game_id/{$game[\'id\']}/promote_id/{$promoteId}'">¥10至尊下载</div> <div class="blue-btn" onclick="location.href='mobile.php/Ssg/pay/game_id/{$game[\'id\']}/promote_id/{$promoteId}'">¥10至尊下载</div>
<div class="gray-btn down-link" down-link="{$downloadUrl}">普通下载</div> <div class="gray-btn down-link" down-link="{$downloadUrl}">普通下载</div>
<?php else:?>
<div class="blue-btn" onclick="layer.msg('该游戏已关闭下载');">¥10至尊下载</div>
<div class="gray-btn down-link" onclick="layer.msg('该游戏已关闭下载');return false;" down-link="{$downloadUrl}">普通下载</div>
<?php endif;?>
</div> </div>
</div> </div>
</div> </div>
@ -277,6 +284,7 @@
<?php <?php
?> ?>
<input type="hidden" id="dow_status" name="dow_status" value="{$game['dow_status']}">
<input type="hidden" id="cur_url" name="cur_url" value="{$cur_url}"> <input type="hidden" id="cur_url" name="cur_url" value="{$cur_url}">
<input type="hidden" id="is_new_sdk" name="is_new_sdk" value="{$is_new_sdk}"> <input type="hidden" id="is_new_sdk" name="is_new_sdk" value="{$is_new_sdk}">
<div class="safari" style="display: none"> <div class="safari" style="display: none">
@ -296,11 +304,13 @@
</html> </html>
<script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script> <script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script>
<script> <script>
<?php if (!empty($game['flooring_page_video'])):?>
var video = document.getElementById("shakeVideo"); var video = document.getElementById("shakeVideo");
video.play(); video.play();
document.addEventListener('WeixinJSBridgeReady',function(){ document.addEventListener('WeixinJSBridgeReady',function(){
video.play(); video.play();
},false); },false);
<?php endif;?>
function is_tip_safari() { function is_tip_safari() {
var isTipSafari = false; var isTipSafari = false;
@ -357,6 +367,11 @@
}); });
}); });
$('.down-link').on('click', function () { $('.down-link').on('click', function () {
var dow_status = parseInt($('#dow_status').val());
if (dow_status == 0) {
layer.msg('该游戏已关闭下载');
return false;
}
var isTipSafari = is_tip_safari(); var isTipSafari = is_tip_safari();
if (isTipSafari) { if (isTipSafari) {
$('.safari').show(); $('.safari').show();
@ -443,6 +458,7 @@
document.body.style.overflow = 'hidden'; document.body.style.overflow = 'hidden';
}); });
$(".window").click(function(){ $(".window").click(function(){
var dow_status = parseInt($('#dow_status').val());
var isTipSafari = is_tip_safari(); var isTipSafari = is_tip_safari();
if (isTipSafari) { if (isTipSafari) {
$('.safari').show(); $('.safari').show();
@ -452,6 +468,12 @@
document.body.style.overflow = 'auto'; document.body.style.overflow = 'auto';
}); });
$(".gray-btn").click(function(){ $(".gray-btn").click(function(){
var dow_status = parseInt($('#dow_status').val());
if (dow_status == 0) {
layer.msg('该游戏已关闭下载');
$(".window").hide();
return false;
}
var isTipSafari = is_tip_safari(); var isTipSafari = is_tip_safari();
if (isTipSafari) { if (isTipSafari) {
$('.safari').show(); $('.safari').show();
@ -462,7 +484,7 @@
// swiperGet(); // swiperGet();
document.body.style.overflow = 'hidden'; document.body.style.overflow = 'hidden';
$(".window").hide(); $(".window").hide();
}) });
$(".second").click(function(){ $(".second").click(function(){
var isTipSafari = is_tip_safari(); var isTipSafari = is_tip_safari();
if (isTipSafari) { if (isTipSafari) {

@ -22,6 +22,7 @@
<input type="hidden" name="desc" value="{$game['features']}"> <input type="hidden" name="desc" value="{$game['features']}">
<input type="hidden" name="isIOS13" value="<?php if($isIOS13):?>1<?php else:?>0<?php endif;?>"> <input type="hidden" name="isIOS13" value="<?php if($isIOS13):?>1<?php else:?>0<?php endif;?>">
<input type="hidden" name="isNewIos" value="<?php if($isNewIos):?>1<?php else:?>0<?php endif;?>"> <input type="hidden" name="isNewIos" value="<?php if($isNewIos):?>1<?php else:?>0<?php endif;?>">
<input type="hidden" id="dow_status" name="dow_status" value="{$game['dow_status']}">
<?php if ($isWechat):?> <?php if ($isWechat):?>
<?php if ($isAndroid):?> <?php if ($isAndroid):?>
<div class="bn-rule" style="display: none;"><img id="rule-img" src="__STATIC__/ios9/images/android-rule.png"></div> <div class="bn-rule" style="display: none;"><img id="rule-img" src="__STATIC__/ios9/images/android-rule.png"></div>
@ -45,6 +46,11 @@
<script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script> <script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script>
<script type="text/javascript"> <script type="text/javascript">
$('.down-link').on('click', function () { $('.down-link').on('click', function () {
var dow_status = parseInt($('#dow_status').val());
if (dow_status == 0) {
layer.msg('该游戏已关闭下载');
return false;
}
if ($('.bn-rule').length > 0) { if ($('.bn-rule').length > 0) {
$('.bn-rule').css('display','block') $('.bn-rule').css('display','block')
$('.bn-rule').css('z-index','12') $('.bn-rule').css('z-index','12')

Loading…
Cancel
Save