Commit a183fe18 authored by houdong's avatar houdong

换企业微信图片

parent 96c36d73
...@@ -201,11 +201,14 @@ function sendSmsAndSubmit(){ ...@@ -201,11 +201,14 @@ function sendSmsAndSubmit(){
end:function () { end:function () {
var href=location.href; var href=location.href;
console.log('当前页面url:'+href); console.log('当前页面url:'+href);
// if(href.indexOf("userList")>0){ // location.reload();
window.location.reload(); if(targetUrl!=''){
// }else{ $.cookie('denglu',targetUrl);
// location.href='/Allex?viewPage=2'; location.href=targetUrl;
// }
}
}}); }});
}else{ }else{
......
...@@ -88,7 +88,13 @@ function submitBaoming(userType,tradeUrl){ ...@@ -88,7 +88,13 @@ function submitBaoming(userType,tradeUrl){
if(data.canLogin==1){ if(data.canLogin==1){
layer.alert('登录成功', 1, function(){ layer.alert('登录成功', 1, function(){
// location.reload(); // location.reload();
if(tradeUrl==''){
location.href='/Index/myInvite?pop=1'; location.href='/Index/myInvite?pop=1';
}else{
$.cookie('denglu','/Index/saicheng');
location.href='/Index/saicheng';
}
}); });
}else{ }else{
$('#baoming').text('进入交易'); $('#baoming').text('进入交易');
...@@ -105,7 +111,9 @@ function submitBaoming(userType,tradeUrl){ ...@@ -105,7 +111,9 @@ function submitBaoming(userType,tradeUrl){
}else{ }else{
//因登录窗重用,不出现下面的弹窗了 //因登录窗重用,不出现下面的弹窗了
layer.alert('登录成功', 1, function(){ layer.alert('登录成功', 1, function(){
location.reload(); $.cookie('denglu','/Index/saicheng');
location.href='/Index/saicheng';
// location.reload();
}); });
return; return;
var index = $.layer({ var index = $.layer({
......
...@@ -611,7 +611,8 @@ class PkTopAction extends IdentityAction{ ...@@ -611,7 +611,8 @@ class PkTopAction extends IdentityAction{
if($row['grade'] == -2){ if($row['grade'] == -2){
M('UserGroup')->where(['user_id'=>$userId,'group_id'=>$groupId])->save(['grade'=>0,'add_time'=>time()]); M('UserGroup')->where(['user_id'=>$userId,'group_id'=>$groupId])->save(['grade'=>0,'add_time'=>time()]);
}else{ }else{
return ['status'=>0,'info'=>'您已经参加过该大赛','debug'=>$userId,'flag'=>1]; // return ['status'=>0,'info'=>'您已经参加过该大赛','debug'=>$userId,'flag'=>1];
return ['status'=>0,'info'=>'登录成功','debug'=>$userId,'flag'=>1];
} }
} }
...@@ -696,40 +697,40 @@ class PkTopAction extends IdentityAction{ ...@@ -696,40 +697,40 @@ class PkTopAction extends IdentityAction{
// } // }
//我的所有的挑战列表,包括我挑战别人的,和别人挑战我的 //我的所有的挑战列表,包括我挑战别人的,和别人挑战我的
public function myPkList(){ // public function myPkList(){
$userId = I('userId', '',intval); // $userId = I('userId', '',intval);
if(!$userId){ // if(!$userId){
$userId = $this->user['userID']; // $userId = $this->user['userID'];
} // }
// $where['pk_end_time']=array('egt',date('Y-m-d')); //// $where['pk_end_time']=array('egt',date('Y-m-d'));
$where['_complex'] = array('active_id'=>$userId,'passive_id'=>$userId,'_logic'=>'or'); // $where['_complex'] = array('active_id'=>$userId,'passive_id'=>$userId,'_logic'=>'or');
$myPkList=M('PktopData')->where($where)->order('pk_begin_time desc')->select(); // $myPkList=M('PktopData')->where($where)->order('pk_begin_time desc')->select();
foreach ($myPkList as $k => &$v) { // foreach ($myPkList as $k => &$v) {
$v['pk_begin_time']=date('m月d日',strtotime($v['pk_begin_time'])); // $v['pk_begin_time']=date('m月d日',strtotime($v['pk_begin_time']));
$v['pk_end_time']=date('m月d日',strtotime($v['pk_end_time'])); // $v['pk_end_time']=date('m月d日',strtotime($v['pk_end_time']));
//
} // }
//
$this->assign(array('myPkList'=>$myPkList)); // $this->assign(array('myPkList'=>$myPkList));
//进入交易需要的参数 // //进入交易需要的参数
$groupInfo=M('Group')->field('group_id,web_id,category,name,startTime,endTime')->where(array('group_id'=>$this->GID))->find(); // $groupInfo=M('Group')->field('group_id,web_id,category,name,startTime,endTime')->where(array('group_id'=>$this->GID))->find();
//
$zhuangtai=$this->getGroupStatus($groupInfo); // $zhuangtai=$this->getGroupStatus($groupInfo);
$groupInfo['userID']=$userId; // $groupInfo['userID']=$userId;
//
$groupInfo['close_tips']=''; // $groupInfo['close_tips']='';
$groupInfo['viewPage']=2; // $groupInfo['viewPage']=2;
$groupInfo['zhuangtai'] = $zhuangtai; // $groupInfo['zhuangtai'] = $zhuangtai;
$groupInfo['title'] = '『全民炼股』争霸赛(2020赛季)'; // $groupInfo['title'] = '『全民炼股』争霸赛(2020赛季)';
$groupInfo['desc'] = $groupInfo['shareContent']='红包周周有,万元大奖月月送,精英还可赢PK奖'; // $groupInfo['desc'] = $groupInfo['shareContent']='红包周周有,万元大奖月月送,精英还可赢PK奖';
//
$this->assign('groupInfo',json_encode($groupInfo)); // $this->assign('groupInfo',json_encode($groupInfo));
//我的挑战金 // //我的挑战金
$myInfo=M('PktopUser')->where(array('user_id'=>$userId))->find(); // $myInfo=M('PktopUser')->where(array('user_id'=>$userId))->find();
$leftMoney=$myInfo['active_money']+$myInfo['passive_money']-$myInfo['already_withdraw_money']; // $leftMoney=$myInfo['active_money']+$myInfo['passive_money']-$myInfo['already_withdraw_money'];
$this->assign('leftMoney',$leftMoney); // $this->assign('leftMoney',$leftMoney);
$this->display(); // $this->display();
} // }
//我的邀请列表 //我的邀请列表
public function myInvite(){ public function myInvite(){
...@@ -913,41 +914,41 @@ class PkTopAction extends IdentityAction{ ...@@ -913,41 +914,41 @@ class PkTopAction extends IdentityAction{
} }
//pk列表,选月份后也调用该方法 //pk列表,选月份后也调用该方法
public function pkList(){ // public function pkList(){
if(IS_GET){ // if(IS_GET){
//显示当前月的挑战 // //显示当前月的挑战
// $month=date('Y-m'); //// $month=date('Y-m');
$month=date('Y-m',strtotime(date('Y-m-01') . "-1 month")); // $month=date('Y-m',strtotime(date('Y-m-01') . "-1 month"));
$selectMonth=array(); // $selectMonth=array();
foreach ($this->MONTH as $k => $value) { // foreach ($this->MONTH as $k => $value) {
$nowMonth=date('Y-m',strtotime(date('Y-m-01'))); // $nowMonth=date('Y-m',strtotime(date('Y-m-01')));
if($k<$nowMonth){ // if($k<$nowMonth){
$selectMonth[$k]=$value; // $selectMonth[$k]=$value;
} // }
} // }
}else{ // }else{
$month = I('month', '',intval); // $month = I('month', '',intval);
} // }
$pkList=M('PktopData')->where(array('month'=>$month))->order('add_time desc')->select(); // $pkList=M('PktopData')->where(array('month'=>$month))->order('add_time desc')->select();
foreach ($pkList as $k => &$v) { // foreach ($pkList as $k => &$v) {
$v['pk_begin_time']=date('m月d日',strtotime($v['pk_begin_time'])); // $v['pk_begin_time']=date('m月d日',strtotime($v['pk_begin_time']));
$v['pk_end_time']=date('m月d日',strtotime($v['pk_end_time'])); // $v['pk_end_time']=date('m月d日',strtotime($v['pk_end_time']));
//
} // }
$this->assign(array('pkList'=>$pkList,'selectMonth'=>$selectMonth,'lastMonth'=>$month)); // $this->assign(array('pkList'=>$pkList,'selectMonth'=>$selectMonth,'lastMonth'=>$month));
$this->assign(['type'=>'pkList']); // $this->assign(['type'=>'pkList']);
if(IS_GET){ // if(IS_GET){
$userId = $this->user['userID']; // $userId = $this->user['userID'];
$this->setGoTrade($userId); // $this->setGoTrade($userId);
$this->display(); // $this->display();
}else{ // }else{
//
$content = $this->fetch('item2'); // $content = $this->fetch('item2');
$this->ajaxReturn(array( // $this->ajaxReturn(array(
'status' => 1,'count'=>count($pkList),'data' => $content // 'status' => 1,'count'=>count($pkList),'data' => $content
)); // ));
} // }
} // }
public function login() { public function login() {
$userId=I('user_id', '',intval); $userId=I('user_id', '',intval);
...@@ -1395,6 +1396,15 @@ class PkTopAction extends IdentityAction{ ...@@ -1395,6 +1396,15 @@ class PkTopAction extends IdentityAction{
//我的成绩 //我的成绩
$this->setMyData(); $this->setMyData();
//重置卡个数
if($userId){
$leftNum=M()->db(10, C('DB_CONFIG_DEMO'))->table('cofool_magicbox_card')->where(['user_id'=>$userId,'card_type'=>2,'use_time'=>0])->count();
}else{
$leftNum=0;
}
$this->assign('resetLeftNum',$leftNum);
$this->display(); $this->display();
} }
...@@ -1465,8 +1475,6 @@ class PkTopAction extends IdentityAction{ ...@@ -1465,8 +1475,6 @@ class PkTopAction extends IdentityAction{
$content = $this->fetch('itemWeek'); $content = $this->fetch('itemWeek');
$this->ajaxReturn(['status' => 1,'count' =>$phb[1],'data' => $content]); $this->ajaxReturn(['status' => 1,'count' =>$phb[1],'data' => $content]);
} }
} }
...@@ -1491,9 +1499,6 @@ class PkTopAction extends IdentityAction{ ...@@ -1491,9 +1499,6 @@ class PkTopAction extends IdentityAction{
$this->ajaxReturn(['status' => 1,'count' =>$phb[1],'data' => $content]); $this->ajaxReturn(['status' => 1,'count' =>$phb[1],'data' => $content]);
} }
} }
//其他排行榜 //其他排行榜
......
...@@ -273,41 +273,6 @@ ...@@ -273,41 +273,6 @@
<div class="mask" style="display: none;"></div> <div class="mask" style="display: none;"></div>
<!--<div class="camp-apply-pop pops" style="display: none;" id="popTixianNull">-->
<!--<div class="pop-main">-->
<!--<p style="text-align: center;font-weight: bold;font-size: 18px;color: #ff2336;margin-top: 5px;">您的钱包还未开启</p>-->
<!--<p class="main-msg-i okTxt" style="color: #333333;margin-bottom: 15px;" >报名参赛即可开启钱包</p>-->
<!--<p style="margin-left: 29%;"><img style="width: 60%;" src="__PUBLIC__/Home/images/2023ewm/jiangWx.jpg"/></p>-->
<!--<p class="pop-sub1 inWx" style="font-size: 14px;">(详情咨询客服)</p>-->
<!--<p class="pop-sub1">-->
<!--</p>-->
<!--</div>-->
<!--<span class="t-pop-close" ><img src="__PUBLIC__/Home/images/g2020/trade-close.png" alt=""></span>-->
<!--</div>-->
<!--<div class="camp-apply-pop pops" style="display: none;" id="popTixian1">-->
<!--<div class="pop-main">-->
<!--<p style="text-align: center;font-weight: bold;font-size: 18px;color: #ff2336;margin-top: 5px;" >您当前奖金不足20元</p>-->
<!--<p class="main-msg-i okTxt" style="color: #333333;margin-bottom: 15px;">累计奖金超过20元可提现</p>-->
<!--<p style="margin-left: 29%;"><img style="width: 60%;" src="__PUBLIC__/Home/images/2023ewm/jiangWx.jpg"/></p>-->
<!--<p class="pop-sub1 inWx" style="font-size: 14px;">(详情咨询客服)</p>-->
<!--<p class="pop-sub1">-->
<!--</p>-->
<!--</div>-->
<!--<span class="t-pop-close" ><img src="__PUBLIC__/Home/images/g2020/trade-close.png" alt=""></span>-->
<!--</div>-->
<!--<div class="camp-apply-pop pops" style="display: none;" id="popTixian2">-->
<!--<div class="pop-main">-->
<!--<p style="text-align: center;font-weight: bold;font-size: 18px;color: #ff2336;margin-top: 5px;" >奖金提现请添加客服微信</p>-->
<!--<p class="main-msg-i okTxt" style="color: #333333;margin-bottom: 15px;" >官方客服给您发微信红包</p>-->
<!--<p style="margin-left: 29%;"><img style="width: 60%;" src="__PUBLIC__/Home/images/2023ewm/jiangWx.jpg"/></p>-->
<!--<p class="pop-sub1 inWx" style="font-size: 14px;">(详情咨询客服)</p>-->
<!--<p class="pop-sub1">-->
<!--</p>-->
<!--</div>-->
<!--<span class="t-pop-close" ><img src="__PUBLIC__/Home/images/g2020/trade-close.png" alt=""></span>-->
<!--</div>-->
......
...@@ -125,8 +125,8 @@ ...@@ -125,8 +125,8 @@
$(".left-card1").click(function () { $(".left-card1").click(function () {
if('{$user.userID}'==''){ if('{$user.userID}'==''){
$(".mask").show(); $(".mask").show();
// $("#pop1").show(); $("#pop1").show();
$("#popLogin").show(); // $("#popLogin").show();
}else{ }else{
// location.href="/index/resetBalance"; // location.href="/index/resetBalance";
if('{$resetLeftNum}'>0){ if('{$resetLeftNum}'>0){
......
...@@ -326,22 +326,7 @@ ...@@ -326,22 +326,7 @@
window.location.href='{$Think.config.WWW_URL}Lesson/pay2?type=pk&money='+$(this).attr('money')+'&id='+$(this).attr('phbId'); window.location.href='{$Think.config.WWW_URL}Lesson/pay2?type=pk&money='+$(this).attr('money')+'&id='+$(this).attr('phbId');
}); });
//打开页面时出现pk消息的弹框
// if('{$popType}'==2){$('#pop2').show();$(".mask").show(); }
// if('{$popType}'==3){
// var text=$('#pop3').children('.result-msg-s').text();
// text=text.replace(/【】/, "【{$popPkUserName}】");
// $('#pop3').children('.result-msg-s').text(text);
// $('#pop3').show();
// $(".mask").show();
// }
// if('{$popType}'==4){
// var text=$('#pop4').children('.result-msg-s').text();
// text=text.replace(/【】/, "【{$popPkUserName}】");
// $('#pop4').children('.result-msg-s').text(text);
// $('#pop4').show();
// $(".mask").show();
// }
//点击年度精英赛的月份后请求后台 //点击年度精英赛的月份后请求后台
$('.select1').click(function(){ $('.select1').click(function(){
...@@ -362,7 +347,14 @@ ...@@ -362,7 +347,14 @@
var denglu=$.cookie('denglu'); var denglu=$.cookie('denglu');
if(denglu!=''&&denglu!=null){ if(denglu!=''&&denglu!=null){
$.cookie('denglu',''); $.cookie('denglu','');
location.href=denglu; if('{$resetLeftNum}'>'0'){
// location.href=denglu;
$(".mask").show();
$("#popChoose").show();
}else{
location.href='{:WWW_URL}/Lesson/pay2?type=reset';
}
} }
}); });
......
...@@ -115,8 +115,8 @@ ...@@ -115,8 +115,8 @@
<div class="code"> <div class="code">
<img src="__PUBLIC__/Home/images/g2020/2023ewm/zhongjinDs.jpg" alt=""> <img src="__PUBLIC__/Home/images/g2020/2023ewm/zhongjinDs.jpg" alt="">
<p class="save-msg">保存截图,使用微信扫一扫</p> <p class="save-msg">保存截图,使用微信扫一扫</p>
<p class="save-code">微信号:{$weixin}</p> <!--<p class="save-code">微信号:{$weixin}</p>-->
<!-- <button class="copy-code-btna copbtn copyWx" data-clipboard-action="copy" data-clipboard-text="{$weixin}" >复制微信</button>-->
<button class="recognition-code jumpWx" weixinUrl="{$weixinUrl}" >进入微信一键添加</button> <button class="recognition-code jumpWx" weixinUrl="{$weixinUrl}" >进入微信一键添加</button>
</div> </div>
</div> </div>
...@@ -333,21 +333,35 @@ ...@@ -333,21 +333,35 @@
// } // }
// } // }
// }); // });
$('.buy-card').click(function() {
//立即购买资金重置卡
$('.buy-card').click(function() {
if('{$user.userID}'==''){ if('{$user.userID}'==''){
if(mfrom[1]>0){ if(mfrom[1]>0){
AppBridge.goLogin(); AppBridge.goLogin();
}else{ }else{
$('#baomingPOP').attr('targetUrl','{:M_URL}/Pay/apply_pay?type=serviceReset');
animPop('#baomingPOP'); animPop('#baomingPOP');
} }
}else{ }else{
location.href = '{:M_URL}/Pay/apply_pay?type=serviceReset'; location.href = '{:M_URL}/Pay/apply_pay?type=serviceReset';
} }
}); });
//立即获得重置卡
// $('.getNow').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';
// }
// });
//开户链接跳转 //开户链接跳转
$(".lottery-click-a,.go-open").click(function(){ $(".lottery-click-a,.go-open").click(function(){
...@@ -361,6 +375,16 @@ ...@@ -361,6 +375,16 @@
$(".baoming").click(); $(".baoming").click();
} }
//跳转
var denglu=$.cookie('denglu');
if(denglu!=''&&denglu!=null){
$.cookie('denglu','');
location.href=denglu;
}
}); });
</script> </script>
......
...@@ -59,16 +59,20 @@ ...@@ -59,16 +59,20 @@
<span class="star-bg"></span> <span class="star-bg"></span>
</div> </div>
</div> </div>
<div class="time-contest-item box-avt-msg">
<span class="time-t" style="width:100%;">
<img class="icon" style="width: 20px;height: 20px;" src="__PUBLIC__/Home/images/g2020/allex_icon.png" alt="">模拟资金重置卡
<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> <!--<div class="time-contest-item box-avt-msg">-->
<!--<span class="time-t" style="width:100%;">-->
<!--<img class="icon" style="width: 20px;height: 20px;" src="__PUBLIC__/Home/images/g2020/allex_icon.png" alt="">模拟资金重置卡-->
<!--<a href="javascript:;"-->
<!--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;" class="getNow">立即获得重置卡</a>-->
<!--</span>-->
<!--<p class="msg-l1">使用后,模拟金重置为初始一百万,同时收益率、持仓、交易记录等全部清除。</p>-->
<!--<p class="msg-l2">注:当个交易日使用,第二个交易日生效。<br>(交易日指早9点-下午4点开盘期间)</p>-->
<!--</div>-->
</span>
<p class="msg-l1">使用后,模拟金重置为初始一百万,同时收益率、持仓、交易记录等全部清除。</p>
<p class="msg-l2">注:当个交易日使用,第二个交易日生效。<br>(交易日指早9点-下午4点开盘期间)</p>
</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="">
......
...@@ -26,13 +26,20 @@ ...@@ -26,13 +26,20 @@
<span class="item-t"><img src="__PUBLIC__/Home/images/g2020/w3.png" alt=""></span> <span class="item-t"><img src="__PUBLIC__/Home/images/g2020/w3.png" alt=""></span>
<p class="item-p1">周转率需>0%(每月必须交易一次),才可参加周赛评奖。全仓买入卖出一次的周转率算作100%;</p> <p class="item-p1">周转率需>0%(每月必须交易一次),才可参加周赛评奖。全仓买入卖出一次的周转率算作100%;</p>
</div> </div>
<div class="item-d">
<span class="item-t"><img src="__PUBLIC__/Home/images/g2020/w4.png" alt=""></span> <!--<div class="item-d">-->
<p class="item-p1">初始资产统一为100万元虚拟资金;周赛期间如果亏损较多,可以购买“重置卡”进行重置资产到初始资金100万, <!--<span class="item-t"><img src="__PUBLIC__/Home/images/g2020/w4.png" alt=""></span>-->
<span class="red">当天(交易日)使用次日(交易日)生效。</span><br> <!--<p class="item-p1">初始资产统一为100万元虚拟资金;周赛期间如果亏损较多,可以购买“重置卡”进行重置资产到初始资金100万,-->
<a href="javascript:;" class="buy-card">立即购买资金重置卡></a> <!--<span class="red">当天(交易日)使用次日(交易日)生效。</span><br>-->
</p>
</div> <!--<gt name="resetLeftNum" value="0">-->
<!--<a href="javascript:;" class="buy-card useResetCard">使用资金重置卡 X{$resetLeftNum}</a>-->
<!--<else/>-->
<!--<a href="javascript:;" class="buy-card">立即购买资金重置卡</a>-->
<!--</gt>-->
<!--</p>-->
<!--</div>-->
</div> </div>
<div class="time-contest-item"> <div class="time-contest-item">
<span class="time-t"> <img class="icon" src="__PUBLIC__/Home/images/g2020/pm-icon1.png" alt="">排名规则</span> <span class="time-t"> <img class="icon" src="__PUBLIC__/Home/images/g2020/pm-icon1.png" alt="">排名规则</span>
......
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