Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cof_vip
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
houdong
cof_vip
Commits
be5d3f54
Commit
be5d3f54
authored
Mar 30, 2023
by
wangjing
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
a1138e54
364621c0
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
900 additions
and
317 deletions
+900
-317
cofool004.jpg
Public/Home/images/2023ewm/cofool004.jpg
+0
-0
vipDs.jpg
Public/Home/images/2023ewm/vipDs.jpg
+0
-0
zhongjinDs.jpg
Public/Home/images/g2020/2023ewm/zhongjinDs.jpg
+0
-0
header-shareG.png
Public/Home/images/group/header-shareG.png
+0
-0
cofool-kf202107.gif
Public/images/2023ewm/cofool-kf202107.gif
+0
-0
lottery.js
Public/js/lottery.js
+6
-1
config.php
app/Conf/config.php
+1
-0
IndexAction.class.php
app/Lib/Action/Vip/IndexAction.class.php
+39
-48
PkTopAction.class.php
app/Lib/Action/Vip/PkTopAction.class.php
+25
-45
NiuModel.class.php
app/Lib/Model/NiuModel.class.php
+5
-172
footer.html
app/Tpl/Vip/Index/footer.html
+3
-3
index.html
app/Tpl/Vip/Index/index.html
+2
-2
lucky.html
app/Tpl/Vip/Index/lucky.html
+3
-3
pop.html
app/Tpl/Vip/Index/pop.html
+5
-36
resetBalance.html
app/Tpl/Vip/Index/resetBalance.html
+21
-2
choujiang.html
app/Tpl/Vip/PkTop/choujiang.html
+1
-1
index.html
app/Tpl/Vip/PkTop/index.html
+10
-2
jiangxiang.html
app/Tpl/Vip/PkTop/jiangxiang.html
+777
-0
pop.html
app/Tpl/Vip/PkTop/pop.html
+2
-2
No files found.
Public/Home/images/2023ewm/cofool004.jpg
0 → 100644
View file @
be5d3f54
39.7 KB
Public/Home/images/2023ewm/vipDs.jpg
0 → 100644
View file @
be5d3f54
63.8 KB
Public/Home/images/g2020/2023ewm/zhongjinDs.jpg
0 → 100644
View file @
be5d3f54
63.8 KB
Public/Home/images/group/header-shareG.png
0 → 100644
View file @
be5d3f54
453 Bytes
Public/images/2023ewm/cofool-kf202107.gif
0 → 100644
View file @
be5d3f54
39.8 KB
Public/js/lottery.js
View file @
be5d3f54
...
@@ -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
();
...
...
app/Conf/config.php
View file @
be5d3f54
...
@@ -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
,
// 默认不记录日志
...
...
app/Lib/Action/Vip/IndexAction.class.php
View file @
be5d3f54
...
@@ -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($uc
Data
);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_i
d='
.
$userId
.
'&key='
.
$key
;
$shareUrl
=
rtrim
(
C
(
'M_URL'
),
'/'
)
.
'/PkTop/
index?cfrom=pcInvitation&inviterI
d='
.
$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]);
// }
}
}
...
...
app/Lib/Action/Vip/PkTopAction.class.php
View file @
be5d3f54
...
@@ -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
;
...
...
app/Lib/Model/NiuModel.class.php
View file @
be5d3f54
...
@@ -6,22 +6,15 @@ class NiuModel extends Model{
...
@@ -6,22 +6,15 @@ class NiuModel extends Model{
$STATUS_TXT
=
array
(
'1'
=>
'未开赛'
,
'2'
=>
'进行中'
,
'3'
=>
'已结束'
);
$STATUS_TXT
=
array
(
'1'
=>
'未开赛'
,
'2'
=>
'进行中'
,
'3'
=>
'已结束'
);
$ids
=
D
(
'Group'
)
->
getGroupCache
(
$userId
);
$ids
=
D
(
'Group'
)
->
getGroupCache
(
$userId
);
// $MAP=[
// ZHONGJIN_GROUP=>[WWW_URL.'/Zjds',1],//HUAXI_ID=>[M_URL.'/Huaxi',3],
// GUOYUAN_ID=>[M_URL.'/Guoyuan',5],PRIZE_GROUP_2021=>['/',7],
// M2M_GROUP=>[M_URL.'/M2m',9],NIU_BAI_ID=>[M_URL.'/Niubai',11],
// NIU_SAN_ID=>[M_URL.'/Niusan',13],NIU_STRONG_ID=>[M_URL.'/Strong',15],
// ];
$MAP
=
[
$MAP
=
[
ZHONGJIN_GROUP
=>
[
WWW_URL
.
'/Zjds'
,
1
],
ZHONGJIN_GROUP
=>
WWW_URL
.
'/Zjds'
,
GUOYUAN_ID
=>
M_URL
.
'/Guoyuan'
,
PRIZE_GROUP_2021
=>
'/'
,
GUOYUAN_ID
=>
[
M_URL
.
'/Guoyuan'
,
5
],
PRIZE_GROUP_2021
=>
[
'/'
,
7
],
NIU_BAI_ID
=>
M_URL
.
'/Niubai'
,
NIU_STRONG_ID
=>
M_URL
.
'/Strong'
,
ZHONGXIN_ID
=>
M_URL
.
'/Zhongxin'
,
NIU_BAI_ID
=>
[
M_URL
.
'/Niubai'
,
11
],
NIU_STRONG_ID
=>
[
M_URL
.
'/Strong'
,
15
],
];
];
$field
=
'a.group_id,a.name,startTime,endTime,b.cover,introduction,a.web_id,sort_number'
;
$where
=
[
'a.group_id'
=>
[
'in'
,
array_keys
(
$MAP
)]];
$where
=
[
'a.group_id'
=>
[
'in'
,
array_keys
(
$MAP
)]];
$gList
=
M
(
'Group a'
)
->
join
(
'left join cofool_group_info b on a.group_id=b.group_id'
)
$gList
=
M
(
'Group a'
)
->
join
(
'left join cofool_group_info b on a.group_id=b.group_id'
)
->
field
(
'a.group_id,a.name,startTime,endTime,b.cover,introduction,a.web_id,sort_number'
)
->
where
(
$where
)
->
order
(
'sort_number desc'
)
->
select
();
->
field
(
$field
)
->
where
(
$where
)
->
order
(
'sort_number desc'
)
->
select
();
// var_dump($gList);exit;
// var_dump($gList);exit;
foreach
(
$gList
as
$k
=>
&
$g
)
{
foreach
(
$gList
as
$k
=>
&
$g
)
{
...
@@ -29,7 +22,7 @@ class NiuModel extends Model{
...
@@ -29,7 +22,7 @@ class NiuModel extends Model{
$g
[
'active'
]
=
$gid
==
PRIZE_GROUP_2021
?
1
:
0
;
$g
[
'active'
]
=
$gid
==
PRIZE_GROUP_2021
?
1
:
0
;
$g
[
'joinStatus'
]
=
in_array
(
$gid
,
$ids
)
?
1
:
0
;
$g
[
'joinStatus'
]
=
in_array
(
$gid
,
$ids
)
?
1
:
0
;
$gUrl
=
$MAP
[
$gid
];
$gUrl
=
$MAP
[
$gid
];
$g
[
'url'
]
=
$gUrl
[
0
]
;
$g
[
'url'
]
=
$gUrl
;
// $g['order']=$gUrl[1];
// $g['order']=$gUrl[1];
$len
=
$source
==
'm'
?
40
:
60
;
$len
=
$source
==
'm'
?
40
:
60
;
...
@@ -60,167 +53,7 @@ class NiuModel extends Model{
...
@@ -60,167 +53,7 @@ class NiuModel extends Model{
return
$gList
;
return
$gList
;
}
}
public
function
joinZjBefore
(
$mobile
,
$smsCode
,
$userId
){
$groupInfo
=
M
(
'Group'
)
->
field
(
'startTime,endTime'
)
->
where
([
'group_id'
=>
ZHONGJIN_GROUP
])
->
find
();
//1未开始,2是进行中,3已结束
$groupStatus
=
is_end
(
$groupInfo
[
'endTime'
])
?
3
:
(
$groupInfo
[
'startTime'
]
>
time
()
?
1
:
2
);
if
(
$groupStatus
==
3
)
{
return
([
'status'
=>
2
,
'info'
=>
'该大赛已经结束,不能报名!'
]);
}
//
if
(
$mobile
)
{
$map
=
[
'mobile'
=>
$mobile
,
'code'
=>
$smsCode
,
'type'
=>
38
,
'add_time'
=>
[
'gt'
,
NOW_TIME
-
1800
]];
$row
=
M
(
'Sms'
)
->
where
(
$map
)
->
find
();
if
(
empty
(
$row
)){
return
([
'status'
=>
2
,
'info'
=>
'验证码失效或者错误!'
]);
}
//如果该手机号的申请状态是未审核0和已通过1,应返回提示
$oldData1
=
M
(
'Zhongjin'
)
->
where
([
'mobile'
=>
$mobile
,
'status'
=>
0
])
->
count
();
$oldData2
=
M
(
'Zhongjin'
)
->
where
([
'mobile'
=>
$mobile
,
'status'
=>
1
])
->
count
();
}
else
{
//如果该手机号的申请状态是未审核0和已通过1,应返回提示
$oldData1
=
M
(
'Zhongjin'
)
->
where
([
'user_id'
=>
$userId
,
'status'
=>
0
])
->
count
();
$oldData2
=
M
(
'Zhongjin'
)
->
where
([
'user_id'
=>
$userId
,
'status'
=>
1
])
->
count
();
}
if
(
$oldData1
)
{
return
([
'status'
=>
2
,
'info'
=>
'您提交的信息正在审核中,请不要重复提交!'
]);
}
if
(
$oldData2
)
{
return
([
'status'
=>
2
,
'info'
=>
'您已经开过户,不能重复报名!'
]);
}
}
public
function
joinZj
(
$mobile
,
$userId
,
$kaihuSource
){
if
(
$mobile
){
$uc
=
uc_get_user
([
'token'
=>
$mobile
]);
$ucData
=
$uc
[
'data'
];
//没有该用户,开始注册,status0有该用户,111表示用户不存在
if
(
$uc
[
'status'
]
==
111
){
$userName
=
randUsername
(
'股神'
,
$mobile
);
$password
=
substr
(
md5
(
$userName
),
18
);
$uc
=
uc_user_register
([
'userName'
=>
$userName
,
'password'
=>
$password
,
'ip'
=>
get_client_ip
(),
'mobile'
=>
$mobile
,
'mobile_status'
=>
1
,
'sourse'
=>
'www'
]);
// var_dump($uc);exit;
//status0是注册成功
if
(
$uc
[
'status'
])
{
$this
->
ajaxReturn
([
'status'
=>
0
,
'info'
=>
'注册失败!'
]);
}
//注册成功
$ucData
=
$uc
[
'data'
];
$userId
=
$ucData
[
'user_id'
];
$info
=
[
'user_id'
=>
$userId
,
'user_name'
=>
$userName
,
'mobile'
=>
$mobile
,
'mobile_status'
=>
1
];
$res
=
D
(
'Userinfo'
)
->
_addUser
(
$info
);
if
(
$res
<=
0
)
{
$this
->
ajaxReturn
([
'status'
=>
0
,
'info'
=>
'添加用户失败!'
]);
}
$debug
=
'新注册'
;
M
(
'Zhongjin'
)
->
add
([
'user_id'
=>
$userId
,
'user_name'
=>
$userName
,
'nick'
=>
$userName
,
'mobile'
=>
$mobile
,
'add_time'
=>
time
(),
'source'
=>
$kaihuSource
]);
$joinStatus
=
0
;
}
else
{
$debug
=
'老用户'
;
$bmData
=
M
(
'Zhongjin'
)
->
where
([
'mobile'
=>
$mobile
,
'status'
=>
[
'in'
,[
0
,
1
]]])
->
find
();
if
(
empty
(
$bmData
)){
M
(
'Zhongjin'
)
->
add
([
'user_id'
=>
$ucData
[
'user_id'
],
'user_name'
=>
$ucData
[
'user_name'
],
'mobile'
=>
$mobile
,
'nick'
=>
$ucData
[
'nick'
],
'add_time'
=>
time
(),
'source'
=>
$kaihuSource
]);
$joinStatus
=
0
;
}
else
{
$joinStatus
=
empty
(
$bmData
)
?-
1
:
$bmData
[
'status'
];
}
}
//注册后用让其自动登录
require_once
'./uc_client_php/client.php'
;
$this
->
setLogin
([
'userID'
=>
$ucData
[
'user_id'
],
'userName'
=>
$ucData
[
'user_name'
]]);
//同步登陆
uc_user_synlogin
([
'userId'
=>
$ucData
[
'user_id'
],
'userName'
=>
$ucData
[
'user_name'
],
'nick'
=>
$ucData
[
'nick'
]]);
}
else
{
$bmData
=
M
(
'Zhongjin'
)
->
where
([
'user_id'
=>
$userId
,
'status'
=>
[
'in'
,[
0
,
1
]]])
->
find
();
if
(
empty
(
$bmData
)){
$uc
=
uc_get_user
([
'userId'
=>
$userId
,
'type'
=>
3
]);
// var_dump($uc);exit;
if
(
$uc
[
'status'
]
==
0
&&!
empty
(
$uc
[
'data'
])){
$ucData
=
$uc
[
'data'
];
}
M
(
'Zhongjin'
)
->
add
([
'user_id'
=>
$userId
,
'user_name'
=>
$ucData
[
'user_name'
],
'mobile'
=>
$ucData
[
'mobile'
],
'nick'
=>
$ucData
[
'nick'
],
'add_time'
=>
time
(),
'source'
=>
$kaihuSource
]);
$joinStatus
=
0
;
}
else
{
$joinStatus
=
empty
(
$bmData
)
?-
1
:
$bmData
[
'status'
];
}
}
return
[
$joinStatus
,
$debug
];
}
//加入大赛
public
function
joinNiu
(
$mobile
,
$smsCode
,
$userId
,
$userName
,
$gid
){
if
(
$mobile
){
if
(
!
$smsCode
)
{
return
([
'status'
=>
2
,
'info'
=>
'请输入手机验证码!'
]);
}
// $smsType=$gid==M2M_GROUP?38:44;
$smsType
=
32
;
// if (CS('tel:'. $mobile . ':'.$smsType) != $smsCode) {
// return(['status' => 2, 'info' => '对不起!手机验证码错误或已过期!']);
// }
$param
=
[
'mobile'
=>
$mobile
,
'code'
=>
$smsCode
,
'type'
=>
$smsType
];
if
(
D
(
'Sms'
)
->
checkCode
(
$param
)){
}
else
{
return
([
'status'
=>
2
,
'info'
=>
'对不起!手机验证码错误或已过期!'
]);
}
$ucUser
=
uc_get_user
([
'token'
=>
$mobile
]);
//没有该用户,开始注册,status0有该用户,111表示用户不存在
if
(
$ucUser
[
'status'
]
==
111
){
// $ucData=$this->reg2020($mobile);
$userName
=
randUsername
(
'股神'
,
$mobile
);
$password
=
substr
(
md5
(
$userName
),
18
);
$uc
=
uc_user_register
([
'userName'
=>
$userName
,
'password'
=>
$password
,
'ip'
=>
get_client_ip
(),
'mobile'
=>
$mobile
,
'mobile_status'
=>
1
,
'sourse'
=>
'www'
]);
$ucData
=
$uc
[
'data'
];
// $userId=$ucData['user_id'];
}
else
{
$ucData
=
$ucUser
[
'data'
];
}
$userId
=
$ucData
[
'user_id'
];
$userName
=
$ucData
[
'user_name'
];
//自动登录
$this
->
setLogin
([
'userID'
=>
$userId
,
'userName'
=>
$userName
]);
//同步登陆
uc_user_synlogin
([
'userId'
=>
$userId
,
'userName'
=>
$userName
,
'webId'
=>
$ucData
[
'web_id'
]]);
}
else
{
// $userId = $this->user['userID'];
// $userName = $this->user['userName'];
$user_data
=
uc_get_user
([
'userId'
=>
$userId
,
'type'
=>
3
]);
$mobile
=
$user_data
[
'data'
][
'mobile'
];
}
//后台审核才能加入大赛,申请中0,审核通过1,审核未通过2
$STATUS
=
[
'0'
=>
'报名参赛正在审核中'
,
'1'
=>
'登录成功'
,
'2'
=>
'报名参赛未通过审核'
];
// if($gid==M2M_GROUP){
// $old=M('M2m')->where(['user_id'=>$userId])->find();
// if(empty($old)){
// M('M2m')->add(['user_id'=>$userId,'user_name'=>$userName,'mobile'=>$mobile,'add_time'=>time(),'status'=>0,'source'=>'m']);
// return(['status' => 1,'info'=>'报名申请已提交']);
// }else{
// return(['status' => 2,'info'=>$STATUS[$old['status']]]);
// }
// }
// if(in_array($gid,[NIU_BAI_ID,NIU_SAN_ID,NIU_STRONG_ID])){
$old
=
M
(
'Baoming'
)
->
where
([
'user_id'
=>
$userId
,
'group_id'
=>
$gid
])
->
find
();
if
(
empty
(
$old
)){
M
(
'Baoming'
)
->
add
([
'user_id'
=>
$userId
,
'user_name'
=>
$userName
,
'mobile'
=>
$mobile
,
'add_time'
=>
time
(),
'status'
=>
0
,
'source'
=>
'm'
,
'group_id'
=>
$gid
]);
return
([
'status'
=>
1
,
'info'
=>
'报名申请已提交'
]);
}
else
{
return
([
'status'
=>
2
,
'info'
=>
$STATUS
[
$old
[
'status'
]]]);
}
// }
}
public
function
setLogin
(
$userInfo
,
$remember
=
0
){
public
function
setLogin
(
$userInfo
,
$remember
=
0
){
cookie
(
'_userID'
,
$userInfo
[
'userID'
]);
cookie
(
'_userID'
,
$userInfo
[
'userID'
]);
cookie
(
'_userName'
,
$userInfo
[
'userName'
]);
cookie
(
'_userName'
,
$userInfo
[
'userName'
]);
...
...
app/Tpl/Vip/Index/footer.html
View file @
be5d3f54
...
@@ -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>
...
...
app/Tpl/Vip/Index/index.html
View file @
be5d3f54
...
@@ -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"-->
...
...
app/Tpl/Vip/Index/lucky.html
View file @
be5d3f54
...
@@ -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>-->
...
...
app/Tpl/Vip/Index/pop.html
View file @
be5d3f54
<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
);});
...
...
app/Tpl/Vip/Index/resetBalance.html
View file @
be5d3f54
...
@@ -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
()
{
location
.
href
=
'{$Think.config.WWW_URL}Lesson/pay2?type=reset'
;
if
(
'{$user.userID}'
==
''
){
$
(
".mask"
).
show
();
$
(
"#pop1"
).
show
();
}
else
{
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}"
;
...
...
app/Tpl/Vip/PkTop/choujiang.html
View file @
be5d3f54
...
@@ -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>
...
...
app/Tpl/Vip/PkTop/index.html
View file @
be5d3f54
...
@@ -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>-->
...
...
app/Tpl/Vip/PkTop/jiangxiang.html
0 → 100644
View file @
be5d3f54
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,viewport-fit=cover"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"format-detection"
content=
"telephone=no"
>
<meta
name=
"format-detection"
content=
"email=no"
>
<!--<title>2022模拟炒股大赛,全民炼股有奖大赛赛程及奖项安排</title>-->
<title>
叩富全民炼股争霸赛-首页
</title>
<meta
name=
"description"
content=
"叩富简投全民炼股2023模拟炒股大赛,赢10万现金大奖。自2007年开赛以来,已累积举办200多期模拟炒股大奖赛。每周、每月都有现金大奖。软件、手机APP、网页同步参赛"
>
<meta
name=
"keywords"
content=
"2023模拟炒股大赛,模拟炒股大赛,模拟炒股,模拟股票大赛,炒股大赛,模拟炒股有奖大赛,模拟股市大赛,股票模拟大赛,股票大赛,腾讯A股大赛,凤凰炒股大赛"
>
<link
href=
"__PUBLIC__/Home/css/g2021.css?_={:date('Y-m-d-H:i:s',filemtime('./Public/Home/css/g2021.css'))}"
rel=
"stylesheet"
>
<link
href=
"__PUBLIC__/Home/css/moreDs.css?_={:date('Y-m-d-H:i:s',filemtime('./Public/Home/css/moreDs.css'))}"
rel=
"stylesheet"
>
<link
rel=
"stylesheet"
href=
"__PUBLIC__/Home/js/slider/css/jquery.bxslider.css"
>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/layer_mobile/layer.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/clipboard.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/Home/js/app.js{$Think.config.js_version}"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/Home/js/pktop.js?_={:date('Y-m-d-H:i:s',filemtime('./Public/Home/js/pktop.js'))}"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/Home/js/lottery.js?_={:date('Y-m-d-H:i:s',filemtime('./Public/Home/js/lottery.js'))}"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/jquery.cookie.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/app_h5.js?_={:date('Y-m-d-H:i:s',filemtime('./Public/js/app_h5.js'))}"
></script>
<style>
.layui-m-layerbtn
span
[
yes
]
{
color
:
#b40000
;}
.layui-m-layerbtn
span
[
no
]
{
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>
<script
type=
"text/javascript"
>
AppBridge
.
init
();
//页面默认刷新
var
userId
=
"{$user.userID}"
;
//这个userid 一定是从session或者cookie里验证后获取到的。
if
(
!
userId
){
AppBridge
.
refreshPage
({},
function
(
userId
,
key
)
{
if
(
'{$refresh}'
==
'1'
){
// location.href='/Allex?user_id='+userId+'&key2='+key+'&viewPage='+'{$viewPage}';
location
.
replace
(
'/PkTop?user_id='
+
userId
+
'&key2='
+
key
+
'&viewPage='
+
'{$viewPage}'
);
}
});
}
</script>
</head>
<body
style=
"min-height: 100%;background-color: #C60000;"
>
<if
condition=
"isH5Head() lt 1"
>
<div
class=
"header-top"
>
<div
class=
"header-hei"
></div>
<div
class=
"header-h"
>
<a
href=
"javascript:;"
class=
"header-h-a"
><span
class=
"back-btn back-btn-a"
></span></a>
<span
class=
"header-share"
></span>
<ul
class=
"header-title"
>
<li
class=
"one-li"
>
全民炼股争霸赛(2023)
</li></ul>
</div>
</div>
<div
class=
"head-fit"
></div>
<script>
//为了加载效果提前
//点后退按钮
var
ourl
=
''
;
if
(
"{$_GET.key}"
!=
''
||
"{$_GET.is_head}"
!=
''
||
"{$_GET.key2}"
!=
''
){
if
(
!
window
.
localStorage
.
getItem
(
'TradeQueryPageUid'
)){
ourl
=
'close'
;
}
}
AppBridge
.
go_back
(
ourl
);
AppBridge
.
head_fit
();
</script>
</if>
<div
class=
"championship-cont warp-container"
>
<div
class=
"champ-body-top"
>
<div
class=
"top-banner"
>
<!--<img src="__PUBLIC__/Home/images/g2020/cg-banner1.png" alt="">-->
<img
src=
"__PUBLIC__/images/2023/cg-banner1.png"
alt=
""
>
<span
class=
"cs-num"
>
· {$member_quantity|default=0}人参赛 ·
</span>
</div>
<div
class=
"top-entrance-b"
style=
"width————: 75%;margin: 0 auto;"
>
<ul
class=
"entrance-tab-ul"
>
<li
class=
"en-li f-left active"
style=
"width: 24%"
>
赛程及奖项
</li>
<li
class=
"en-li f-center lottery-li"
style_=
"width: 24%"
>
瓜分10万
</li>
<li
class=
"en-li f-center"
style_=
"width: 24%"
>
排行榜
</li>
<li
class=
"en-li f-right"
>
更多大赛
<img
class=
"more"
src=
"__PUBLIC__/Home/images/g2020/gdjj.png"
style=
""
/>
</li>
</ul>
</div>
</div>
<div
class=
"contest-body-detail"
>
<div
class=
"b-notice"
>
<span
class=
"b-notice-icon"
></span>
<div
class=
"notice-ul"
>
<ul>
<foreach
name=
"gonggao"
item=
"vo"
>
<li
class=
"notice-li"
style=
"white-space: nowrap;overflow: hidden;text-overflow: ellipsis;max-width: 290px;display: block;color:#C60000;"
>
<notempty
name=
"vo.url"
>
<a
href=
"{$vo.url}"
style=
"color:#C60000;"
>
{$vo.title}
</a>
<else/>
{$vo.title}
</notempty>
</li>
</foreach>
</ul>
</div>
</div>
<div
class=
"contest-setting contest-item"
>
<div
class=
"title-p"
>
赛程安排
</div>
<div
class=
"setting-info"
>
<div
class=
"setting-info-sub"
>
<p><span
class=
"i"
>
比赛时间:2021.5.1—2023.4.30
</span>
</p>
<p
class=
"marL"
>
随时报名参赛,每月评奖,瓜分十万现金大奖(全年)
</p>
</div>
</div>
</div>
<include
file=
"static_price"
/>
<div
class=
"contest-setting contest-item"
>
<div
class=
"title-p"
>
领奖流程
</div>
<div
class=
"setting-info"
>
<div
class=
"time-contest-item paddingT6"
>
<div
class=
"item-d"
>
<span
class=
"item-t1"
>
1
</span>
<p
class=
"item-p1"
>
月度前三名领奖需提供
<span
class=
"red"
>
获奖心得
</span>
以及分享到个人 社交媒体(例如:微信、微博、今日头条等等。)
</p>
</div>
<div
class=
"item-d"
>
<span
class=
"item-t1"
>
2
</span>
<p
class=
"item-p1"
>
获官方大赛认证证书的获得者在收到证书后提供一张本人与证书的合照,即可入选叩富简投
<span
class=
"red"
>
“荣誉殿堂”,“荣誉殿堂”
</span>
将会在叩富简投全网展示和推介;
</p>
</div>
<div
class=
"item-d"
>
<span
class=
"item-t1"
>
3
</span>
<p
class=
"item-p1"
>
获奖者需提供账号绑定手机号、个人主页截图验证身份,
<span
class=
"red"
>
发奖渠道为大赛官方微信群
</span>
;
</p>
</div>
<div
class=
"item-d"
>
<span
class=
"item-t1"
>
4
</span>
<p
class=
"item-p1"
>
通过在微信群里进行一一发奖,保证大赛的公平公正,保证每一位获奖选手都能领到奖金,可联系大赛管理员验证身份进群;
</p>
</div>
<div
class=
"code-cont2"
>
<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>
</div>
</div>
<div
class=
"item-d"
>
<span
class=
"item-t1"
>
5
</span>
<p
class=
"item-p1"
>
可以通过分享个人社交媒体获得
<span
class=
"red"
>
额外抽奖机会
</span>
;
</p>
</div>
<div
class=
"item-d"
>
<span
class=
"item-t1"
>
6
</span>
<p
class=
"item-p1"
>
获奖通知将会通过叩富简投app系统通知、短信通知、电话通知、微信通知等方式,并同步在叩富简投app、“叩富简投”微信公众号、“叩富简投全民炼股争霸赛”微博发布;
</p>
</div>
<div
class=
"item-d"
>
<span
class=
"item-t1"
>
7
</span>
<p
class=
"item-p1"
>
在
<span
class=
"red"
>
15个交易日
</span>
内获奖者失联或者未提交领奖信息的话,主办方将视为获奖者自动放弃领奖机会。
</p>
</div>
</div>
</div>
</div>
<div
class=
"contest-setting contest-item"
>
<div
class=
"title-p"
>
上期获奖心得
</div>
<div
class=
"message-block"
>
<div
class=
"message-block-ul"
>
<foreach
name=
"thinks"
item=
"vo"
>
<div
class=
"block-list"
>
<div
class=
"block-list-user"
>
<span
class=
"user-img"
><img
src=
"{:getPortraitPath($vo['user_id'], 'small', true)}"
alt=
""
></span>
<span
class=
"user-name"
>
{$vo.user_name}
</span>
</div>
<div
class=
"block-list-detail"
>
{$vo.think}
</div>
</div>
</foreach>
</div>
<ul
id=
"info-copy"
class=
"prize-cont-ul"
></ul>
</div>
</div>
<!--<?php $weixin___=['cofool123'];$weixin___=$weixin[rand(0, 0)];?>-->
<div
class=
"contest-contact contest-item"
>
<div
class=
"title-p"
>
微信咨询大赛管理员
</div>
<div
class=
"contact-info"
>
<p
class=
"wechat-w"
>
<!--<span>微信号:{$weixin} </span>-->
<!--<button class="recognition-code copybtn" data-clipboard-action="copy" data-clipboard-text="{$weixin}">复制微信</button>-->
<span
style=
"color: #C60000;"
>
管理员企微号可截图保存添加
</span>
<img
src=
"__PUBLIC__/Home/images/2023ewm/vipDs.jpg"
alt=
""
style=
"width: 49%;margin-top: 11px;"
>
</p>
<!--<p class="contact-n f12">注:复制微信-打开微信-添加好友-粘贴</p>-->
<p
class=
"contact-n f12"
style=
"font-size: 12px;text-align: left;line-height: 18px;margin-bottom: 10px;"
>
<span
style=
"font-weight: bold"
>
叩富『全民炼股』争霸赛
</span><br>
自2007年开赛以来,已累积举办200多期模拟炒股大奖赛,不管牛市熊市从未间断,累积派发现金奖励近百万。
高奖金争霸赛、券商专场大赛、各类战法演练赛、牛人带队赛等等,各类趣味炒股大赛让学习炒股更简单!
<br>
<span
style=
"font-weight: bold"
>
拿奖金,练技巧,以赛促学,以股会友!
</span>
</p>
<p
class=
"contact-n f12"
style=
"font-size: 12px;text-align: left"
>
本大赛最终解释权归叩富网所有!本活动与苹果公司无关!
</p>
</div>
</div>
<include
file=
"static_rule"
/>
</div>
<div
class=
"contest-body-detail"
style=
"display: none"
>
<!--1pk付款,2发起pk,3pk胜利,4pk失败,5胜利退钱,6失败钱归passive,7买重置卡-->
<!--<div class="b-notice">-->
<!--<span class="b-notice-icon"></span>-->
<!--<div class="notice-ul">-->
<!--<ul> -->
<!--<foreach name="msg" key='key' item="vo">-->
<!--<li class="notice-li" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;max-width: 290px;display: block;">{$vo.content} </li>-->
<!--</foreach>-->
<!--</ul>-->
<!--</div>-->
<!--</div>-->
<include
file=
"choujiang"
/>
</div>
<div
class=
"contest-body-detail"
style=
"display: none"
>
<div
class=
"contest-hof"
>
<div
class=
"hof-title"
>
<div
class=
"hof-lf hof-btn active"
style=
"width: 49%"
>
当前排行
</div>
<div
class=
"hof-lf hof-btn"
style=
"width: 49%"
>
历史排行
</div>
<!--<div class="hof-rg hof-btn ">PK通关榜</div>-->
<!--<div class="hof-rg hof-btn active">总决赛</div>-->
</div>
<div
class=
"hof-tab-block"
style__=
"display: none"
>
<div
class=
"ranking-tab"
>
<div
data=
"{$key}"
style=
"width: 25%"
class=
"tab-btn selectNow <eq name='order' value='zongup'>active</eq> "
order=
"zongup"
>
总盈利率
</div>
<div
data=
"{$key}"
style=
"width: 25%"
class=
"tab-btn selectNow <eq name='order' value='lastmonthup'>active</eq> "
order=
"lastmonthup"
>
月盈利率
</div>
<div
data=
"{$key}"
style=
"width: 25%"
class=
"tab-btn selectNow <eq name='order' value='lastweekup'>active</eq> "
order=
"lastweekup"
>
周盈利率
</div>
<div
data=
"{$key}"
style=
"width: 25%"
class=
"tab-btn selectNow <eq name='order' value='lastdayup'>active</eq> "
order=
"lastdayup"
>
日盈利率
</div>
</div>
<div
style=
"clear: both;"
></div>
<!--当前最新月份排行,totalCount:{$totalCount}-->
<div
class=
"month-top-block current-m"
id=
"containerNow"
>
<include
file=
"itemNow"
/>
</div>
<gt
name=
"totalCount"
value=
"10"
>
<div
style=
"padding: 10px 15px 0px;text-align:center;color:#fff;font-size: 14px;"
currPage=
"1"
totalPage=
'{$pages}'
id=
"loadBtn"
>
<p
class=
"loading l_1"
style=
""
><span
class=
"txt"
>
加载中...
</span></p>
<p
class=
"loading l_2"
id=
"nextPage"
style=
"display: none;"
><span
class=
"txt"
>
加载更多
</span></p>
<p
class=
"loading l_3"
style=
"display: none;"
id=
"no_content"
><span
class=
"txt"
>
没有更多用户了
</span></p>
</div>
</gt>
</div>
<div
class=
"hof-tab-block"
style=
"display: none"
>
<div
class=
"select-box-li"
>
<div
class=
"box"
>
<form><span
class=
"select"
data-s=
""
>
{$selectMonthStart2}排行榜
</span></form>
<span
class=
"select-span"
><img
src=
"__PUBLIC__/Home/images/g2020/select-down.png"
alt=
""
></span>
<!--<div style="clear: both;"></div>-->
</div>
<ul
class=
"sub"
>
<foreach
name=
"selectMonth2"
key=
'key'
item=
"vo"
>
<li
data=
"{$key}"
class=
"selectHis"
>
{$vo}排行榜
</li>
</foreach>
</ul>
</div>
<div
style=
"clear: both;"
></div>
<!--<div class="month-top-block history-m" id="container2">-->
<!--</div>-->
<div
class=
"month-top-block current-m"
id=
"containerHis"
>
<!--<include file="item2"/>-->
</div>
</div>
<div
class=
"hof-tab-block"
style=
"display: none"
>
<div
class=
"select-box-li"
>
<div
class=
"box"
>
<form>
<span
class=
"select"
data-s=
""
>
{$selectMonthStart1}PK通关榜
</span>
</form>
<span
class=
"select-span"
><img
src=
"__PUBLIC__/Home/images/g2020/select-down.png"
alt=
""
></span>
</div>
<!--<div style="clear: both;"></div>-->
<ul
class=
"sub"
>
<foreach
name=
"selectMonth1"
key=
'key'
item=
"vo"
>
<li
data=
"{$key}"
class=
"selectPass"
>
{$vo}PK通关榜
</li>
</foreach>
</ul>
</div>
<div
style=
"clear: both;"
></div>
<div
class=
"month-top-block year"
id=
"containerPass"
>
<!--<div style="clear: both;"></div>-->
<include
file=
"itemPass"
/>
</div>
</div>
<!--现在用不到-->
<div
class=
"hof-tab-block"
style=
"display: none"
style=
"margin-top: 15px;"
>
<div
style=
"clear: both;"
></div>
<div
class=
"month-top-block year"
id=
"finalList"
>
<include
file=
"finalList"
/>
</div>
</div>
</div>
</div>
<!--更多大赛-->
<div
class=
"contest-body-detail"
style=
"display: none;"
>
<div
class=
"contest-setting contest-item contest-bg"
>
<div
class=
"title-p"
>
更多大赛 更多奖金
</div>
<div
class=
"setting-info"
>
<img
class=
"set-info-t"
src=
"__PUBLIC__/images/h5/g2020/hycs-img.png"
alt=
""
>
<include
file=
"moreDs"
/>
</div>
</div>
</div>
<eq
name=
"hideShiPan"
value=
"0"
>
<div
class=
"bottom-j-btn bottom-btn"
>
<div
class=
"left-zx"
id=
"zixun"
><img
class=
"icon"
src=
"__PUBLIC__/Home/images/g2020/zx-icon-b.png"
/>
咨询
</div>
<div
class=
"showMoreDs"
>
<img
class=
"icon"
src=
"__PUBLIC__/Home/images/g2020/ds-icon-b.png"
/>
更多大赛
<img
class=
"gdjj"
src=
"__PUBLIC__/Home/images/g2020/gdjj.png"
/>
</div>
<eq
name=
"joinStatus"
value=
"1"
>
<div
class=
"bottom-j-right goTradeBtn"
style=
"width: initial;float: none;"
>
进入交易
<img
class=
"icon"
src=
"__PUBLIC__/Home/images/g2020/cs-icon-b.png"
/></div>
<else/>
<div
class=
"bottom-j-right baoming"
style=
"width: initial;float: none;"
targetUrl=
""
>
报名参加
<img
class=
"icon"
src=
"__PUBLIC__/Home/images/g2020/cs-icon-b.png"
/>
</div>
</eq>
</div>
</eq>
<div
class=
"foot-fix"
>
</div>
</div>
<div
class=
"mask mask-close"
style=
""
></div>
<include
file=
"pop"
/>
</body>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/jweixin-1.0.0.js"
></script>
<script>
//调用app分享
AppBridge
.
app_share
(
'{$appParam}'
);
AppBridge
.
foot_fit
();
//进入页面的时候取userId
var
u
=
navigator
.
userAgent
,
app
=
navigator
.
appVersion
;
var
isAndroid
=
u
.
indexOf
(
'Android'
)
>
-
1
||
u
.
indexOf
(
'Linux'
)
>
-
1
;
var
isiOS
=
!!
u
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
);
userId
=
0
;
//1苹果app,2安卓app,3苹果浏览器,4安卓手机的浏览器,5微信
var
mfrom
=
isAPP
();
var
appShareInfo
=
'{$appShareInfo}'
;
//滑动加载数据时用
var
lastPage
=
0
;
var
loading
=
false
;
var
order
=
'lastmonthup'
;
function
timer
(
opj
){
$
(
opj
).
find
(
'ul'
).
animate
({
marginTop
:
"-28px"
},
500
,
function
(){
$
(
this
).
css
({
marginTop
:
""
}).
find
(
"li:first"
).
appendTo
(
this
);
})
}
$
(
function
(){
//app低版本隐藏h5导航
if
(
mfrom
[
0
]
>
0
){
if
(
mfrom
[
0
]
==
2
&&
mfrom
[
1
]
<
350
){
$
(
'.header-top'
).
hide
();
$
(
'.head-fit'
).
hide
();
}
else
{
if
(
mfrom
[
0
]
==
1
){
AppBridge
.
getVersion
({},
function
(
responseData
){
// alert(responseData);
if
(
responseData
<
'iOS3.5.0'
){
$
(
'.header-top'
).
hide
();
$
(
'.head-fit'
).
hide
();
}
})
}
}
}
AppBridge
.
webShareShow
(
appShareInfo
);
//一级一级返回1,隐藏导航栏2,一次性返回3
AppBridge
.
goBackStepOneOrMore
(
1
);
sendSmsAndSubmit
();
// 点报名按钮
$
(
".baoming,.sscs"
).
click
(
function
()
{
$
(
'#baomingPOP'
).
attr
(
'targetUrl'
,
$
(
this
).
attr
(
'targetUrl'
));
// alert(mfrom);
// if($(".join-btn").html()=='进入交易'){
// console.log('1点击进入交易按钮');
// $(".goTradeBtn").click();
// }else{
if
(
mfrom
[
1
]
>
0
){
checkLoginAndDo
(
mfrom
[
0
],
'{$user.userID}'
,
1
);
}
else
{
// animPop('#baomingPOP');
if
(
'{$user.userID}'
==
''
){
animPop
(
'#baomingPOP'
);
}
else
{
$
.
post
(
"/PkTop/join"
,{},
function
(
data
){
if
(
data
.
status
==
0
){
//已经参加过该大赛
if
(
data
.
flag
==
1
){
layer
.
open
({
content
:
data
.
info
,
skin
:
'msg'
,
time
:
2
,
end
:
function
()
{
var
href
=
location
.
href
;
console
.
log
(
'当前页面url:'
+
href
);
window
.
location
.
reload
();
}});
}
else
{
//可能有各种错误提示
layer
.
open
({
content
:
data
.
info
,
skin
:
'msg'
,
time
:
2
,
end
:
function
()
{
//window.location.reload();
}});
}
return
false
;
}
else
{
// animPop('#baomingPOP');
animPop
(
'#popPkTopSucc'
);
}
});
}
}
// }
});
//进入交易
$
(
".goTradeBtn,.pk-cont-info"
).
click
(
function
()
{
console
.
log
(
'2点击进入交易按钮'
+
mfrom
[
0
]);
if
(
mfrom
[
1
]
>
0
){
if
(
$
(
'#groupStatus'
).
val
()
==
1
){
layer
.
open
({
content
:
'当前大赛未开始'
,
skin
:
'msg'
,
time
:
2
});
}
var
appParam
=
$
(
'#groupInfo'
).
val
();
appParam
=
appParam
.
replace
(
/XXXXXX/g
,
userId
);
AppBridge
.
refreshMyGroup
();
AppBridge
.
goTrade
(
appParam
);
}
else
{
// location.href='/mncg.html';
// location.href='/Trade/trading?group_id={$gInfo.group_id}';
location
.
href
=
'http://app.jiantou8.com/jiantou.html'
;
}
});
// $(".gotoTrade").click(function () {
// console.log('2点击进入交易按钮'+mfrom[0]);
// if(mfrom[1]>0){
// // if($('#groupStatus').val()==1){
// // layer.open({content: '当前大赛未开始',skin: 'msg',time: 2});
// // }
// // var appParam=$('#groupInfo').val();
// // appParam=appParam.replace(/XXXXXX/g, userId);
// var appParam=$(this).attr('gotoTrade');
// AppBridge.refreshMyGroup();
// AppBridge.goTrade(appParam);
//
// }else{
// location.href='http://app.jiantou8.com/jiantou.html';
// }
// });
//点击底部的更多大赛
$
(
'.showMoreDs'
).
click
(
function
(){
$
(
'.en-li'
).
eq
(
3
).
click
();
})
//页面最上面的li标签切换
$
(
'.en-li'
).
each
(
function
(
i
,
obj
){
$
(
obj
).
click
(
function
(){
$
(
this
).
siblings
().
removeClass
(
'active'
);
$
(
this
).
addClass
(
'active'
);
$
(
'.contest-body-detail'
).
hide
();
// $($('.contest-body-detail')[i-1]).show();
//1是中金大赛,调到别的链接
// if(i==1){
// // location.href='{:M_URL}/Zjds';
// return;
// }
if
(
i
==
0
){
$
(
$
(
'.contest-body-detail'
)[
0
]).
show
();
}
else
{
$
(
$
(
'.contest-body-detail'
)[
i
]).
show
();
}
console
.
log
(
'当前外层标签序号:'
+
i
);
history
.
replaceState
({},
""
,
"?gid={$_GET.gid}&viewPage="
+
(
i
+
1
));
// if(i == 1){
// slider.reloadSlider();
// }
if
(
i
==
2
){
$
(
'.selectNow'
).
eq
(
1
).
click
();
}
//点击量统计
if
(
i
==
3
){
$
.
get
(
'/PkTop/dianjiLog'
,{},
function
(
e
){
console
.
log
(
'记录点击日志'
);
},
'json'
);
}
})
});
//点排行榜下面的几个标签,i从0开始
$
(
'.hof-title .hof-btn'
).
each
(
function
(
i
,
obj
){
$
(
obj
).
click
(
function
(){
console
.
log
(
'排行榜里面的序号:'
+
i
);
$
(
'.hof-title .hof-btn'
).
removeClass
(
'active'
);
$
(
this
).
addClass
(
'active'
);
$
(
'.hof-tab-block'
).
hide
();
$
(
$
(
'.hof-tab-block'
)[
i
]).
show
();
//
if
(
i
==
1
){
$
(
'.selectHis'
).
eq
(
0
).
click
();
}
})
});
//点击按钮挑战Ta
initPkBtn
(
mfrom
[
0
],
'{$user.userID}'
,
'{$user.userName}'
);
//开始进入支付
$
(
".go-pk-btn"
).
click
(
function
()
{
window
.
location
.
href
=
'/Pay/apply_pay?type=pk&id='
+
$
(
this
).
attr
(
'phbId'
);
});
var
clipboard
=
new
Clipboard
(
'.copybtn'
);
clipboard
.
on
(
'success'
,
function
(
e
)
{
console
.
info
(
'Text:'
,
e
.
text
);
layer
.
open
({
content
:
"复制微信号成功"
,
skin
:
'msg'
,
time
:
2
},
8
);});
clipboard
.
on
(
'error'
,
function
(
e
)
{
layer
.
open
({
content
:
"复制失败,请长按复制"
,
skin
:
'msg'
,
time
:
2
},
8
)});
var
clipboard
=
new
Clipboard
(
'.copyWx'
);
clipboard
.
on
(
'success'
,
function
(
e
)
{
console
.
info
(
'Text:'
,
e
.
text
);
layer
.
open
({
content
:
'复制成功'
,
skin
:
'msg'
,
time
:
2
});});
clipboard
.
on
(
'error'
,
function
(
e
)
{
layer
.
open
({
content
:
'复制失败,请长按复制'
,
skin
:
'msg'
,
time
:
2
});});
//获奖感言滚动显示
var
area
=
$
(
'.message-block'
)[
0
];
var
con1
=
$
(
'.message-block-ul'
)[
0
];
var
con2
=
$
(
'#info-copy'
)[
0
];
con2
.
innerHTML
=
con1
.
innerHTML
;
function
scrollUp
(){
if
(
area
.
scrollTop
>=
con1
.
offsetHeight
){
area
.
scrollTop
=
0
;
}
else
{
area
.
scrollTop
++
;
}
}
var
time
=
50
;
var
mytimer
=
setInterval
(
scrollUp
,
time
);
//打开页面时出现pk消息的弹框
if
(
'{$popType}'
==
2
){
animPop
(
'#pop2'
);
}
if
(
'{$popType}'
==
3
){
var
text
=
$
(
'#pop3'
).
children
(
'.result-msg-s'
).
text
();
text
=
text
.
replace
(
/【】/
,
"【{$popPkUserName}】"
);
$
(
'#pop3'
).
children
(
'.result-msg-s'
).
text
(
text
);
animPop
(
'#pop3'
);
}
if
(
'{$popType}'
==
4
){
var
text
=
$
(
'#pop4'
).
children
(
'.result-msg-s'
).
text
();
text
=
text
.
replace
(
/【】/
,
"【{$popPkUserName}】"
);
$
(
'#pop4'
).
children
(
'.result-msg-s'
).
text
(
text
);
animPop
(
'#pop3'
);
}
$
(
function
(){
var
num
=
$
(
'.notice-ul'
).
find
(
'li'
).
length
;
if
(
num
>
1
){
var
time
=
setInterval
(
'timer(".notice-ul")'
,
3500
);
}
});
$
(
'.go-rule'
).
click
(
function
(){
$
(
'html,body'
).
animate
({
scrollTop
:
$
(
'.bottom'
).
offset
().
top
},
500
);
})
//当前只有两个弹窗
// $(".t-pop-close,.pop-close").click(function () {
// animPop($(this).parents('.pops'));
// });
$
(
"#closeBm,#closeWx"
).
click
(
function
()
{
animPop
(
$
(
this
).
parents
(
'.pops'
));
});
//弹出咨询弹框
$
(
"#zixun"
).
click
(
function
()
{
animPop
(
'#popWx'
)
});
//点关闭刷新页面取状态
$
(
"#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
();
}
//显示月份的下拉框
$
(
'.select-box-li .box'
).
each
(
function
(
i
,
obj
){
var
oSelect
=
$
(
obj
);
var
oSub
=
oSelect
.
parents
(
'.select-box-li'
).
find
(
'.sub'
);
var
aLi
=
oSelect
.
parents
(
'.select-box-li'
).
find
(
'.sub li'
);
var
i
=
0
;
oSelect
[
0
].
onclick
=
function
(
event
){
oSub
.
toggle
();
//阻止事件冒泡
(
event
||
window
.
event
).
cancelBubble
=
true
;
};
for
(
i
=
0
;
i
<
aLi
.
length
;
i
++
){
//鼠标划过
aLi
[
i
].
onclick
=
function
(){
$
(
oSelect
).
find
(
'.select'
).
html
(
$
(
this
).
html
());
};
}
document
.
onclick
=
function
()
{
$
(
'.select-box-li .sub'
).
hide
();
};
});
//点击当前排行下面的几个盈利率
$
(
'.selectNow'
).
click
(
function
(){
//每次点下拉框要重置
$
(
"#loadBtn"
).
attr
(
"currPage"
,
1
);
order
=
$
(
this
).
attr
(
'order'
);
$
.
get
(
"/PkTop/rankNow"
,
{
order
:
order
,
'debug'
:
'click'
},
function
(
data
)
{
if
(
data
.
status
==
1
)
{
$
(
"#containerNow"
).
html
(
data
.
data
);
initPkBtn
(
mfrom
[
0
],
'{$user.userID}'
,
'{$user.userName}'
);
}
});
$
(
'.selectNow'
).
removeClass
(
'active'
);
$
(
this
).
addClass
(
'active'
);
});
//选月排行榜的下拉框
$
(
'.selectHis'
).
click
(
function
(){
$
.
post
(
"/PkTop/getMonthData"
,
{
month
:
$
(
this
).
attr
(
'data'
),
'type'
:
'month'
},
function
(
data
)
{
if
(
data
.
status
==
1
)
{
// $("#container2").html('');
$
(
"#containerHis"
).
html
(
''
);
if
(
data
.
type
==
'month'
||
data
.
type
==
'nowMonth'
){
$
(
"#containerHis"
).
html
(
data
.
data
);
initPkBtn
(
mfrom
[
0
],
'{$user.userID}'
,
'{$user.userName}'
);
}
}
});
});
//点击年度精英赛的月份后请求后台
$
(
'.selectPass'
).
click
(
function
(){
$
.
post
(
"/PkTop/getMonthData"
,
{
month
:
$
(
this
).
attr
(
'data'
),
'type'
:
'final'
},
function
(
data
)
{
if
(
data
.
status
==
1
)
{
$
(
"#containerPass"
).
html
(
data
.
data
)
initPkBtn
(
mfrom
[
0
],
'{$user.userID}'
,
'{$user.userName}'
);
}
});
});
//点用户名和头像跳转到该大赛的旧的交易页
flag
=
0
;
$
(
'.goTrade21'
).
click
(
function
(){
if
(
flag
==
1
)
return
;
flag
=
1
;
$
.
post
(
"/PkTop/getGoTradeInfo"
,
{
'userId'
:
$
(
this
).
attr
(
'pId'
),
'userName'
:
$
(
this
).
attr
(
'pName'
)},
function
(
res
)
{
if
(
res
.
status
==
1
)
{
flag
=
0
;
if
(
mfrom
[
1
]
>
0
){
AppBridge
.
refreshMyGroup
();
AppBridge
.
goTrade
(
res
.
data
)
}
}
});
});
//资金重置卡
$
(
'.bottom-j-left'
).
click
(
function
()
{
// $.post('/Public/statistics',{type_:'Allex_fund_reset'},function () {})
if
(
'{$user.userID}'
>
0
)
{
location
.
href
=
'{:M_URL}/Box'
;
}
else
{
if
(
mfrom
[
0
]
==
1
||
mfrom
[
0
]
==
2
)
{
checkLoginAndDo
(
mfrom
[
0
],
'{$user.userID}'
,
3
);
}
else
{
animPop
(
'#baomingPOP'
)
}
}
});
window
.
onscroll
=
function
()
{
// alert(mfrom);
var
check
;
var
scrollTop
=
$
(
this
).
scrollTop
();
//滚动条距离顶部的高度
var
scrollHeight
=
$
(
document
).
height
();
//当前页面的总高度
var
clientHeight
=
$
(
this
).
height
();
//当前可视的页面高度
var
totalHeight
=
parseFloat
(
clientHeight
)
+
parseFloat
(
scrollTop
);
if
(
scrollHeight
-
totalHeight
<
60
)
{
if
(
loading
==
false
)
{
loading
=
true
;
$
(
".loading.l_2"
).
click
();
}
else
{
return
false
;
}
}
check
=
false
;
if
(
check
){
if
(
lastPage
==
0
){
$
(
".loading.l_2"
).
click
();
}
}
};
//点加载更多按钮
$
(
".loading.l_2"
).
click
(
function
(){
// $(".l_2").hide();
var
totalPage
=
$
(
"#loadBtn"
).
attr
(
"totalPage"
);
var
currPage
=
$
(
"#loadBtn"
).
attr
(
"currPage"
);
var
nextPage
=
parseInt
(
currPage
)
+
1
;
if
(
nextPage
>
parseInt
(
totalPage
))
{
return
;
}
else
{
}
$
.
get
(
'/PkTop/rankNow'
,{
p
:
nextPage
,
'order'
:
order
,
'debug'
:
'scroll'
},
function
(
e
){
$
(
".l_1"
).
hide
();
if
(
nextPage
>=
parseInt
(
totalPage
))
{
// $(".l_2").hide();
$
(
".l_3"
).
show
();
lastPage
=
1
;
}
else
{
// $(".l_2").show();
$
(
".l_1"
).
show
();
}
if
(
e
.
status
==
0
)
{
layer
.
alert
(
e
.
info
,
8
);
return
false
;}
$
(
"#loadBtn"
).
attr
(
'currPage'
,
nextPage
);
$
(
"#containerNow"
).
append
(
e
.
data
);
setTimeout
(
function
(){
loading
=
false
;},
1000
)
},
'json'
);
});
//开户链接跳转
$
(
".lottery-click-a,.go-open"
).
click
(
function
(){
var
kaihuUrl
=
'https://kaihu.ciccwm.com/khh5/m/open/index.html?short_code=KFCGyUylUq7EY0'
;
AppBridge
.
goBrowser
(
kaihuUrl
);
return
false
;
});
});
</script>
</html>
<!--userId:{$user.userID}-userName:{$user.userName}-popType:{$popType}-->
\ No newline at end of file
app/Tpl/Vip/PkTop/pop.html
View file @
be5d3f54
...
@@ -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;"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment