落地页

master
liuweiwen 5 years ago
parent b61587868b
commit 43c1f7832a

@ -227,6 +227,7 @@ class HomeController extends Controller
$this->assign('apply', $apply);
$this->assign('game', $game);
$this->assign('promoteId', $promoteId);
$this->assign('cur_url', "http://" . $_SERVER['HTTP_HOST'] . __SELF__);
$this->display('landingPage');
}

@ -198,7 +198,7 @@
<div class="text">• 至尊下载:永不闪退、不丢数据稳定有保障</div>
<div class="text"> • 同一设备安装一次可在一年内无限次下载重装</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" onclick="location.href='{$downloadUrl}'">普通下载</div>
<div class="gray-btn down-link" down-link="{$downloadUrl}">普通下载</div>
</div>
</div>
</div>
@ -261,6 +261,37 @@
</html>
<script>
$(function(){
var cur_url = window.location.href;
$('.down-link').on('click', function () {
// if ($('.bn-rule').length > 0) {
// $('.bn-rule').css('display','block')
// $('.bn-rule').css('z-index','12')
// return
// }
if ($('input[name=isNewIos]').val() == 0 && $('input[name=isIOS13]').val() == 1) {
if (parseInt("{:I('get.status', 0)}") > 0) {
location.href = "{:U('iosDown',array('gid'=>$apply['game_id'],'pid'=>$apply['promote_id'],'status'=>1))}"
return
} else {
layer.confirm('请先到官网注册', {title: '提示'}, function () {
location.href = "/mobile.php?s=/User/login/pid/" + "{$apply.promote_id}" + "/gid/" + "{$apply.game_id}" + "/url/{base64_encode(base64_encode($cur_url))}" + ".html"
});
return
}
}
var downLink = $(this).attr('down-link');
console.log(downLink);
location.href = downLink
});
$('.no-package').click(function() {
layer.msg('暂无下载', {
icon: 7,
time: 2000
})
});
if ($("#brief_introduction").length<80) {
$("#look_more").hide();
}

Loading…
Cancel
Save