落地页

master
liuweiwen 5 years ago
parent 8a7b1a9768
commit ffadabf078

@ -227,7 +227,8 @@ 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__);
$cur_url = base64_encode(base64_encode("http://" . $_SERVER['HTTP_HOST'] . __SELF__));
$this->assign('cur_url', $cur_url);
$this->display('landingPage');
}

@ -257,13 +257,20 @@
<div class="blue-btn">点我去信任</div>
</div>
</div>
<?php
?>
<input type="hidden" id="cur_url" name="cur_url" value="{$cur_url}">
</body>
</html>
<script>
$(function(){
var cur_url = window.location.href;
var cur_url = $("#cur_url").val();
location.href = "/mobile.php?s=/User/login/pid/" + "{$apply.promote_id}" + "/gid/" + "{$apply.game_id}" + "/url/"+ cur_url + ".html"
return;
$('.down-link').on('click', function () {
// if ($('.bn-rule').length > 0) {
// if ($('.bn-rule').length > 0) {
// $('.bn-rule').css('display','block')
// $('.bn-rule').css('z-index','12')
// return
@ -275,7 +282,8 @@
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"
// location.href = '{:U("User/login",array("url"=>base64_encode(base64_encode(U("Game/detail",array("id"=>$_GET["id"], "pid" => $apply.promote_id, "gid" => $apply.game_id))))))}';
location.href = "/mobile.php?s=/User/login/pid/" + "{$apply.promote_id}" + "/gid/" + "{$apply.game_id}" + "/url/"+ cur_url + ".html"
});
return
}

@ -203,16 +203,15 @@ class UserController extends BaseController
} else {
$pid = I('get.pid', 0);
$gid = I('get.gid', 0);
$from = I('get.from', "");
if ($pid > 0 || $gid > 0) {
cookie('pgInfo', json_encode(['pid' => $pid, 'gid' => $gid]), 3600 * 24);
}
if ($_REQUEST['url']) {
$this->assign('url', base64_decode(base64_decode($_REQUEST['url'])));
} else {
$this->assign('url', U('User/index'));
}
$this->display();
}
}

@ -40,7 +40,7 @@
<div class="pop-wrap"></div>
</div>
</div>
<input type="hidden" id="from" name="from" value="{$from}">
<div class="popmsg pop-dialog" style="font-size: .28rem"></div>
</body>
<script src="__JS__/pop.lwx.min.js"></script>

Loading…
Cancel
Save