Commit a183fe18 authored by houdong's avatar houdong

换企业微信图片

parent 96c36d73
......@@ -201,11 +201,14 @@ function sendSmsAndSubmit(){
end:function () {
var href=location.href;
console.log('当前页面url:'+href);
// if(href.indexOf("userList")>0){
window.location.reload();
// }else{
// location.href='/Allex?viewPage=2';
// }
// location.reload();
if(targetUrl!=''){
$.cookie('denglu',targetUrl);
location.href=targetUrl;
}
}});
}else{
......
......@@ -88,7 +88,13 @@ function submitBaoming(userType,tradeUrl){
if(data.canLogin==1){
layer.alert('登录成功', 1, function(){
// location.reload();
if(tradeUrl==''){
location.href='/Index/myInvite?pop=1';
}else{
$.cookie('denglu','/Index/saicheng');
location.href='/Index/saicheng';
}
});
}else{
$('#baoming').text('进入交易');
......@@ -105,7 +111,9 @@ function submitBaoming(userType,tradeUrl){
}else{
//因登录窗重用,不出现下面的弹窗了
layer.alert('登录成功', 1, function(){
location.reload();
$.cookie('denglu','/Index/saicheng');
location.href='/Index/saicheng';
// location.reload();
});
return;
var index = $.layer({
......
......@@ -611,7 +611,8 @@ class PkTopAction extends IdentityAction{
if($row['grade'] == -2){
M('UserGroup')->where(['user_id'=>$userId,'group_id'=>$groupId])->save(['grade'=>0,'add_time'=>time()]);
}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{
// }
//我的所有的挑战列表,包括我挑战别人的,和别人挑战我的
public function myPkList(){
$userId = I('userId', '',intval);
if(!$userId){
$userId = $this->user['userID'];
}
// $where['pk_end_time']=array('egt',date('Y-m-d'));
$where['_complex'] = array('active_id'=>$userId,'passive_id'=>$userId,'_logic'=>'or');
$myPkList=M('PktopData')->where($where)->order('pk_begin_time desc')->select();
foreach ($myPkList as $k => &$v) {
$v['pk_begin_time']=date('m月d日',strtotime($v['pk_begin_time']));
$v['pk_end_time']=date('m月d日',strtotime($v['pk_end_time']));
}
$this->assign(array('myPkList'=>$myPkList));
//进入交易需要的参数
$groupInfo=M('Group')->field('group_id,web_id,category,name,startTime,endTime')->where(array('group_id'=>$this->GID))->find();
$zhuangtai=$this->getGroupStatus($groupInfo);
$groupInfo['userID']=$userId;
$groupInfo['close_tips']='';
$groupInfo['viewPage']=2;
$groupInfo['zhuangtai'] = $zhuangtai;
$groupInfo['title'] = '『全民炼股』争霸赛(2020赛季)';
$groupInfo['desc'] = $groupInfo['shareContent']='红包周周有,万元大奖月月送,精英还可赢PK奖';
$this->assign('groupInfo',json_encode($groupInfo));
//我的挑战金
$myInfo=M('PktopUser')->where(array('user_id'=>$userId))->find();
$leftMoney=$myInfo['active_money']+$myInfo['passive_money']-$myInfo['already_withdraw_money'];
$this->assign('leftMoney',$leftMoney);
$this->display();
}
// public function myPkList(){
// $userId = I('userId', '',intval);
// if(!$userId){
// $userId = $this->user['userID'];
// }
//// $where['pk_end_time']=array('egt',date('Y-m-d'));
// $where['_complex'] = array('active_id'=>$userId,'passive_id'=>$userId,'_logic'=>'or');
// $myPkList=M('PktopData')->where($where)->order('pk_begin_time desc')->select();
// foreach ($myPkList as $k => &$v) {
// $v['pk_begin_time']=date('m月d日',strtotime($v['pk_begin_time']));
// $v['pk_end_time']=date('m月d日',strtotime($v['pk_end_time']));
//
// }
//
// $this->assign(array('myPkList'=>$myPkList));
// //进入交易需要的参数
// $groupInfo=M('Group')->field('group_id,web_id,category,name,startTime,endTime')->where(array('group_id'=>$this->GID))->find();
//
// $zhuangtai=$this->getGroupStatus($groupInfo);
// $groupInfo['userID']=$userId;
//
// $groupInfo['close_tips']='';
// $groupInfo['viewPage']=2;
// $groupInfo['zhuangtai'] = $zhuangtai;
// $groupInfo['title'] = '『全民炼股』争霸赛(2020赛季)';
// $groupInfo['desc'] = $groupInfo['shareContent']='红包周周有,万元大奖月月送,精英还可赢PK奖';
//
// $this->assign('groupInfo',json_encode($groupInfo));
// //我的挑战金
// $myInfo=M('PktopUser')->where(array('user_id'=>$userId))->find();
// $leftMoney=$myInfo['active_money']+$myInfo['passive_money']-$myInfo['already_withdraw_money'];
// $this->assign('leftMoney',$leftMoney);
// $this->display();
// }
//我的邀请列表
public function myInvite(){
......@@ -913,41 +914,41 @@ class PkTopAction extends IdentityAction{
}
//pk列表,选月份后也调用该方法
public function pkList(){
if(IS_GET){
//显示当前月的挑战
// $month=date('Y-m');
$month=date('Y-m',strtotime(date('Y-m-01') . "-1 month"));
$selectMonth=array();
foreach ($this->MONTH as $k => $value) {
$nowMonth=date('Y-m',strtotime(date('Y-m-01')));
if($k<$nowMonth){
$selectMonth[$k]=$value;
}
}
}else{
$month = I('month', '',intval);
}
$pkList=M('PktopData')->where(array('month'=>$month))->order('add_time desc')->select();
foreach ($pkList as $k => &$v) {
$v['pk_begin_time']=date('m月d日',strtotime($v['pk_begin_time']));
$v['pk_end_time']=date('m月d日',strtotime($v['pk_end_time']));
}
$this->assign(array('pkList'=>$pkList,'selectMonth'=>$selectMonth,'lastMonth'=>$month));
$this->assign(['type'=>'pkList']);
if(IS_GET){
$userId = $this->user['userID'];
$this->setGoTrade($userId);
$this->display();
}else{
$content = $this->fetch('item2');
$this->ajaxReturn(array(
'status' => 1,'count'=>count($pkList),'data' => $content
));
}
}
// public function pkList(){
// if(IS_GET){
// //显示当前月的挑战
//// $month=date('Y-m');
// $month=date('Y-m',strtotime(date('Y-m-01') . "-1 month"));
// $selectMonth=array();
// foreach ($this->MONTH as $k => $value) {
// $nowMonth=date('Y-m',strtotime(date('Y-m-01')));
// if($k<$nowMonth){
// $selectMonth[$k]=$value;
// }
// }
// }else{
// $month = I('month', '',intval);
// }
// $pkList=M('PktopData')->where(array('month'=>$month))->order('add_time desc')->select();
// foreach ($pkList as $k => &$v) {
// $v['pk_begin_time']=date('m月d日',strtotime($v['pk_begin_time']));
// $v['pk_end_time']=date('m月d日',strtotime($v['pk_end_time']));
//
// }
// $this->assign(array('pkList'=>$pkList,'selectMonth'=>$selectMonth,'lastMonth'=>$month));
// $this->assign(['type'=>'pkList']);
// if(IS_GET){
// $userId = $this->user['userID'];
// $this->setGoTrade($userId);
// $this->display();
// }else{
//
// $content = $this->fetch('item2');
// $this->ajaxReturn(array(
// 'status' => 1,'count'=>count($pkList),'data' => $content
// ));
// }
// }
public function login() {
$userId=I('user_id', '',intval);
......@@ -1395,6 +1396,15 @@ class PkTopAction extends IdentityAction{
//我的成绩
$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();
}
......@@ -1465,8 +1475,6 @@ class PkTopAction extends IdentityAction{
$content = $this->fetch('itemWeek');
$this->ajaxReturn(['status' => 1,'count' =>$phb[1],'data' => $content]);
}
}
......@@ -1491,9 +1499,6 @@ class PkTopAction extends IdentityAction{
$this->ajaxReturn(['status' => 1,'count' =>$phb[1],'data' => $content]);
}
}
//其他排行榜
......
......@@ -273,41 +273,6 @@
<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 @@
$(".left-card1").click(function () {
if('{$user.userID}'==''){
$(".mask").show();
// $("#pop1").show();
$("#popLogin").show();
$("#pop1").show();
// $("#popLogin").show();
}else{
// location.href="/index/resetBalance";
if('{$resetLeftNum}'>0){
......
......@@ -326,22 +326,7 @@
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(){
......@@ -362,7 +347,14 @@
var denglu=$.cookie('denglu');
if(denglu!=''&&denglu!=null){
$.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 @@
<div class="code">
<img src="__PUBLIC__/Home/images/g2020/2023ewm/zhongjinDs.jpg" alt="">
<p class="save-msg">保存截图,使用微信扫一扫</p>
<p class="save-code">微信号:{$weixin}</p>
<!-- <button class="copy-code-btna copbtn copyWx" data-clipboard-action="copy" data-clipboard-text="{$weixin}" >复制微信</button>-->
<!--<p class="save-code">微信号:{$weixin}</p>-->
<button class="recognition-code jumpWx" weixinUrl="{$weixinUrl}" >进入微信一键添加</button>
</div>
</div>
......@@ -333,21 +333,35 @@
// }
// }
// });
$('.buy-card').click(function() {
//立即购买资金重置卡
$('.buy-card').click(function() {
if('{$user.userID}'==''){
if(mfrom[1]>0){
AppBridge.goLogin();
}else{
$('#baomingPOP').attr('targetUrl','{:M_URL}/Pay/apply_pay?type=serviceReset');
animPop('#baomingPOP');
}
}else{
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(){
......@@ -361,6 +375,16 @@
$(".baoming").click();
}
//跳转
var denglu=$.cookie('denglu');
if(denglu!=''&&denglu!=null){
$.cookie('denglu','');
location.href=denglu;
}
});
</script>
......
......@@ -59,16 +59,20 @@
<span class="star-bg"></span>
</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;">
<a href="{:M_URL}/Zjds" target="_blank">
<img src="__PUBLIC__/images/2022/vipBottom1.png" alt="">
......
......@@ -26,13 +26,20 @@
<span class="item-t"><img src="__PUBLIC__/Home/images/g2020/w3.png" alt=""></span>
<p class="item-p1">周转率需>0%(每月必须交易一次),才可参加周赛评奖。全仓买入卖出一次的周转率算作100%;</p>
</div>
<div class="item-d">
<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>
</div>
<!--<div class="item-d">-->
<!--<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>-->
<!--<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 class="time-contest-item">
<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