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
639bc946
Commit
639bc946
authored
Mar 28, 2023
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
中信大赛
parent
472051a1
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
17 deletions
+32
-17
cofool004.jpg
Public/Home/images/2023ewm/cofool004.jpg
+0
-0
lottery.js
Public/js/lottery.js
+1
-0
config.php
app/Conf/config.php
+1
-0
IndexAction.class.php
app/Lib/Action/Vip/IndexAction.class.php
+3
-2
NiuModel.class.php
app/Lib/Model/NiuModel.class.php
+5
-12
lucky.html
app/Tpl/Vip/Index/lucky.html
+1
-1
resetBalance.html
app/Tpl/Vip/Index/resetBalance.html
+21
-2
No files found.
Public/Home/images/2023ewm/cofool004.jpg
0 → 100644
View file @
639bc946
39.7 KB
Public/js/lottery.js
View file @
639bc946
...
...
@@ -93,6 +93,7 @@ $(function() {
$
(
"#lottery .btn"
).
on
(
'click'
,
function
(
event
)
{
$
.
get
(
"/Index/checkLucky"
,
{},
function
(
data
)
{
//未登录
if
(
data
.
status
==
2
)
{
$
(
".mask"
).
show
();
$
(
"#pop1"
).
show
();
...
...
app/Conf/config.php
View file @
639bc946
...
...
@@ -43,6 +43,7 @@ define('NIU_SAN_ID',24326);
define
(
'NIU_BAI_ID'
,
24327
);
define
(
'HUAXI_ID'
,
24328
);
define
(
'GUOYUAN_ID'
,
24329
);
define
(
'ZHONGXIN_ID'
,
24371
);
return
array
(
'LOG_RECORD'
=>
true
,
// 默认不记录日志
...
...
app/Lib/Action/Vip/IndexAction.class.php
View file @
639bc946
...
...
@@ -381,12 +381,13 @@ class IndexAction extends IdentityAction {
$uc
=
uc_get_user
([
'token'
=>
$mobile
]);
$ucData
=
$uc
[
'data'
];
// var_dump($uc
Data
);exit;
// var_dump($uc);exit;
//没有该用户,开始注册,status0有该用户,111表示用户不存在
if
(
$uc
[
'status'
]
==
111
){
//页面输入的用户名改成昵称
$userName
=
randUsername
(
'股神'
,
$mobile
);
// $password = substr(md5($username), 18);
$password
=
$password
?
$password
:
substr
(
md5
(
$userName
),
18
);
//检查用户输入的用户名是否存在
// $result = uc_user_checkname($userName);
// //用户名已存在
...
...
app/Lib/Model/NiuModel.class.php
View file @
639bc946
...
...
@@ -6,22 +6,15 @@ class NiuModel extends Model{
$STATUS_TXT
=
array
(
'1'
=>
'未开赛'
,
'2'
=>
'进行中'
,
'3'
=>
'已结束'
);
$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
=
[
ZHONGJIN_GROUP
=>
[
WWW_URL
.
'/Zjds'
,
1
],
GUOYUAN_ID
=>
[
M_URL
.
'/Guoyuan'
,
5
],
PRIZE_GROUP_2021
=>
[
'/'
,
7
],
NIU_BAI_ID
=>
[
M_URL
.
'/Niubai'
,
11
],
NIU_STRONG_ID
=>
[
M_URL
.
'/Strong'
,
15
],
ZHONGJIN_GROUP
=>
WWW_URL
.
'/Zjds'
,
GUOYUAN_ID
=>
M_URL
.
'/Guoyuan'
,
PRIZE_GROUP_2021
=>
'/'
,
NIU_BAI_ID
=>
M_URL
.
'/Niubai'
,
NIU_STRONG_ID
=>
M_URL
.
'/Strong'
,
ZHONGXIN_ID
=>
M_URL
.
'/Zhongxin'
,
];
$field
=
'a.group_id,a.name,startTime,endTime,b.cover,introduction,a.web_id,sort_number'
;
$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,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;
foreach
(
$gList
as
$k
=>
&
$g
)
{
...
...
@@ -29,7 +22,7 @@ class NiuModel extends Model{
$g
[
'active'
]
=
$gid
==
PRIZE_GROUP_2021
?
1
:
0
;
$g
[
'joinStatus'
]
=
in_array
(
$gid
,
$ids
)
?
1
:
0
;
$gUrl
=
$MAP
[
$gid
];
$g
[
'url'
]
=
$gUrl
[
0
]
;
$g
[
'url'
]
=
$gUrl
;
// $g['order']=$gUrl[1];
$len
=
$source
==
'm'
?
40
:
60
;
...
...
app/Tpl/Vip/Index/lucky.html
View file @
639bc946
...
...
@@ -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/layer/layer.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/clipboard.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/lottery.js?_=23"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/lottery.js?_=23
56
"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/pk.js{$Think.config.js_version}3232"
></script>
</head>
...
...
app/Tpl/Vip/Index/resetBalance.html
View file @
639bc946
...
...
@@ -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/layer/layer.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>
<body
class=
"redBg"
>
...
...
@@ -34,7 +36,8 @@
</div>
<div
class=
"contact-d"
>
<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>
</div>
</div>
...
...
@@ -54,13 +57,29 @@
<script>
$
(
function
()
{
baoming
(
'{$user.userID}'
,
'{$Think.config.WWW_URL}'
);
var
userType
=
0
;
//点购买按钮
$
(
".buy-card"
).
click
(
function
()
{
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
(){
location
.
href
=
"{$Think.config.WWW_URL}/Trade/Stock/index/gid/{$Think.config.PRIZE_GROUP_2021}"
;
...
...
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