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
299c7209
Commit
299c7209
authored
Nov 14, 2022
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更多大赛的页面
parent
e34c4aad
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
425 additions
and
265 deletions
+425
-265
g2021.css
Public/css/h5/g2021.css
+0
-60
moreDs.css
Public/css/h5/moreDs.css
+61
-0
pk.js
Public/js/pk.js
+3
-3
config.php
app/Conf/config.php
+3
-0
IndexAction.class.php
app/Lib/Action/Vip/IndexAction.class.php
+142
-1
NiuModel.class.php
app/Lib/Model/NiuModel.class.php
+103
-5
moreDs.html
app/Tpl/Vip/Index/moreDs.html
+37
-46
pkList.html
app/Tpl/Vip/Index/pkList.html
+0
-125
pop.html
app/Tpl/Vip/Index/pop.html
+75
-24
pop.html
app/Tpl/Vip/PkTop/pop.html
+1
-1
No files found.
Public/css/h5/g2021.css
View file @
299c7209
...
...
@@ -2689,63 +2689,3 @@ table tbody .tr-top3 .td-tx .tx-img{
text-align
:
center
;
}
/*------------*/
.set-info-t
{
display
:
block
;
margin
:
10px
auto
30px
;
}
.setting-info
.ds-item-block
{
background-color
:
#ffffff
;
border-radius
:
14px
;
margin-bottom
:
20px
;
display
:
flex
;
padding
:
30px
40px
;
position
:
relative
;
}
.setting-info
.ds-item-block
.active-img
{
position
:
absolute
;
left
:
0
;
top
:
0
;
}
.setting-info
.ds-item-block
.ds-img
{
width
:
210px
;
height
:
130px
;
background-color
:
#FFF2E9
;
padding
:
7px
;
}
.setting-info
.ds-item-block
.ds-img
img
{
width
:
196px
;
height
:
100%
;
}
.setting-info
.ds-item-block
.ds-right-info
{
padding-left
:
25px
;
width
:
610px
;
}
.ds-right-info
.info-title
{
font-size
:
18px
;
line-height
:
34px
;
font-weight
:
bold
;
}
.ds-right-info
.info-title
.gf-icon
{
font-size
:
14px
;
color
:
#e1503f
;
padding
:
3px
14px
;
border
:
1px
solid
#E1503F
;
border-radius
:
15px
;
font-weight
:
normal
;
margin-right
:
20px
;
}
.ds-right-info
.ds-des
{
font-size
:
14px
;
line-height
:
24px
;
margin
:
10px
0px
17px
;
min-height
:
48px
;
color
:
#333
;
}
.ds-right-info
.ds-time-btn
{
font-size
:
14px
;
color
:
#666666
;
}
.ds-right-info
.ds-time-btn
.time-span
img
{
position
:
relative
;
top
:
3px
;
margin-right
:
5px
;
}
.ds-right-info
.ds-time-btn
.join-btn
{
width
:
104px
;
height
:
28px
;
background-color
:
#E1503F
;
color
:
#ffffff
;
font-size
:
14px
;
float
:
right
;
text-align
:
center
;
line-height
:
28px
;
border-radius
:
20px
;
position
:
relative
;
top
:
-4px
;
}
\ No newline at end of file
Public/css/h5/moreDs.css
0 → 100644
View file @
299c7209
/*------------*/
.set-info-t
{
display
:
block
;
margin
:
10px
auto
30px
;
}
.setting-info
.ds-item-block
{
background-color
:
#ffffff
;
border-radius
:
14px
;
margin-bottom
:
20px
;
display
:
flex
;
padding
:
30px
40px
;
position
:
relative
;
}
.setting-info
.ds-item-block
.active-img
{
position
:
absolute
;
left
:
0
;
top
:
0
;
}
.setting-info
.ds-item-block
.ds-img
{
width
:
210px
;
height
:
130px
;
background-color
:
#FFF2E9
;
padding
:
7px
;
}
.setting-info
.ds-item-block
.ds-img
img
{
width
:
196px
;
height
:
100%
;
}
.setting-info
.ds-item-block
.ds-right-info
{
padding-left
:
25px
;
width
:
610px
;
}
.ds-right-info
.info-title
{
font-size
:
18px
;
line-height
:
34px
;
font-weight
:
bold
;
}
.ds-right-info
.info-title
.gf-icon
{
font-size
:
14px
;
color
:
#e1503f
;
padding
:
3px
14px
;
border
:
1px
solid
#E1503F
;
border-radius
:
15px
;
font-weight
:
normal
;
margin-right
:
20px
;
}
.ds-right-info
.ds-des
{
font-size
:
14px
;
line-height
:
24px
;
margin
:
10px
0px
17px
;
min-height
:
48px
;
color
:
#333
;
}
.ds-right-info
.ds-time-btn
{
font-size
:
14px
;
color
:
#666666
;
}
.ds-right-info
.ds-time-btn
.time-span
img
{
position
:
relative
;
top
:
3px
;
margin-right
:
5px
;
}
.ds-right-info
.ds-time-btn
.join-btn
{
width
:
104px
;
height
:
28px
;
background-color
:
#E1503F
;
color
:
#ffffff
;
font-size
:
14px
;
float
:
right
;
text-align
:
center
;
line-height
:
28px
;
border-radius
:
20px
;
position
:
relative
;
top
:
-4px
;
}
\ No newline at end of file
Public/js/pk.js
View file @
299c7209
...
...
@@ -28,7 +28,7 @@ function initPkBtn(var1,var2){
function
baoming
(
userId
,
wwwUrl
){
$
(
"#baoming,.right-entrance1,#joinNow"
).
click
(
function
()
{
$
(
"#baoming,.right-entrance1,#joinNow
,.baoming
"
).
click
(
function
()
{
if
(
$
(
this
).
text
()
==
'进入交易'
){
location
.
href
=
wwwUrl
+
"/Trade/Stock/index/gid/"
+
$
(
'#prizeGroupId'
).
val
();
}
...
...
@@ -51,8 +51,8 @@ function baoming(userId,wwwUrl){
});
}
function
submitBaoming
(
userType
,
tradeUrl
){
$
(
".
form-info-btn
"
).
click
(
function
()
{
//form-info-btn
$
(
".
bmStatus2
"
).
click
(
function
()
{
userType
=
$
(
'#userType'
).
val
();
//新用户需输入用户名密码
if
(
userType
==
0
){
...
...
app/Conf/config.php
View file @
299c7209
...
...
@@ -35,7 +35,10 @@ define('PRIZE_GROUP_2021',20320);
define
(
'NIUD_ID'
,
23494
);
define
(
'NIUS_ID'
,
23685
);
define
(
'JUJI_ID'
,
22769
);
define
(
'M2M_GROUP'
,
24321
);
define
(
'ZHONGJIN_GROUP'
,
24299
);
define
(
'NIU_STRONG_ID'
,
24323
);
return
array
(
...
...
app/Lib/Action/Vip/IndexAction.class.php
View file @
299c7209
...
...
@@ -342,6 +342,7 @@ class IndexAction extends IdentityAction {
$this
->
ajaxReturn
(
array
(
'status'
=>
0
,
'info'
=>
$joinRes
[
'error'
],
'joinStatus'
=>
$joinRes
[
'joinStatus'
]));
}
}
public
function
_addUser
(
$info
=
array
(),
$exp
=
0
)
{
//require_once './uc_client_php/client.php';
Load
(
'extend'
);
...
...
@@ -842,6 +843,7 @@ class IndexAction extends IdentityAction {
$groupInfo
=
M
(
'Group'
)
->
field
(
'group_id,web_id,category,name,startTime,endTime'
)
->
where
([
'group_id'
=>
$gid
])
->
find
();
$this
->
assign
(
'title'
,
$groupInfo
[
'name'
]);
$ids
=
D
(
'Group'
)
->
getGroupCache
(
$userID
);
// var_dump($ids);exit;
if
(
in_array
(
$gid
,
$ids
)){
$this
->
assign
(
'joinStatus'
,
1
);
}
...
...
@@ -1074,10 +1076,149 @@ class IndexAction extends IdentityAction {
//官方有奖赛列表页
public
function
moreDs
(){
$userId
=
$this
->
user
[
'userID'
];
$gList
=
D
(
'Niu'
)
->
getMoreDs
(
$userId
);
$this
->
setValue
(
$userId
);
$this
->
assign
(
'gid'
,
$this
->
GID
);
$gList
=
D
(
'Niu'
)
->
getMoreDs
(
$userId
,
'www'
);
$this
->
assign
(
'gList'
,
$gList
);
$this
->
display
();
}
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
==
M2M_GROUP
){
$res
=
D
(
'Niu'
)
->
joinNiu
(
$mobile
,
$smsCode
,
38
,
$userId
,
$userName
,
$gid
);
}
if
(
in_array
(
$gid
,[
NIU_BAI_ID
,
NIU_SAN_ID
,
NIU_STRONG_ID
])){
$res
=
D
(
'Niu'
)
->
joinNiu
(
$mobile
,
$smsCode
,
44
,
$userId
,
$userName
,
$gid
);
}
$this
->
ajaxReturn
(
$res
);
}
//加入中金赛
public
function
joinZj
(){
$groupId
=
ZHONGJIN_GROUP
;
$code_type
=
38
;
//报名大赛
$mobile
=
I
(
'mobile'
,
''
);
$kaihuSource
=
I
(
'kaihuSource'
,
''
);
$kaihuSource
=
$kaihuSource
?
$kaihuSource
:
cookie
(
'kaihuSource'
);
//通过输入手机号报名,userId变为空
// $userId=$mobile?0:$this->user['userID'];
$userId
=
$this
->
user
[
'userID'
];
// $smsCode = I('smsCode', '');
//
// if (!$smsCode) {
// $this->ajaxReturn(['status' => 0, 'info' => '请输入手机验证码!']);
// }
// $map=['mobile'=>$mobile,'code'=>$smsCode,'type'=>$code_type,'add_time'=>['gt',NOW_TIME-1800]];
// $row = M('Sms')->where($map)->find();
// if(empty($row)){
// //测试
// $this->ajaxReturn(['status'=>0,'info'=>'验证码失效或者错误!']);
// }
// echo 22;exit;
$referer
=
I
(
'referer'
,
''
);
$groupInfo
=
M
(
'Group'
)
->
field
(
'startTime,endTime'
)
->
where
([
'group_id'
=>
$groupId
])
->
find
();
//1未开始,2是进行中,3已结束
$groupStatus
=
is_end
(
$groupInfo
[
'endTime'
])
?
3
:
(
$groupInfo
[
'startTime'
]
>
time
()
?
1
:
2
);
if
(
$groupStatus
==
3
)
{
$this
->
ajaxReturn
([
'status'
=>
0
,
'info'
=>
'该大赛已经结束,不能报名!'
]);
}
//如果该手机号的申请状态是未审核0和已通过1,应返回提示
$oldData
=
M
(
'Zhongjin'
)
->
where
([
'mobile'
=>
$mobile
,
'status'
=>
0
])
->
count
();
if
(
$oldData
)
{
$this
->
ajaxReturn
([
'status'
=>
0
,
'info'
=>
'您提交的信息正在审核中,请不要重复提交!'
]);
}
$oldData
=
M
(
'Zhongjin'
)
->
where
([
'mobile'
=>
$mobile
,
'status'
=>
1
])
->
count
();
if
(
$oldData
)
{
$this
->
ajaxReturn
([
'status'
=>
0
,
'info'
=>
'该手机号已经开过户,不能重复报名!'
]);
}
cookie
(
'kaihuSource'
,
$kaihuSource
);
//已登录
if
(
$userId
){
$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'
=>
$mobile
,
'nick'
=>
$ucData
[
'nick'
],
'add_time'
=>
time
(),
'source'
=>
$kaihuSource
]);
$joinStatus
=
0
;
}
else
{
$joinStatus
=
empty
(
$bmData
)
?-
1
:
$bmData
[
'status'
];
}
$debug
=
'已登录用户'
;
}
else
{
// echo 33;exit;
$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
=
$this
->
_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'
]]);
}
$info
=
'您提交的信息正在审核,通过后将以短信方式通知您'
;
$this
->
ajaxReturn
([
'status'
=>
1
,
'joinStatus'
=>
$joinStatus
,
'userId'
=>
$userId
,
'debug'
=>
$debug
,
'info'
=>
$info
]);
}
}
...
...
app/Lib/Model/NiuModel.class.php
View file @
299c7209
...
...
@@ -2,21 +2,119 @@
class
NiuModel
extends
Model
{
public
$autoCheckFields
=
false
;
public
function
getMoreDs
(
$userId
)
{
public
function
getMoreDs
(
$userId
,
$source
=
'm'
)
{
$ids
=
D
(
'Group'
)
->
getGroupCache
(
$userId
);
$MAP
=
[
NIU_BAI_ID
=>
'Niubai'
,
NIU_SAN_ID
=>
'Niusan'
,
NIU_STRONG_ID
=>
'Strong'
,
M2M_GROUP
=>
'M2m'
,
PRIZE_GROUP_2021
=>
VIP_URL
.
'/PkTop'
,
ZHONGJIN_GROUP
=>
'Zjds'
];
$MAP
=
[
NIU_BAI_ID
=>
M_URL
.
'/Niubai'
,
NIU_SAN_ID
=>
M_URL
.
'/Niusan'
,
NIU_STRONG_ID
=>
M_URL
.
'/Strong'
,
M2M_GROUP
=>
M_URL
.
'/M2m'
];
if
(
$source
==
'm'
){
$MAP
[
PRIZE_GROUP_2021
]
=
VIP_URL
.
'/PkTop'
;
$MAP
[
ZHONGJIN_GROUP
]
=
M_URL
.
'/Zjds'
;
}
else
{
$MAP
[
PRIZE_GROUP_2021
]
=
'/'
;
$MAP
[
ZHONGJIN_GROUP
]
=
WWW_URL
.
'/Zjds'
;
}
$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'
)
->
field
(
'a.group_id,a.name,startTime,endTime,b.cover'
)
->
where
(
$where
)
->
select
();
//
echo M('Group a')->getLastSql(
);exit;
->
field
(
'a.group_id,a.name,startTime,endTime,b.cover
,introduction
'
)
->
where
(
$where
)
->
select
();
//
var_dump($gList
);exit;
foreach
(
$gList
as
$k
=>
&
$g
)
{
$g
[
'active'
]
=
$g
[
'group_id'
]
==
PRIZE_GROUP_2021
?
1
:
0
;
$g
[
'joinStatus'
]
=
in_array
(
$g
[
'group_id'
],
$ids
)
?
1
:
0
;
$g
[
'url'
]
=
$MAP
[
$g
[
'group_id'
]];
if
(
mb_strlen
(
$g
[
'introduction'
])
>
60
){
$v
[
'introduction'
]
=
msubstr
(
$g
[
'introduction'
],
0
,
60
,
'utf-8'
)
.
'...'
;
}
$endTime
=
$g
[
"endTime"
];
$g
[
"startTime"
]
=
date
(
'Y-m-d'
,
$g
[
"startTime"
]);
$g
[
"endTime"
]
=
$endTime
?
date
(
'Y-m-d'
,
$g
[
"endTime"
])
:
'长期'
;
$g
[
"cover"
]
=
str_replace
(
'http://image.cofool.com/'
,
IMAGE_URL
,
$g
[
"cover"
]);
}
return
$gList
;
}
//加入大赛
public
function
joinNiu
(
$mobile
,
$smsCode
,
$smsType
,
$userId
,
$userName
,
$gid
){
// $smsType=$this->smsType;
// $mobile = I('mobile', '');
// $smsCode = I('smsCode', '');
// $referer =I('referer', '');
// require_once './uc_client_php/client.php';
if
(
$mobile
){
if
(
!
$smsCode
)
{
return
([
'status'
=>
2
,
'info'
=>
'请输入手机验证码!'
]);
}
if
(
CS
(
'tel:'
.
$mobile
.
':'
.
$smsType
)
!=
$smsCode
)
{
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
){
cookie
(
'_userID'
,
$userInfo
[
'userID'
]);
cookie
(
'_userName'
,
$userInfo
[
'userName'
]);
cookie
(
'_nick'
,
$userInfo
[
'nick'
]);
cookie
(
'_auth'
,
null
);
$cookieTime
=
86400
*
30
;
if
(
$remember
){
cookie
(
'_auth'
,
think_encrypt
(
$userInfo
[
'userName'
]
.
"
\t
"
.
$userInfo
[
'userID'
]
.
"
\t
"
.
$userInfo
[
'nick'
]),[
'expire'
=>
$cookieTime
]);
}
else
{
cookie
(
'_auth'
,
think_encrypt
(
$userInfo
[
'userName'
]
.
"
\t
"
.
$userInfo
[
'userID'
]
.
"
\t
"
.
$userInfo
[
'nick'
]),[
'expire'
=>
$cookieTime
]);
}
}
}
?>
app/Tpl/Vip/Index/moreDs.html
View file @
299c7209
...
...
@@ -10,6 +10,8 @@
<meta
name=
"description"
content=
"叩富简投2022模拟炒股大赛之股王争霸赛,赢10万现金大奖。自2007年开赛以来,已累积举办200多期模拟炒股大奖赛。每周、每月都有现金大奖。软件、手机APP、网页同步参赛"
/>
<meta
name=
"keywords"
content=
"2022模拟炒股大赛,模拟炒股大赛,模拟炒股,模拟股票大赛,炒股大赛,模拟炒股有奖大赛,模拟股市大赛,股票模拟大赛,股票大赛,腾讯A股大赛,凤凰炒股大赛"
/>
<link
rel=
"stylesheet"
href=
"__PUBLIC__/css/h5/g2021.css{$Think.config.css_version}"
>
<link
rel=
"stylesheet"
href=
"__PUBLIC__/css/h5/moreDs.css{$Think.config.css_version}"
>
<link
rel=
"stylesheet"
href=
"__PUBLIC__/js/slider/css/jquery.bxslider.css"
>
<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>
...
...
@@ -20,7 +22,7 @@
</head>
<body>
<div
class=
"championship-cont-web"
>
<php>
$viewFlag=
5
;
</php>
<php>
$viewFlag=
6
;
</php>
<include
file=
"top"
/>
<div
class=
"web-wid"
>
...
...
@@ -29,46 +31,35 @@
<div
class=
"title-p"
>
更多大赛 更多奖金
</div>
<div
class=
"setting-info"
>
<img
class=
"set-info-t"
src=
"__PUBLIC__/images/h5/g2020/hycs-img.png"
alt=
""
>
<div
class=
"ds-item-block"
>
<div
class=
"ds-img"
><img
src=
"__PUBLIC__/images/h5/g2020/head-icon.png"
alt=
""
></div>
<div
class=
"ds-right-info"
>
<a
href=
"javascript:;"
class=
"info-title"
><span
class=
"gf-icon"
>
官方
</span>
叩富简投狙击“强势股”争霸赛
</a>
<div
class=
"ds-des"
>
由叩富简股举办的“强势股”争霸赛现已正式开赛!衡量炒股水平的高低,标准就是能否跑赢大盘唯有消息股和强势股可以做到,前者我们无法获得,后者却可把握。
</div>
<div
class=
"ds-time-btn"
>
<span
class=
"time-span"
><img
src=
"__PUBLIC__/images/h5/g2020/time-icon.png"
alt=
""
>
比赛时间:2022.10.10 ~ 2022.12.31
</span>
<a
href=
"javascript:;"
class=
"join-btn"
>
报名参赛
</a>
</div>
</div>
</div>
<div
class=
"ds-item-block"
>
<div
class=
"ds-img"
><img
src=
"__PUBLIC__/images/h5/g2020/head-icon.png"
alt=
""
></div>
<div
class=
"ds-right-info"
>
<a
href=
"javascript:;"
class=
"info-title"
><span
class=
"gf-icon"
>
官方
</span>
官方有奖争霸赛-中金专场
</a>
<div
class=
"ds-des"
>
每月资金高达5000元!更有年度大奖等你来拿。
</div>
<div
class=
"ds-time-btn"
>
<span
class=
"time-span"
><img
src=
"__PUBLIC__/images/h5/g2020/time-icon.png"
alt=
""
>
比赛时间:2022.10.10 ~ 2022.12.31
</span>
<a
href=
"javascript:;"
class=
"join-btn"
>
进入交易
</a>
</div>
</div>
</div>
<div
class=
"ds-item-block"
>
<img
class=
"active-img"
src=
"__PUBLIC__/images/h5/g2020/active-icon.png"
alt=
""
>
<div
class=
"ds-img"
><img
src=
"__PUBLIC__/images/h5/g2020/head-icon.png"
alt=
""
></div>
<div
class=
"ds-right-info"
>
<a
href=
"javascript:;"
class=
"info-title"
><span
class=
"gf-icon"
>
官方
</span>
叩富简投狙击“强势股”争霸赛
</a>
<div
class=
"ds-des"
>
每月资金高达5000元!更有年度大奖等你来拿。
</div>
<div
class=
"ds-time-btn"
>
<span
class=
"time-span"
><img
src=
"__PUBLIC__/images/h5/g2020/time-icon.png"
alt=
""
>
比赛时间:2022.10.10 ~ 2022.12.31
</span>
<a
href=
"javascript:;"
class=
"join-btn"
>
进入交易
</a>
<foreach
name=
"gList"
item=
"vo"
>
<div
class=
"ds-item-block"
>
<eq
name=
"vo.active"
value=
"1"
>
<img
class=
"active-img"
src=
"__PUBLIC__/images/h5/g2020/active-icon.png"
alt=
""
>
</eq>
<div
class=
"ds-img"
><img
src=
"{$vo.cover}"
alt=
""
></div>
<div
class=
"ds-right-info"
>
<a
href=
"{$vo.url}"
class=
"info-title"
target=
"_blank"
><span
class=
"gf-icon"
>
官方
</span>
{$vo.name}
</a>
<div
class=
"ds-des"
>
{$vo.introduction}
</div>
<div
class=
"ds-time-btn"
>
<span
class=
"time-span"
><img
src=
"__PUBLIC__/images/h5/g2020/time-icon.png"
alt=
""
>
比赛时间:{$vo.startTime} ~ {$vo.endTime}
</span>
<eq
name=
"vo.joinStatus"
value=
"1"
>
<a
href=
"{$Think.config.WWW_URL}/Trade/Stock/index/gid/{$_GET.gid|default=PRIZE_GROUP_2021}"
class=
"join-btn"
>
进入交易
</a>
<else/>
<!--<a href="javascript:;" class="join-btn baoming">报名参赛</a>-->
<if
condition=
"$gid eq $vo['group_id']"
>
<a
href=
"javascript:;"
class=
"join-btn baoming"
>
报名参赛
</a>
<else/>
<a
href=
"javascript:;"
class=
"join-btn bmOtherGroupStep1"
gid=
"{$vo.group_id}"
>
报名参赛
</a>
</if>
</eq>
</div>
</div>
</div>
</div>
</foreach>
</div>
</div>
</div>
...
...
@@ -119,21 +110,21 @@
location
.
reload
();
});
//进入交易
$
(
'.pk-cont-info'
).
click
(
function
(){
location
.
href
=
"{$Think.config.WWW_URL}/Trade/Stock/index/gid/{$Think.config.PRIZE_GROUP_2021}"
;
});
//
$('.pk-cont-info').click(function(){
//
location.href="{$Think.config.WWW_URL}/Trade/Stock/index/gid/{$Think.config.PRIZE_GROUP_2021}";
//
});
//报名参赛
baoming
(
'{$user.userID}'
,
'{$Think.config.WWW_URL}'
);
submitBaoming
(
userType
,
'{$Think.config.WWW_URL}'
);
initPkBtn
(
'{$user.userID}'
,
'{$user.userName}'
);
//
initPkBtn('{$user.userID}','{$user.userName}');
//开始进入支付
$
(
".go-pk-btn"
).
click
(
function
()
{
window
.
location
.
href
=
'{$Think.config.WWW_URL}Lesson/pay2?type=pk&money='
+
$
(
this
).
attr
(
'money'
)
+
'&id='
+
$
(
this
).
attr
(
'phbId'
);
});
//
$(".go-pk-btn").click(function () {
//
window.location.href='{$Think.config.WWW_URL}Lesson/pay2?type=pk&money='+$(this).attr('money')+'&id='+$(this).attr('phbId');
//
});
});
...
...
app/Tpl/Vip/Index/pkList.html
deleted
100644 → 0
View file @
e34c4aad
<!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"
>
<meta
name=
"referrer"
content=
"origin"
>
<title>
{$title}PK晋级_2021模拟炒股大赛_叩富简投
</title>
<meta
name=
"description"
content=
"叩富简投2021模拟炒股大赛之股王争霸赛,赢10万现金大奖。自2007年开赛以来,已累积举办200多期模拟炒股大奖赛。每周、每月都有现金大奖。软件、手机APP、网页同步参赛"
/>
<meta
name=
"keywords"
content=
"2021模拟炒股大赛,模拟炒股大赛,模拟炒股,模拟股票大赛,炒股大赛,模拟炒股有奖大赛,模拟股市大赛,股票模拟大赛,股票大赛,腾讯A股大赛,凤凰炒股大赛"
/>
<link
rel=
"stylesheet"
href=
"__PUBLIC__/css/h5/g2021.css{$Think.config.css_version}"
>
<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>
</head>
<body
class=
"redBg"
>
<php>
$viewFlag=2;
</php>
<include
file=
"top"
/>
<div
class=
"championship-pk-cont wid1100 paddingRelr"
>
<span
class=
"circle-span2 n3"
></span>
<span
class=
"circle-span1 n2"
></span>
<div
class=
"pk-new-cont"
>
<div
class=
"pk-tab-l"
>
<ul>
<li
class=
"tab-li line-b"
><a
href=
"javascript:;"
>
PK最新挑战榜
</a></li>
<li
class=
"tab-li line-b"
><a
href=
"javascript:;"
>
人气挑战榜
</a></li>
<li
class=
"tab-li line-b"
><a
href=
"javascript:;"
>
总挑战榜
</a></li>
<li
class=
"tab-li active"
><a
href=
"javascript:;"
>
Pk挑战记录
</a></li>
</ul>
</div>
<div
class=
"select-box-li user-list pk-list"
>
<div
class=
"box"
>
<form>
<span
class=
"select"
data-s=
""
>
{$lastMonthInt}月挑战榜
</span>
</form>
<span
class=
"select-span"
><img
src=
"__PUBLIC__/images/h5/g2020/select-down.png"
alt=
""
></span>
<!--<div style="clear: both;"></div>-->
</div>
<ul
class=
"sub"
id=
"scroll-2"
>
<foreach
name=
"selectMonth"
key=
'key'
item=
"vo"
>
<li
data=
"{$key}"
class=
"select1"
>
{$vo}挑战榜
</li>
</foreach>
</ul>
</div>
<div
class=
"pk-panel-r right-mar"
>
<!--<div class="record-month-t" style="width:{:count($selectMonth)*121}px;">-->
<!--<ul>-->
<!--<foreach name="selectMonth" key='key' item="vo">-->
<!--<if condition="$key eq $lastMonth">-->
<!--<li data="{$key}" class="month-li active select1">{$vo}挑战榜</li>-->
<!--<else/>-->
<!--<li data="{$key}" class="month-li select1">{$vo}挑战榜</li>-->
<!--</if>-->
<!--</foreach>-->
<!--</ul>-->
<!--</div>-->
<div
class=
"my-pk-lists tab4-list"
id=
"container1"
>
<include
file=
"item2"
/>
</div>
</div>
<div
style=
"clear: both;"
></div>
</div>
</div>
<include
file=
"pop"
/>
<include
file=
"footer"
/>
</body>
<script>
$
(
function
(){
var
userType
=
0
;
var
monthNum
=
$
(
'.month-tab-length .month-btn'
).
length
;
$
(
'.month-tab-length'
).
css
({
'width'
:
monthNum
*
104
+
'px'
});
//点后退时直接返回上一级菜单,防止循环
$
(
'.tab-li'
).
each
(
function
(
i
,
obj
){
$
(
obj
).
click
(
function
(){
if
(
i
==
0
){
window
.
location
.
replace
(
'/index/userList?type=new'
);}
if
(
i
==
1
){
window
.
location
.
replace
(
'/index/userList?type=hot'
);}
if
(
i
==
2
){
window
.
location
.
replace
(
'/index/userList?type=all'
);}
if
(
i
==
3
){
window
.
location
.
replace
(
'/index/pkList'
);}
})
});
//选择月份
$
(
'.select1'
).
click
(
function
(){
$
(
this
).
addClass
(
'active'
).
siblings
().
removeClass
(
'active'
);
$
.
post
(
"/index/pkList"
,
{
month
:
$
(
this
).
attr
(
'data'
)},
function
(
data
)
{
if
(
data
.
status
==
1
)
{
$
(
"#container1"
).
html
(
data
.
data
)
$
(
'.my-pk-cont'
).
click
(
function
(){
location
.
href
=
"{$Think.config.WWW_URL}/Trade/Stock/index/gid/{$Think.config.PRIZE_GROUP_2021}"
;
});
}
});
});
//显示月份的下拉框
$
(
'.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
();
};
});
baoming
(
'{$user.userID}'
,
'{$Think.config.WWW_URL}'
);
submitBaoming
(
userType
,
'{$Think.config.WWW_URL}'
);
});
</script>
</html>
\ No newline at end of file
app/Tpl/Vip/Index/pop.html
View file @
299c7209
...
...
@@ -23,9 +23,24 @@
<div
class=
"form-info-input"
style=
"display: none"
>
<input
type=
"password"
class=
"phone-input"
placeholder=
"请再次输入密码"
maxlength=
"20"
id=
"password2"
autocomplete=
"off"
>
</div>
<input
class=
"form-info-btn"
type=
"button"
value=
"立即报名"
>
<input
class=
"form-info-btn
bmStatus2
"
type=
"button"
value=
"立即报名"
>
</div>
</div>
<div
class=
"submit-info-pop pops web-pop"
style=
"display: none;"
id=
"popBase"
>
<span
class=
"t-pop-close"
><img
src=
"__PUBLIC__/images/h5/g2020/pop-close.png"
alt=
""
></span>
<div
class=
"form-info-box"
>
<div
class=
"form-info-input"
>
<input
type=
"tel"
class=
"phone-input base1"
placeholder=
"请输入手机号"
maxlength=
"11"
>
</div>
<div
class=
"form-info-input"
>
<input
class=
"code-input base2"
placeholder=
"请输入短信验证码"
maxlength=
"6"
>
<span
class=
"part-line"
>
|
</span><input
type=
"button"
class=
"code-btn"
value=
"获取验证码"
>
</div>
<input
class=
"form-info-btn bmOtherGroupStep2"
type=
"button"
value=
"立即报名"
gid=
"0"
>
</div>
</div>
<input
type=
"hidden"
id=
"userType"
/>
<input
id=
"inviterId"
value=
"{$inviterId}"
type=
"hidden"
/>
...
...
@@ -62,29 +77,30 @@
<span
class=
"t-pop-close"
><img
src=
"__PUBLIC__/images/h5/g2020/pop-close.png"
alt=
""
></span>
</div>
<div
class=
"pop-out pops"
style=
"display: none"
id=
"pop_pk"
>
<div
class=
"start-pk-pop"
>
<div
class=
"start-pk-main"
>
<p
class=
"main-msg"
>
PK时间:{$pkTime}
</p>
<div
class=
"pk-info-b"
>
<div
class=
"info-item"
>
<span
class=
"info-item-h"
><img
src=
"{:getPortraitPath($user['userID'], 'small', true)}"
alt=
""
></span>
<p
class=
"info-item-t"
>
{$user.userName}
</p>
</div>
<div
class=
"info-center-vs"
>
<img
src=
"__PUBLIC__/images/h5/g2020/vs-pop.png"
alt=
""
>
</div>
<div
class=
"info-item"
>
<span
class=
"info-item-h"
><img
src=
""
alt=
""
></span>
<p
class=
"info-item-t"
id=
"passiveName"
></p>
</div>
</div>
<p
class=
"main-msg marginT20"
>
获胜即可
<span
class=
"y"
>
返还挑战金、获得年度赛资格
</span></p>
<a
href=
"javascript:;"
class=
"go-pk-btn"
phbId=
"0"
money=
"0"
>
发起挑战 ¥66元
</a>
</div>
</div>
<div
class=
"pop-close"
></div>
</div>
<!--<div class="pop-out pops" style="display: none" id="pop_pk">-->
<!--<div class="start-pk-pop">-->
<!--<div class="start-pk-main">-->
<!--<p class="main-msg">PK时间:{$pkTime}</p>-->
<!--<div class="pk-info-b">-->
<!--<div class="info-item">-->
<!--<span class="info-item-h"><img src="{:getPortraitPath($user['userID'], 'small', true)}" alt=""></span>-->
<!--<p class="info-item-t">{$user.userName}</p>-->
<!--</div>-->
<!--<div class="info-center-vs">-->
<!--<img src="__PUBLIC__/images/h5/g2020/vs-pop.png" alt="">-->
<!--</div>-->
<!--<div class="info-item">-->
<!--<span class="info-item-h"><img src="" alt=""></span>-->
<!--<p class="info-item-t" id="passiveName"></p>-->
<!--</div>-->
<!--</div>-->
<!--<p class="main-msg marginT20">获胜即可<span class="y">返还挑战金、获得年度赛资格</span></p>-->
<!--<a href="javascript:;" class="go-pk-btn" phbId="0" money="0">发起挑战 ¥66元</a>-->
<!--</div>-->
<!--</div>-->
<!--<div class="pop-close"></div>-->
<!--</div>-->
<script>
$
(
function
()
{
//点击重置卡图片
...
...
@@ -130,6 +146,41 @@
});
});
//加入其他的大赛
$
(
".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'
);
clipboard
.
on
(
'success'
,
function
(
e
)
{
layer
.
msg
(
'复制链接成功'
,
1
,
1
);});
clipboard
.
on
(
'error'
,
function
(
e
)
{
layer
.
msg
(
'复制失败,请长按复制'
);});
...
...
app/Tpl/Vip/PkTop/pop.html
View file @
299c7209
...
...
@@ -11,7 +11,7 @@
<input
class=
"code-input"
placeholder=
"请输入短信验证码"
maxlength=
"6"
>
<span
class=
"part-line"
>
|
</span><input
type=
"button"
class=
"code-btn"
value=
"获取验证码"
>
</div>
<input
class=
"form-info-btn"
type=
"button"
value=
"立即报名"
>
<input
class=
"form-info-btn
bmStatus2
"
type=
"button"
value=
"立即报名"
>
</div>
</div>
...
...
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