优化落地1

master
chenzhi 3 years ago
parent 80ef5a77b1
commit dbf2826c83

@ -328,6 +328,25 @@ class HomeController extends Controller
if(in_array($game['id'], [219, 220])) { if(in_array($game['id'], [219, 220])) {
$game['relation_game_name'] = '麻雀飞青天'; $game['relation_game_name'] = '麻雀飞青天';
} }
// dd($game);
//测试代码->begin
$game['screenshot'] = [
'https://wmtx-platform-product.wmtxkj.com/icon/5ee83b7f7508f.png',
'https://wmtx-platform-product.wmtxkj.com/icon/5ee83b7fd0f0d.png',
'https://wmtx-platform-product.wmtxkj.com/icon/5ee83b7ed34ad.png',
'https://wmtx-platform-product.wmtxkj.com/icon/5ee83b80ba419.png',
'https://wmtx-platform-product.wmtxkj.com/icon/5ee83b804808c.png'
];
$game['download_ways'] = 2;
//
//
//
// dd($game);
//测试代码->end
$this->assign("serviceQQ", $serviceQQ); $this->assign("serviceQQ", $serviceQQ);
$this->assign('isNewIos', $isNewIos); $this->assign('isNewIos', $isNewIos);

@ -38,6 +38,7 @@
<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" name="betaUrl" value="{$game['beta_url']}"> <input type="hidden" name="betaUrl" value="{$game['beta_url']}">
<input type="hidden" name="force" value="{$force}"> <input type="hidden" name="force" value="{$force}">
<input type="hidden" id="gameInfo" data-downloadWays="{$game['download_ways']}">
<?php if ($isWechat):?> <?php if ($isWechat):?>
<?php if ($isAndroid):?> <?php if ($isAndroid):?>
@ -49,8 +50,6 @@
<div class="home"> <div class="home">
<!--有落地页视频--> <!--有落地页视频-->
<?php if (!empty($game['flooring_page_video'])):?> <?php if (!empty($game['flooring_page_video'])):?>
<!--落地页视频置顶--> <!--落地页视频置顶-->
@ -305,33 +304,92 @@
</div> </div>
</div> </div>
<div class="second" style="display: none;"> <if condition="$game['download_ways'] eq 1">
<div class="second-box"> <div class="second" style="display: none;">
<div class="carousel"> <div class="second-box">
<div class="swiper-container"> <div class="carousel">
<div class="swiper-wrapper"> <div class="swiper-container">
<div class="swiper-slide"> <div class="swiper-wrapper">
<div class="swiper-slide">
<div class="swiper-slide-box">
<div class="slide-img">
<img src="__IMG__/ladingpage/pd1.png" alt="" style=" height: 4.6rem;">
</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide-box">
<div class="slide-img">
<img src="__IMG__/ladingpage/pd2.png" alt="" style=" height: 4.6rem;">
</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide-box"> <div class="swiper-slide-box">
<div class="slide-img"> <div class="slide-img">
<img src="__IMG__/20191225/1.png" alt="" style=" height: 4.34rem;"> <img src="__IMG__/ladingpage/pd3.png" alt="" style=" height: 4.6rem;">
</div> </div>
<div>一、请先安装并打开testflight平台</div>
</div> </div>
</div> </div>
<div class="swiper-slide"> <div class="swiper-slide">
<div class="swiper-slide-box">
<div class="slide-img">
<img src="__IMG__/ladingpage/pd4.png" alt="" style=" height: 4.6rem;">
</div>
</div>
</div>
</div>
<div class="swiper-pagination"></div>
</div>
</div>
</div>
</div>
<else />
<div class="second" style="display: none;">
<div class="second-box" style="height: 6.2rem;">
<div class="carousel">
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="swiper-slide-box">
<div class="slide-img">
<img src="__IMG__/ladingpage/tf1.png" alt="" style=" height: 4.34rem;">
</div>
<div>一、点击跳转至“App Store”下载“TestFlight平台”</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide-box">
<div class="slide-img">
<img src="__IMG__/ladingpage/tf2.png" alt="" style=" height: 4.34rem;">
</div>
<div>二、下载安装“TestFlight平台”并打开</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide-box"> <div class="swiper-slide-box">
<div class="slide-img"> <div class="slide-img">
<img src="__IMG__/20191225/2.png" alt="" style=" height: 4.34rem;"> <img src="__IMG__/ladingpage/tf3.png" alt="" style=" height: 4.34rem;">
</div> </div>
<div>二、安装步骤窗口点击按钮,下载游戏</div> <div>三、返回浏览器并点击去“TestFlight平台”下载游戏</div>
</div> </div>
</div> </div>
</div> <div class="swiper-slide">
<div class="swiper-pagination"></div> <div class="swiper-slide-box">
</div> <div class="slide-img">
</div> <img src="__IMG__/ladingpage/tf4.png" alt="" style=" height: 4.34rem;">
</div>
<div>四、在“TestFlight平台”找到对应游戏接受并安装。</div>
</div>
</div>
</div>
<div class="swiper-pagination"></div>
</div>
</div>
</div>
</div> </div>
</div> </if>
<?php <?php
@ -610,25 +668,40 @@ justify-content: center;
background:rgba(0,0,0,0.6); z-index: 999;display: none;"></div> background:rgba(0,0,0,0.6); z-index: 999;display: none;"></div>
<div class="mounting" style="display: none;"> <div class="mounting" style="display: none;">
<div class="mounting-box"> <div class="mounting-box" style="height: auto;padding-bottom: .5rem;">
<div class="carousel"> <div class="carousel">
<div class="swiper-container"> <div class="swiper-container">
<div class="swiper-wrapper"> <div class="swiper-wrapper">
<div class="swiper-slide"> <div class="swiper-slide">
<div class="swiper-slide-box"> <div class="swiper-slide-box">
<div class="slide-img"> <div class="slide-img">
<img src="__IMG__/20191225/1.png" alt="" style=" height: 3.64rem;"> <img src="__IMG__/ladingpage/tf1.png" alt="" style=" height: 4.34rem;">
</div> </div>
<div style="text-align: left;margin-left: 10px;">一、请先安装并打开testflight平台</div> <div>一、点击跳转至“App Store”下载“TestFlight平台”</div>
<div onclick='$(".mounting").hide();$(".installPop").show();' style="font-size: xx-small;margin-left: 10px;">提示:<a id='install-btn' style="color: cornflowerblue;text-decoration: underline;">由于苹果进行区域限制问题目前需要用户手动设置dns为114.114.114.114或8.8.8.8</a><img src="__IMG__/next_bg.png" style="width: 25px;margin-left: 8px;"></div> </div>
</div>
<div class="swiper-slide">
<div class="swiper-slide-box">
<div class="slide-img">
<img src="__IMG__/ladingpage/tf2.png" alt="" style=" height: 4.34rem;">
</div>
<div>二、下载安装“TestFlight平台”并打开</div>
</div>
</div> </div>
<div class="swiper-slide">
<div class="swiper-slide-box">
<div class="slide-img">
<img src="__IMG__/ladingpage/tf3.png" alt="" style=" height: 4.34rem;">
</div>
<div>三、返回浏览器并点击去“TestFlight平台”下载游戏</div>
</div>
</div> </div>
<div class="swiper-slide"> <div class="swiper-slide">
<div class="swiper-slide-box"> <div class="swiper-slide-box">
<div class="slide-img"> <div class="slide-img">
<img src="__IMG__/20191225/2.png" alt="" style=" height: 4.34rem;"> <img src="__IMG__/ladingpage/tf4.png" alt="" style=" height: 4.34rem;">
</div> </div>
<div style="text-align: left;margin-left: 10px;">二、安装步骤窗口点击按钮,下载游戏</div> <div>四、在“TestFlight平台”找到对应游戏接受并安装。</div>
</div> </div>
</div> </div>
</div> </div>
@ -643,7 +716,7 @@ background:rgba(0,0,0,0.6); z-index: 999;display: none;"></div>
</div> </div>
<!-- TestFlight安装提示 --> <!-- TestFlight安装提示 -->
<div class="register installPop" style="display: none;"> <!-- <div class="register installPop" style="display: none;">
<div class="register-box" style="height: auto;"> <div class="register-box" style="height: auto;">
<div class="register-heard"> <div class="register-heard">
TestFlight安装提示 TestFlight安装提示
@ -660,7 +733,7 @@ background:rgba(0,0,0,0.6); z-index: 999;display: none;"></div>
</div> </div>
</div> </div>
</div> </div> -->
</body> </body>
</html> </html>
@ -824,6 +897,7 @@ function getCurUserId() {
$(".mode").hide(); $(".mode").hide();
$(".giftSecond").hide() $(".giftSecond").hide()
$(".giftStep").hide() $(".giftStep").hide()
document.body.style.overflow = 'auto';
}) })
$(".commonCut").click(function(){ $(".commonCut").click(function(){
$(".commonWindow").hide(); $(".commonWindow").hide();
@ -1267,10 +1341,12 @@ function getCurUserId() {
// $('.bn-rule').css('z-index','12') // $('.bn-rule').css('z-index','12')
// return // return
// } // }
if ($('input[name=isNewIos]').val() == 0 && $('input[name=isIOS13]').val() == 1) { if ($('input[name=isNewIos]').val() == 0 && $('input[name=isIOS13]').val() == 1) {
var iosDownUrl = "{:U('iosDown',array('gid'=>$apply['game_id'],'pid'=>$apply['promote_id'],'status'=>1))}"; var iosDownUrl = "{:U('iosDown',array('gid'=>$apply['game_id'],'pid'=>$apply['promote_id'],'status'=>1))}";
if (parseInt("{:I('get.status', 0)}") > 0) { if (parseInt("{:I('get.status', 0)}") > 0) {
location.href = iosDownUrl; location.href = iosDownUrl;
alert(2)
return return
} else { } else {
layer.confirm('请先到官网注册', {title: '提示'}, function () { layer.confirm('请先到官网注册', {title: '提示'}, function () {
@ -1281,6 +1357,13 @@ function getCurUserId() {
return return
} }
} }
var downWays = $("#gameInfo").data("downloadways");
console.log(downWays)
if(downWays == 1){
$(".second").show();
$('.mode').show();
swiperGet()
}
location.href = downLink location.href = downLink
}); });
@ -1416,10 +1499,11 @@ function getCurUserId() {
$('.safari').show(); $('.safari').show();
return; return;
} }
$(".second").show(); $(".second").show();
$('.mode').show(); $('.mode').show();
swiperGet() swiperGet()
document.body.style.overflow = 'hidden'; // document.body.style.overflow = 'hidden';
}) })

Binary file not shown.

After

Width:  |  Height:  |  Size: 538 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 KiB

Loading…
Cancel
Save