Commit fa3d6d43 authored by houdong's avatar houdong

资金重置卡的跳转

parent df556564
...@@ -199,13 +199,13 @@ function sendSmsAndSubmit(){ ...@@ -199,13 +199,13 @@ function sendSmsAndSubmit(){
layer.open({content: data.info,skin: 'msg',time: 2, layer.open({content: data.info,skin: 'msg',time: 2,
end:function () { end:function () {
var href=location.href;
console.log('当前页面url:'+href); if(targetUrl!=''){
// if(href.indexOf("userList")>0){ $.cookie('denglu',targetUrl);
window.location.reload(); location.href='/PkTop';
// }else{ }else{
// location.href='/Allex?viewPage=2'; window.location.reload();
// } }
}}); }});
}else{ }else{
...@@ -221,7 +221,15 @@ function sendSmsAndSubmit(){ ...@@ -221,7 +221,15 @@ function sendSmsAndSubmit(){
//可能有各种错误提示 //可能有各种错误提示
layer.open({content:'登录成功',skin: 'msg',time: 2, layer.open({content:'登录成功',skin: 'msg',time: 2,
end:function () { end:function () {
location.href=targetUrl; // location.href=targetUrl;
if(targetUrl!=''){
$.cookie('denglu',targetUrl);
location.href='/PkTop';
}else{
window.location.reload();
}
}}); }});
}else{ }else{
// $('#baomingPOP').hide(); // $('#baomingPOP').hide();
......
...@@ -35,6 +35,13 @@ class PkTopAction extends IdentityAction{ ...@@ -35,6 +35,13 @@ class PkTopAction extends IdentityAction{
$this->assign('groupInfo', json_encode($groupInfo)); $this->assign('groupInfo', json_encode($groupInfo));
//设置分享参数 //设置分享参数
$this->setShare($userId, I('cfrom')); $this->setShare($userId, I('cfrom'));
//重置卡个数
if($userId){
$leftNum=M('MagicboxCard')->where(['user_id'=>$userId,'card_type'=>2,'use_time'=>0])->count();
}else{
$leftNum=0;
}
$this->assign('resetLeftNum',$leftNum);
} }
} }
......
...@@ -36,6 +36,9 @@ ...@@ -36,6 +36,9 @@
margin-right: -8px; margin-right: -8px;
} }
.overHide{white-space: nowrap;overflow: hidden;text-overflow: ellipsis;} .overHide{white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
</style>
<style>
</style> </style>
<script type="text/javascript"> <script type="text/javascript">
AppBridge.init(); AppBridge.init();
...@@ -170,15 +173,15 @@ ...@@ -170,15 +173,15 @@
</div> </div>
<!--更多大赛--> <!--更多大赛-->
<div class="contest-body-detail" style="display: none;"> <!--<div class="contest-body-detail" style="display: none;">-->
<div class="contest-setting contest-item contest-bg"> <!--<div class="contest-setting contest-item contest-bg">-->
<div class="title-p">更多大赛 更多奖金</div> <!--<div class="title-p">更多大赛 更多奖金</div>-->
<div class="setting-info"> <!--<div class="setting-info">-->
<img class="set-info-t" src="__PUBLIC__/images/h5/g2020/hycs-img.png" alt=""> <!--<img class="set-info-t" src="__PUBLIC__/images/h5/g2020/hycs-img.png" alt="">-->
<include file="moreDs"/> <!--<include file="moreDs"/>-->
</div> <!--</div>-->
</div> <!--</div>-->
</div> <!--</div>-->
<include file="bottom"/> <include file="bottom"/>
<div class="foot-fix"> </div> <div class="foot-fix"> </div>
...@@ -291,17 +294,7 @@ ...@@ -291,17 +294,7 @@
// }); // });
//点关闭刷新页面取状态
// $("#closeSucc").click(function () {
// $('#popPkTopSucc').hide();
// window.location.reload();
// });
//根据参数显示不同的标签页
// if('{$_GET.viewPage}'=='1'){ $('.en-li').eq(0).click(); }
// if('{$_GET.viewPage}'=='2'){ $('.en-li').eq(1).click(); }
// if('{$_GET.viewPage}'=='3'){ $('.en-li').eq(2).click(); }
// if('{$_GET.viewPage}'=='4'){ $('.en-li').eq(3).click(); }
//点用户名和头像跳转到该大赛的旧的交易页 //点用户名和头像跳转到该大赛的旧的交易页
...@@ -321,18 +314,18 @@ ...@@ -321,18 +314,18 @@
}); });
//资金重置卡 //资金重置卡
$('.bottom-j-left').click(function() { // $('.bottom-j-left').click(function() {
// $.post('/Public/statistics',{type_:'Allex_fund_reset'},function () {}) // // $.post('/Public/statistics',{type_:'Allex_fund_reset'},function () {})
if ('{$user.userID}' > 0) { // if ('{$user.userID}' > 0) {
location.href = '{:M_URL}/Box'; // location.href = '{:M_URL}/Box';
} else { // } else {
if (mfrom[0] == 1 || mfrom[0] == 2) { // if (mfrom[0] == 1 || mfrom[0] == 2) {
checkLoginAndDo(mfrom[0],'{$user.userID}',3); // checkLoginAndDo(mfrom[0],'{$user.userID}',3);
} else { // } else {
animPop('#baomingPOP') // animPop('#baomingPOP')
} // }
} // }
}); // });
...@@ -347,6 +340,16 @@ ...@@ -347,6 +340,16 @@
if('{$_GET.clickFlag}'==1){ if('{$_GET.clickFlag}'==1){
$(".baoming").click(); $(".baoming").click();
} }
//刷新后跳转
var denglu=$.cookie('denglu');
if(denglu!=''&&denglu!=null){
$.cookie('denglu','');
if('{$resetLeftNum}'>0){
location.href=denglu+"?popFlag=5";
}else{
location.href=denglu;
}
}
}); });
......
...@@ -59,16 +59,16 @@ ...@@ -59,16 +59,16 @@
<span class="star-bg"></span> <span class="star-bg"></span>
</div> </div>
</div> </div>
<!-- <div class="time-contest-item box-avt-msg">--> <div class="time-contest-item box-avt-msg">
<!-- <span class="time-t" style="width:100%;">--> <span class="time-t" style="width:100%;">
<!-- <img class="icon" style="width: 20px;height: 20px;" src="__PUBLIC__/Home/images/g2020/allex_icon.png" alt="">模拟资金重置卡--> <img class="icon" style="width: 20px;height: 20px;" src="__PUBLIC__/Home/images/g2020/allex_icon.png" alt="">模拟资金重置卡
<!-- <eq name="hideShiPan" value="0">-->
<!-- <a href="{:M_URL}/Box" style="-webkit-border-radius: 20px;font-size: 12px;color: #ffffff;background-color: #F98935;padding: 0px 8px;float: right;line-height: 23px;margin-top: 2px;font-weight: normal;">立即获得重置卡</a>--> <!--<a href="{:M_URL}/Box" style="-webkit-border-radius: 20px;font-size: 12px;color: #ffffff;background-color: #F98935;padding: 0px 8px;float: right;line-height: 23px;margin-top: 2px;font-weight: normal;">立即获得重置卡</a>-->
<!-- </eq>-->
<!-- </span>--> </span>
<!-- <p class="msg-l1">使用后,模拟金重置为初始一百万,同时收益率、持仓、交易记录等全部清除。</p>--> <p class="msg-l1">使用后,模拟金重置为初始一百万,同时收益率、持仓、交易记录等全部清除。</p>
<!-- <p class="msg-l2">注:当个交易日使用,第二个交易日生效。<br>(交易日指早9点-下午4点开盘期间)</p>--> <p class="msg-l2">注:当个交易日使用,第二个交易日生效。<br>(交易日指早9点-下午4点开盘期间)</p>
<!-- </div>--> </div>
<div class="time-contest-item box-avt-msg" style="padding-top: 5px;"> <div class="time-contest-item box-avt-msg" style="padding-top: 5px;">
<a href="{:M_URL}/Zjds" target="_blank"> <a href="{:M_URL}/Zjds" target="_blank">
<img src="__PUBLIC__/images/2022/vipBottom1.png" alt=""> <img src="__PUBLIC__/images/2022/vipBottom1.png" alt="">
......
...@@ -10,6 +10,13 @@ ...@@ -10,6 +10,13 @@
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<!--</div>--> <!--</div>-->
<style>
.zjCard{
-webkit-border-radius: 20px;font-size: 12px;color: #ffffff;background-color: #F98935;padding: 0px 8px;
}
</style>
<div class="contest-setting contest-item"> <div class="contest-setting contest-item">
<div class="title-p">大赛规则</div> <div class="title-p">大赛规则</div>
<div class="setting-info"> <div class="setting-info">
...@@ -28,7 +35,19 @@ ...@@ -28,7 +35,19 @@
</div> </div>
<div class="item-d"> <div class="item-d">
<span class="item-t"><img src="__PUBLIC__/Home/images/g2020/w4.png" alt=""></span> <span class="item-t"><img src="__PUBLIC__/Home/images/g2020/w4.png" alt=""></span>
<p class="item-p1">初始资产统一为100万元虚拟资金;周赛期间如果亏损较多,可以购买“重置卡”进行重置资产到初始资金100万,<span class="red">当天(交易日)使用次日(交易日)生效。</span><br><a href="javascript:;" class="buy-card">立即购买资金重置卡></a></p> <p class="item-p1">初始资产统一为100万元虚拟资金;周赛期间如果亏损较多,可以购买“重置卡”进行重置资产到初始资金100万,
<span class="red">当天(交易日)使用次日(交易日)生效。</span><br>
<!--<a href="javascript:;" class="buy-card">立即购买资金重置卡></a>-->
<!--<a href="{:M_URL}/Box" style="">立即获得重置卡</a>-->
<gt name="resetLeftNum" value="0">
<a href="{:M_URL}/Box?popFlag=5" class="zjCard">立即使用重置卡 X{$resetLeftNum}</a>
<else/>
<a href="javascript:;" class="zjCard getResetCard" >立即获得重置卡</a>
</gt>
</p>
</div> </div>
</div> </div>
<div class="time-contest-item"> <div class="time-contest-item">
...@@ -74,4 +93,23 @@ ...@@ -74,4 +93,23 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
\ No newline at end of file
<script type="text/javascript">
//立即获得重置卡
$('.getResetCard').click(function() {
if('{$user.userID}'==''){
if(mfrom[1]>0){
AppBridge.goLogin();
}else{
$('#baomingPOP').attr('targetUrl','{:M_URL}/Box');
animPop('#baomingPOP');
}
}else{
location.href = '{:M_URL}/Box';
}
});
</script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment