Commit be5d3f54 authored by wangjing's avatar wangjing

Merge remote-tracking branch 'origin/master'

parents a1138e54 364621c0
...@@ -93,7 +93,12 @@ $(function() { ...@@ -93,7 +93,12 @@ $(function() {
$("#lottery .btn").on('click', function(event) { $("#lottery .btn").on('click', function(event) {
$.get("/Index/checkLucky", {}, function (data) { $.get("/Index/checkLucky", {}, function (data) {
if (data.status == 0) { //未登录
if (data.status == 2) {
$(".mask").show();
$("#pop1").show();
}else if (data.status == 0) {
layer.msg(data.info); layer.msg(data.info);
}else{ }else{
event.preventDefault(); event.preventDefault();
......
...@@ -43,6 +43,7 @@ define('NIU_SAN_ID',24326); ...@@ -43,6 +43,7 @@ define('NIU_SAN_ID',24326);
define('NIU_BAI_ID',24327); define('NIU_BAI_ID',24327);
define('HUAXI_ID',24328); define('HUAXI_ID',24328);
define('GUOYUAN_ID',24329); define('GUOYUAN_ID',24329);
define('ZHONGXIN_ID',24371);
return array( return array(
'LOG_RECORD' => true, // 默认不记录日志 'LOG_RECORD' => true, // 默认不记录日志
......
...@@ -10,10 +10,33 @@ class IndexAction extends IdentityAction { ...@@ -10,10 +10,33 @@ class IndexAction extends IdentityAction {
'2021-07'=>'2021年7月','2021-06'=>'2021年6月','2021-05'=>'2021年5月','2021-04'=>'2021年4月']; '2021-07'=>'2021年7月','2021-06'=>'2021年6月','2021-05'=>'2021年5月','2021-04'=>'2021年4月'];
public $STATUS_TXT =['1'=>'未开赛','2'=>'进行中','3'=>'已结束']; public $STATUS_TXT =['1'=>'未开赛','2'=>'进行中','3'=>'已结束'];
public function _initialize() {
parent::_initialize();
//手机访问跳转到m站对应的页面
if(isMobileRequest()){
$uriArray= parse_url($_SERVER['REQUEST_URI']);
$query=$uriArray['query'];
if(ACTION_NAME=='index'){
header('location:'.M_URL.'/Match/jiang?1=1&'.$query);
}
if(ACTION_NAME=='win'||ACTION_NAME=='rule'){
header('location:/PkTop?viewPage=1&'.$query);
}
if(ACTION_NAME=='lucky'){
header('location:/PkTop?viewPage=2&'.$query);
}
if(ACTION_NAME=='phb'){
header('location:/PkTop?viewPage=3&'.$query);
}
if(ACTION_NAME=='moreDs'){
header('location:/PkTop?viewPage=4&'.$query);
}
}
}
public function index(){ public function index(){
$gid=I('gid',$this->GID); $gid=I('gid',$this->GID);
$this->jumpToM(1,$gid); // $this->jumpToM(1,$gid);
$userId = $this->user['userID']; $userId = $this->user['userID'];
//名人堂数据的决赛名单,包括pk胜利者和月赛前10名者 //名人堂数据的决赛名单,包括pk胜利者和月赛前10名者
...@@ -262,8 +285,11 @@ class IndexAction extends IdentityAction { ...@@ -262,8 +285,11 @@ class IndexAction extends IdentityAction {
//页面输入的用户名改成昵称 //页面输入的用户名改成昵称
$userName = randUsername('股神',$mobile); $userName = randUsername('股神',$mobile);
$uc = uc_user_register(['userName' => $userName, 'password' => $password, 'ip' => get_client_ip(), $regData=['userName' => $userName, 'password' => $password, 'ip' => get_client_ip(),'mobile' => $mobile,
'mobile' => $mobile,'mobile_status' => 1,'sourse' =>'www','nick'=>$nick]); 'mobile_status' => 1,'psourse' =>'www','sourse' =>'zcguanfang','nick'=>$nick];
$regData['sourse']=$inviterId?'zcyaoqing':'zcguanfang';
$uc = uc_user_register($regData);
// var_dump($uc);exit; // var_dump($uc);exit;
//status0是注册成功 //status0是注册成功
if ($uc['status']) { if ($uc['status']) {
...@@ -358,21 +384,24 @@ class IndexAction extends IdentityAction { ...@@ -358,21 +384,24 @@ class IndexAction extends IdentityAction {
$uc = uc_get_user(['token' => $mobile]); $uc = uc_get_user(['token' => $mobile]);
$ucData=$uc['data']; $ucData=$uc['data'];
// var_dump($ucData);exit; // var_dump($uc);exit;
//没有该用户,开始注册,status0有该用户,111表示用户不存在 //没有该用户,开始注册,status0有该用户,111表示用户不存在
if($uc['status']==111){ if($uc['status']==111){
//页面输入的用户名改成昵称 //页面输入的用户名改成昵称
$userName = randUsername('股神',$mobile); $userName = randUsername('股神',$mobile);
// $password = substr(md5($username), 18); $password=$password?$password:substr(md5($userName), 18);
//检查用户输入的用户名是否存在 //检查用户输入的用户名是否存在
// $result = uc_user_checkname($userName); // $result = uc_user_checkname($userName);
// //用户名已存在 // //用户名已存在
// if($result['status']==122){ // if($result['status']==122){
// $this->ajaxReturn(array('status' => 0, 'info' => '该用户名已存在,请更换!')); // $this->ajaxReturn(array('status' => 0, 'info' => '该用户名已存在,请更换!'));
// } // }
$regData=['userName' => $userName, 'password' => $password, 'ip' => get_client_ip(),
'mobile' => $mobile,'mobile_status' => 1,'psourse' =>'www','nick'=>$nick];
$regData['sourse']=$inviterId?'zcyaoqing':'zcguanfang';
$uc = uc_user_register(['userName' => $userName, 'password' => $password, 'ip' => get_client_ip(), $uc = uc_user_register($regData);
'mobile' => $mobile,'mobile_status' => 1,'sourse' =>'www','nick'=>$nick]);
// var_dump($uc);exit; // var_dump($uc);exit;
//status0是注册成功 //status0是注册成功
if ($uc['status']) { if ($uc['status']) {
...@@ -1032,7 +1061,7 @@ class IndexAction extends IdentityAction { ...@@ -1032,7 +1061,7 @@ class IndexAction extends IdentityAction {
} }
} }
$key=md5('user_id='.$userId.'abcd4321'); $key=md5('user_id='.$userId.'abcd4321');
$shareUrl=rtrim(C('M_URL'),'/').'/PkTop/myInvite?cfrom=pcInvitation&user_id='.$userId.'&key='.$key; $shareUrl=rtrim(C('M_URL'),'/').'/PkTop/index?cfrom=pcInvitation&inviterId='.$userId.'&key='.$key;
$copyUrl=C('VIP_URL').'?cfrom=pcInvitation&inviterId='.$userId; $copyUrl=C('VIP_URL').'?cfrom=pcInvitation&inviterId='.$userId;
$return=array('guests'=>$guests,'guestNum'=>count($guests),'shareUrl'=>$shareUrl,'copyUrl'=>$copyUrl); $return=array('guests'=>$guests,'guestNum'=>count($guests),'shareUrl'=>$shareUrl,'copyUrl'=>$copyUrl);
...@@ -1106,7 +1135,7 @@ class IndexAction extends IdentityAction { ...@@ -1106,7 +1135,7 @@ class IndexAction extends IdentityAction {
public function checkLucky() { public function checkLucky() {
$userId = $this->user['userID']; $userId = $this->user['userID'];
if($userId==0){ if($userId==0){
$this->ajaxReturn(['status' =>0,'info'=>'请登录后再操作']); $this->ajaxReturn(['status' =>2,'info'=>'请登录后再操作']);
} }
//每个月1--7号可以抽奖 //每个月1--7号可以抽奖
if(date('d')>7){ if(date('d')>7){
...@@ -1187,46 +1216,8 @@ class IndexAction extends IdentityAction { ...@@ -1187,46 +1216,8 @@ class IndexAction extends IdentityAction {
} }
} }
// public function bmOtherGroup(){
// $userId = $this->user['userID'];
// $userName = $this->user['userName'];
// $mobile = I('mobile', '');
// $smsCode = I('smsCode', '');
// $gid =I('gid');
//
// if($gid==ZHONGJIN_GROUP){
// $this->joinZj();
// }
// if(in_array($gid,[M2M_GROUP,NIU_BAI_ID,NIU_SAN_ID,NIU_STRONG_ID])){
// $res=D('Niu')->joinNiu($mobile,$smsCode,$userId,$userName,$gid);
// }
// $this->ajaxReturn($res);
// }
//加入中金赛
// public function joinZj(){
// $groupId=ZHONGJIN_GROUP;
// $code_type = 38;
// //报名大赛
// $mobile = I('mobile', '');
// $smsCode = I('smsCode', '');
// $kaihuSource = I('kaihuSource', '');
// $kaihuSource=$kaihuSource?$kaihuSource:cookie('kaihuSource');
//
// //通过输入手机号报名,userId变为空
//// $userId=$mobile?0:$this->user['userID'];
// $userId=$this->user['userID'];
// $res=D('Niu')->joinZjBefore($mobile,$smsCode,$userId);
// if ($res['status']==2) {
// $this->ajaxReturn(['status' =>2, 'info' =>$res['info']]);
// }
// cookie('kaihuSource',$kaihuSource);
//
// $res=D('Niu')->joinZj($mobile,$userId,$kaihuSource);
//
// $info='您提交的信息正在审核,通过后将以短信方式通知您';
// $this->ajaxReturn(['status' => 1, 'joinStatus' =>$res[0],'userId'=>$userId,'debug'=>$res[1],'info'=>$info]);
// }
} }
......
...@@ -15,8 +15,13 @@ class PkTopAction extends IdentityAction{ ...@@ -15,8 +15,13 @@ class PkTopAction extends IdentityAction{
//首页 //首页
public function index() public function index() {
{ if(!I('viewPage')){
header('location:'.M_URL.'/Match/jiang');
exit;
}
$userIdParam = I('user_id', '', intval); $userIdParam = I('user_id', '', intval);
$isapp = I('isapp'); $isapp = I('isapp');
if ($isapp) { if ($isapp) {
...@@ -393,7 +398,7 @@ class PkTopAction extends IdentityAction{ ...@@ -393,7 +398,7 @@ class PkTopAction extends IdentityAction{
$ucUser = uc_get_user(['token' => $mobile]); $ucUser = uc_get_user(['token' => $mobile]);
//没有该用户,开始注册,status0有该用户,111表示用户不存在 //没有该用户,开始注册,status0有该用户,111表示用户不存在
if($ucUser['status']==111){ if($ucUser['status']==111){
$ucData=$this->reg2020($mobile); $ucData=$this->reg2020($mobile,$inviterId);
}else{ }else{
$ucData=$ucUser['data']; $ucData=$ucUser['data'];
} }
...@@ -418,6 +423,9 @@ class PkTopAction extends IdentityAction{ ...@@ -418,6 +423,9 @@ class PkTopAction extends IdentityAction{
}else{ }else{
$userId = $this->user['userID']; $userId = $this->user['userID'];
} }
if(!$userId){
$this->ajaxReturn(['status' => 0, 'info' => '请登录!']);
}
$uc = uc_get_user(array('userId' => $userId)); $uc = uc_get_user(array('userId' => $userId));
$ucData = $uc['data']; $ucData = $uc['data'];
...@@ -506,11 +514,14 @@ class PkTopAction extends IdentityAction{ ...@@ -506,11 +514,14 @@ class PkTopAction extends IdentityAction{
} }
public function reg2020($mobile){ public function reg2020($mobile,$inviterId){
$username = randUsername('股神',$mobile); $username = randUsername('股神',$mobile);
$password = substr(md5($username), 18); $password = substr(md5($username), 18);
$uc = uc_user_register(array('userName' => $username, 'password' => $password, 'ip' => get_client_ip(), $regData=['userName' => $username, 'password' => $password, 'ip' => get_client_ip(),
'inviteFrom' => 'web', 'mobile' => $mobile,'mobile_status' => 1,'sourse' =>'3g')); 'inviteFrom' => 'web', 'mobile' => $mobile,'mobile_status' => 1,'psourse' =>'m'];
$regData['sourse']=$inviterId?'zcyaoqing':'zcguanfang';
$uc = uc_user_register($regData);
// var_dump($uc);exit; // var_dump($uc);exit;
//status0是注册成功 //status0是注册成功
if ($uc['status']) { if ($uc['status']) {
...@@ -933,7 +944,7 @@ class PkTopAction extends IdentityAction{ ...@@ -933,7 +944,7 @@ class PkTopAction extends IdentityAction{
public function setShare($userId,$cfrom=0) { public function setShare($userId,$cfrom=0) {
//app内的分享,参数名不能改 //app内的分享,参数名不能改
$shareTitle='您的好友邀请您参加「全民炼股」争霸赛'; $shareTitle='您的好友邀请您参加「全民炼股」争霸赛';
$shareDesc='红包周周有,万元大奖月月送,精英还可赢PK奖'; $shareDesc='红包周周有,万元大奖月月送';
$shareUrl=M_URL."/PkTop?inviterId=".$userId.'&cfrom='.$cfrom; $shareUrl=M_URL."/PkTop?inviterId=".$userId.'&cfrom='.$cfrom;
$appShareInfo['shareTitle']=$shareTitle; $appShareInfo['shareTitle']=$shareTitle;
$appShareInfo['shareContent']=$shareDesc; $appShareInfo['shareContent']=$shareDesc;
...@@ -948,6 +959,13 @@ class PkTopAction extends IdentityAction{ ...@@ -948,6 +959,13 @@ class PkTopAction extends IdentityAction{
//定义在微信分享的显示 //定义在微信分享的显示
$signPackage=D('Share')->getSignPackage(); $signPackage=D('Share')->getSignPackage();
$this->assign('signPackage',$signPackage); $this->assign('signPackage',$signPackage);
$appParam['url'] = $shareUrl;
$appParam['name'] = $shareTitle;
$appParam['introduction'] = $shareDesc;
;
$this->assign('appParam',json_encode($appParam));
return $appShareInfo; return $appShareInfo;
} }
//提现页面 //提现页面
...@@ -1183,46 +1201,8 @@ class PkTopAction extends IdentityAction{ ...@@ -1183,46 +1201,8 @@ class PkTopAction extends IdentityAction{
return 1; return 1;
} }
public function bmOtherGroup(){
$userId = $this->user['userID'];
$userName = $this->user['userName'];
$mobile = I('mobile', '');
$smsCode = I('smsCode', '');
$gid =I('gid');
if($gid==ZHONGJIN_GROUP){
$this->joinZj();
}
// if($gid==PRIZE_GROUP_2021){
// $return=D('Niu')->joinVip($loginInfo,$mobile,$smsCode,$gid);
// }
if(in_array($gid,[M2M_GROUP,NIU_BAI_ID,NIU_SAN_ID,NIU_STRONG_ID])){
$return=D('Niu')->joinNiu($mobile,$smsCode,$userId,$userName,$gid);
$this->ajaxReturn($return);
}
// $this->ajaxReturn($res);
}
//加入大赛
public function joinZj($gid=ZHONGJIN_GROUP){
$code_type = 38;
$mfrom=I('mfrom',0);
$userId=$this->user['userID'];
//报名大赛
$mobile = I('mobile', '');
$smsCode = I('smsCode', '');
$kaihuSource = I('kaihuSource', '');
$kaihuSource=$kaihuSource?$kaihuSource:cookie('kaihuSource');
$res=D('Niu')->joinZjBefore($mobile,$smsCode,$userId);
if ($res['status']==2) {
$this->ajaxReturn(['status' =>2, 'info' =>$res['info']]);
}
$res=D('Niu')->joinZj($mobile,$userId,$kaihuSource);
$info='您提交的信息正在审核,通过后将以短信方式通知您';
$this->ajaxReturn(['status' => 1, 'joinStatus' =>$res[0],'userId'=>$userId,'debug'=>$res[0],'info'=>$info]);
}
public function dianjiLog(){ public function dianjiLog(){
$gid=$this->GID; $gid=$this->GID;
......
This diff is collapsed.
...@@ -24,9 +24,9 @@ footer 开始 ...@@ -24,9 +24,9 @@ footer 开始
<a href="{:WWW_URL}/Zjds" target="_blank"> <a href="{:WWW_URL}/Zjds" target="_blank">
<img style="width: 74%" src="__PUBLIC__/images/2022/contest-left1-1.png" alt=""/> <img style="width: 74%" src="__PUBLIC__/images/2022/contest-left1-1.png" alt=""/>
</a> </a>
<a href="{:M_URL}/Huaxi" target="_blank"> <!--<a href="{:M_URL}/Huaxi" target="_blank">-->
<img style="width: 74%" src="__PUBLIC__/images/2022/contest-left2-2.png" alt=""/> <!--<img style="width: 74%" src="__PUBLIC__/images/2022/contest-left2-2.png" alt=""/>-->
</a> <!--</a>-->
<a href="/" target="_blank"> <a href="/" target="_blank">
<img style="width: 74%" src="__PUBLIC__/images/2022/contest-left3-1.png" alt=""/> <img style="width: 74%" src="__PUBLIC__/images/2022/contest-left3-1.png" alt=""/>
</a> </a>
......
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
</div> </div>
<div class="code-cont2"> <div class="code-cont2">
<div class="code"> <div class="code">
<img src="__PUBLIC__/Home/images/g2020/2023ewm/zhongjinDs.gif" alt=""> <img src="__PUBLIC__/Home/images/2023ewm/vipDs.jpg" alt="">
<p class="save-msg">打开微信扫一扫,识别二维码</p> <p class="save-msg">打开微信扫一扫,识别二维码</p>
<p class="save-code">微信号:{$weixin}</p> <p class="save-code">微信号:{$weixin}</p>
</div> </div>
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
<!--<?php $weixin___=['cofool123'];$weixin___=$weixin[rand(0,0)];?>--> <!--<?php $weixin___=['cofool123'];$weixin___=$weixin[rand(0,0)];?>-->
<!--<img id="code" src="{$Think.const.IMAGE_URL}/uploads/camps/weixin/{$weixin}.jpg" alt="" style="display: inline;">--> <!--<img id="code" src="{$Think.const.IMAGE_URL}/uploads/camps/weixin/{$weixin}.jpg" alt="" style="display: inline;">-->
<img id="code" src="{$Think.const.IMAGE_URL}/2023ewm/vipDs.gif" alt="" style="display: inline;"> <img id="code" src="__PUBLIC__/Home/images/2023ewm/vipDs.jpg" alt="" style="display: inline;">
<!--<label style="margin-top: 77px;position: absolute;margin-left: 33px;">叩富历届模拟炒股有奖大赛:</label>--> <!--<label style="margin-top: 77px;position: absolute;margin-left: 33px;">叩富历届模拟炒股有奖大赛:</label>-->
<!--<a href='http://vip2015.jiantou8.com' target="_blank"--> <!--<a href='http://vip2015.jiantou8.com' target="_blank"-->
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.8.2.min.js"></script> <script type="text/javascript" src="__PUBLIC__/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/layer/layer.min.js"></script> <script type="text/javascript" src="__PUBLIC__/js/layer/layer.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/clipboard.min.js" ></script> <script type="text/javascript" src="__PUBLIC__/js/clipboard.min.js" ></script>
<script type="text/javascript" src="__PUBLIC__/js/lottery.js"></script> <script type="text/javascript" src="__PUBLIC__/js/lottery.js?_=2356"></script>
<script type="text/javascript" src="__PUBLIC__/js/pk.js{$Think.config.js_version}3232"></script> <script type="text/javascript" src="__PUBLIC__/js/pk.js{$Think.config.js_version}3232"></script>
</head> </head>
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
<!--<p class="msg-code">打开微信,扫一扫添加好友</p>--> <!--<p class="msg-code">打开微信,扫一扫添加好友</p>-->
<!--<p class="msg-code">大赛管理员微信:<span class="red">{$weixin}</span></p>--> <!--<p class="msg-code">大赛管理员微信:<span class="red">{$weixin}</span></p>-->
<img class="code" src="__PUBLIC__/Home/images/2023ewm/vipDs.gif" alt=""> <img class="code" src="__PUBLIC__/Home/images/2023ewm/vipDs.jpg" alt="">
<p class="msg-code">打开微信,扫一扫添加大赛管理员企业微信</p> <p class="msg-code">打开微信,扫一扫添加大赛管理员企业微信</p>
</div> </div>
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
<img class="bg" src="__PUBLIC__/images/h5/g2020/open-code-blockBg.png" alt=""> <img class="bg" src="__PUBLIC__/images/h5/g2020/open-code-blockBg.png" alt="">
<div class="code-cont" style="left:46%;"> <div class="code-cont" style="left:46%;">
<!--<img class="code" src="__PUBLIC__/Home/images/g2020/{$weixin}.jpg" alt="">--> <!--<img class="code" src="__PUBLIC__/Home/images/g2020/{$weixin}.jpg" alt="">-->
<img class="code" src="__PUBLIC__/Home/images/2023ewm/vipDs.gif" alt=""> <img class="code" src="__PUBLIC__/Home/images/2023ewm/vipDs.jpg" alt="">
<!--<p class="msg-code">打开微信,扫一扫添加好友</p>--> <!--<p class="msg-code">打开微信,扫一扫添加好友</p>-->
<!--<p class="msg-code">大赛管理员微信:<span class="red">{$weixin}</span></p>--> <!--<p class="msg-code">大赛管理员微信:<span class="red">{$weixin}</span></p>-->
......
<div class="submit-info-pop pops web-pop" style="display: none;" id="pop1" targetUrl=""> <div class="submit-info-pop pops web-pop" style="display: none;z-index: 1112" id="pop1" targetUrl="">
<span class="t-pop-close"><img src="__PUBLIC__/images/h5/g2020/pop-close.png" alt=""></span> <span class="t-pop-close"><img src="__PUBLIC__/images/h5/g2020/pop-close.png" alt=""></span>
<div class="p-msg"> <div class="p-msg">
<!--报名成功--> <!--报名成功-->
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<!--<p class="code-img"><img src="{$Think.const.IMAGE_URL}/uploads/camps/weixin/{$weixin}.jpg" alt=""></p>--> <!--<p class="code-img"><img src="{$Think.const.IMAGE_URL}/uploads/camps/weixin/{$weixin}.jpg" alt=""></p>-->
<!--<p class="pop-sub1">复制微信号-打开微信-通讯录-添加好友</p>--> <!--<p class="pop-sub1">复制微信号-打开微信-通讯录-添加好友</p>-->
<p class="code-img"><img src="__PUBLIC__/Home/images/2023ewm/vipDs.gif" alt=""></p> <p class="code-img"><img src="__PUBLIC__/Home/images/2023ewm/vipDs.jpg" alt=""></p>
<p class="pop-sub1">打开微信,扫一扫添加大赛管理员企业微信</p> <p class="pop-sub1">打开微信,扫一扫添加大赛管理员企业微信</p>
<!--<p class="main-msg-code" style="text-align:center">学习顾问微信:<span class="red">{$weixin}</span>--> <!--<p class="main-msg-code" style="text-align:center">学习顾问微信:<span class="red">{$weixin}</span>-->
...@@ -140,40 +140,9 @@ ...@@ -140,40 +140,9 @@
}); });
}); });
//加入其他的大赛
// $(".bmOtherGroupStep1__").click(function () {
// var gid=$(this).attr("gid");
// if('{$user.userID}'==''){
// $(".mask").show();
// $("#popBase").show();
// $(".bmOtherGroupStep2").attr('gid',gid);
// }else{
// $.post("/Index/bmOtherGroup",{gid:gid},function(data){
// if(data.status == 1){
// layer.alert(data.info, 1, function(){layer.close(location.reload());});
// }else{
// layer.alert(data.info, 8);
// return false;
// }
// });
// }
// });
//输入手机号,验证码后点击报名按钮
// $(".bmOtherGroupStep2").click(function () {
// var mobile=$(".base1").val();
// if(mobile==''){layer.msg('请输入手机号');return;}
// var smsCode=$(".base2").val();
// if(smsCode==''){layer.msg('请输入验证码');return;}
// $.post("/Index/bmOtherGroup",{mobile:mobile,smsCode:smsCode,gid:$(this).attr("gid")},function(data){
// if(data.status == 1){
// layer.alert(data.info, 1, function(){layer.close(location.reload());});
// }else{
// layer.alert(data.info, 8);
// return false;
// }
// });
// });
var clipboard = new Clipboard('.copyBtn'); var clipboard = new Clipboard('.copyBtn');
clipboard.on('success', function(e) {layer.msg('复制链接成功',1,1);}); clipboard.on('success', function(e) {layer.msg('复制链接成功',1,1);});
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.8.2.min.js"></script> <script type="text/javascript" src="__PUBLIC__/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/layer/layer.min.js"></script> <script type="text/javascript" src="__PUBLIC__/js/layer/layer.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/clipboard.min.js" ></script> <script type="text/javascript" src="__PUBLIC__/js/clipboard.min.js" ></script>
<script type="text/javascript" src="__PUBLIC__/js/pk.js{$Think.config.js_version}323233"></script>
</head> </head>
<body class="redBg"> <body class="redBg">
...@@ -34,7 +36,8 @@ ...@@ -34,7 +36,8 @@
</div> </div>
<div class="contact-d"> <div class="contact-d">
<p class="zhu-tip">如有问题可联系客服:</p> <p class="zhu-tip">如有问题可联系客服:</p>
<img src="__PUBLIC__/images/h5/g2020/kfcg-code.png" alt=""> <!--<img src="__PUBLIC__/images/h5/g2020/kfcg-code.png" alt="">-->
<img src="__PUBLIC__/Home/images/2023ewm/cofool004.jpg" alt="">
<p class="contact-d-sao">扫一扫添加客服微信</p> <p class="contact-d-sao">扫一扫添加客服微信</p>
</div> </div>
</div> </div>
...@@ -54,13 +57,29 @@ ...@@ -54,13 +57,29 @@
<script> <script>
$(function () { $(function () {
baoming('{$user.userID}','{$Think.config.WWW_URL}');
var userType=0; var userType=0;
//点购买按钮 //点购买按钮
$(".buy-card").click(function () { $(".buy-card").click(function () {
if('{$user.userID}'==''){
$(".mask").show();
$("#pop1").show();
}else{
location.href='{$Think.config.WWW_URL}Lesson/pay2?type=reset'; location.href='{$Think.config.WWW_URL}Lesson/pay2?type=reset';
}
}); });
$(".t-pop-close,.pop-close,.mask").click(function () {
if($(this).attr('refresh')==1){
location.reload();
}else{
$(".mask").hide();
$(this).parents('.pops').hide();
}
});
//进入交易 //进入交易
$('.pk-cont-info').click(function(){ $('.pk-cont-info').click(function(){
location.href="{$Think.config.WWW_URL}/Trade/Stock/index/gid/{$Think.config.PRIZE_GROUP_2021}"; location.href="{$Think.config.WWW_URL}/Trade/Stock/index/gid/{$Think.config.PRIZE_GROUP_2021}";
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<!--<img class="code" src="__PUBLIC__/Home/images/g2020/koufuchaogu.jpg" alt="">--> <!--<img class="code" src="__PUBLIC__/Home/images/g2020/koufuchaogu.jpg" alt="">-->
管理员企微号可截图保存添加 管理员企微号可截图保存添加
<img class="code" src="{$Think.const.IMAGE_URL}/2023ewm/vipDs.gif" alt=""> <img class="code" src="__PUBLIC__/Home/images/2023ewm/vipDs.jpg" alt="">
<!--<p class="msg-code">保存截图,微信扫一扫</p>--> <!--<p class="msg-code">保存截图,微信扫一扫</p>-->
</div> </div>
......
...@@ -28,6 +28,14 @@ ...@@ -28,6 +28,14 @@
.layui-m-layerbtn span[yes]{color:#b40000;} .layui-m-layerbtn span[yes]{color:#b40000;}
.layui-m-layerbtn span[no]{color:#b40000;} .layui-m-layerbtn span[no]{color:#b40000;}
.layui-m-layerbtn span:first-child{color:#b40000;} .layui-m-layerbtn span:first-child{color:#b40000;}
.header-share{
width: 40px;height: 48px;
display: block;
background: url('__PUBLIC__/Home/images/group/header-shareG.png') no-repeat ;
background-size: 20px 20px;background-position: 0px 14px;
line-height: 100%;position: absolute;right: 0px;top: 0px;
margin-right: -8px;
}
</style> </style>
<script type="text/javascript"> <script type="text/javascript">
AppBridge.init(); AppBridge.init();
...@@ -133,7 +141,7 @@ ...@@ -133,7 +141,7 @@
</div> </div>
<div class="code-cont2"> <div class="code-cont2">
<div class="code"> <div class="code">
<img src="__PUBLIC__/Home/images/g2020/2023ewm/zhongjinDs.gif" 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="copy-code-btna copbtn copyWx" data-clipboard-action="copy" data-clipboard-text="{$weixin}" >复制微信</button>
...@@ -182,7 +190,7 @@ ...@@ -182,7 +190,7 @@
<!--<button class="recognition-code copybtn" data-clipboard-action="copy" data-clipboard-text="{$weixin}">复制微信</button>--> <!--<button class="recognition-code copybtn" data-clipboard-action="copy" data-clipboard-text="{$weixin}">复制微信</button>-->
<span style="color: #C60000;">管理员企微号可截图保存添加</span> <span style="color: #C60000;">管理员企微号可截图保存添加</span>
<img src="{$Think.const.IMAGE_URL}/2023ewm/vipDs.gif" alt="" style="width: 49%;margin-top: 11px;"> <img src="__PUBLIC__/Home/images/2023ewm/vipDs.jpg" alt="" style="width: 49%;margin-top: 11px;">
</p> </p>
<!--<p class="contact-n f12">注:复制微信-打开微信-添加好友-粘贴</p>--> <!--<p class="contact-n f12">注:复制微信-打开微信-添加好友-粘贴</p>-->
......
This diff is collapsed.
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<p class="main-msg-i" style="color: initial;">恭喜成功报名</p> <p class="main-msg-i" style="color: initial;">恭喜成功报名</p>
<p class="main-msg-i1" style="color: #ff2336;font-weight: bold;font-size: 18px;">加微信免费领取参赛权益<br>扫码进大赛高手交流群</p> <p class="main-msg-i1" style="color: #ff2336;font-weight: bold;font-size: 18px;">加微信免费领取参赛权益<br>扫码进大赛高手交流群</p>
<!--<p class="code-img"><img src="{$Think.const.IMAGE_URL}/uploads/camps/weixin/{$weixin}.jpg" alt=""></p>--> <!--<p class="code-img"><img src="{$Think.const.IMAGE_URL}/uploads/camps/weixin/{$weixin}.jpg" alt=""></p>-->
<p class="code-img"><img src="{$Think.const.IMAGE_URL}/2023ewm/vipDs.gif" alt=""></p> <p class="code-img"><img src="__PUBLIC__/Home/images/2023ewm/vipDs.jpg" alt=""></p>
<p class="main-msg-code" style="text-align:center;font-size: 13px;"> <p class="main-msg-code" style="text-align:center;font-size: 13px;">
<!--大赛管理微信号:<span class="red">{$weixin}</span>--> <!--大赛管理微信号:<span class="red">{$weixin}</span>-->
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<!--复制微信</button>--> <!--复制微信</button>-->
<!--</p>--> <!--</p>-->
<p class="code-img"><img src="{$Think.const.IMAGE_URL}/2023ewm/vipDs.gif" alt=""></p> <p class="code-img"><img src="__PUBLIC__/Home/images/2023ewm/vipDs.jpg" alt=""></p>
<p class="main-msg-code" style="text-align:center;font-size: 13px;margin-left:-2px;">管理员企微号可截图保存添加<br> <p class="main-msg-code" style="text-align:center;font-size: 13px;margin-left:-2px;">管理员企微号可截图保存添加<br>
<button class="jumpWx" weixinUrl="{$weixinUrl}" <button class="jumpWx" weixinUrl="{$weixinUrl}"
style="border: 0px;font-size: 14px;background-color: #ff2336;color: #ffffff;width: 76%;border-radius: 12px;margin-left: 8px;height: 33px;margin-top: 8px;"> style="border: 0px;font-size: 14px;background-color: #ff2336;color: #ffffff;width: 76%;border-radius: 12px;margin-left: 8px;height: 33px;margin-top: 8px;">
......
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