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
0cce3469
Commit
0cce3469
authored
Apr 27, 2023
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报名状态修改成m,pc一致
parent
1c98a136
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
21 deletions
+26
-21
IndexAction.class.php
app/Lib/Action/Vip/IndexAction.class.php
+3
-2
PkTopAction.class.php
app/Lib/Action/Vip/PkTopAction.class.php
+3
-1
myItem.html
app/Tpl/Vip/PkTop/myItem.html
+20
-18
No files found.
app/Lib/Action/Vip/IndexAction.class.php
View file @
0cce3469
...
@@ -257,7 +257,8 @@ class IndexAction extends IdentityAction {
...
@@ -257,7 +257,8 @@ class IndexAction extends IdentityAction {
}
}
//首页滚动的公告
//首页滚动的公告
public
function
getGonggao
()
{
public
function
getGonggao
()
{
$gonggao
=
M
(
'PktopGonggao'
)
->
where
(
array
(
'view_flag'
=>
1
))
->
order
(
'add_time desc'
)
->
limit
(
5
)
->
select
();
// $gonggao=M('PktopGonggao')->where(array('view_flag'=>1))->order('add_time desc')->limit(5)->select();
$gonggao
=
M
(
'Gonggao'
)
->
where
([
'group_id'
=>
PRIZE_GROUP_2021
,
'view_flag'
=>
1
])
->
order
(
'add_time desc'
)
->
limit
(
5
)
->
select
();
foreach
(
$gonggao
as
$k
=>
&
$v
)
{
foreach
(
$gonggao
as
$k
=>
&
$v
)
{
$v
[
'url'
]
=
str_replace
(
'H5/threadDetail'
,
'Thread/detail'
,
$v
[
'url'
]);
$v
[
'url'
]
=
str_replace
(
'H5/threadDetail'
,
'Thread/detail'
,
$v
[
'url'
]);
}
}
...
@@ -1268,7 +1269,7 @@ class IndexAction extends IdentityAction {
...
@@ -1268,7 +1269,7 @@ class IndexAction extends IdentityAction {
$dsStatus
=
[];
$dsStatus
=
[];
$ids
=
D
(
'Group'
)
->
getGroupCache
(
$userId
);
$ids
=
D
(
'Group'
)
->
getGroupCache
(
$userId
);
//中金大赛
//中金大赛
$bmData
=
M
(
'Zhongjin'
)
->
where
([
'user_id'
=>
$userId
])
->
order
(
'
add
_time desc'
)
->
find
();
$bmData
=
M
(
'Zhongjin'
)
->
where
([
'user_id'
=>
$userId
])
->
order
(
'
shenhe
_time desc'
)
->
find
();
$dsStatus
[
'zjStatus'
]
=
$bmData
[
'status'
]
==
1
?
1
:
0
;
$dsStatus
[
'zjStatus'
]
=
$bmData
[
'status'
]
==
1
?
1
:
0
;
$group
=
D
(
'Group'
)
->
getGroup
(
ZHONGJIN_GROUP
);
$group
=
D
(
'Group'
)
->
getGroup
(
ZHONGJIN_GROUP
);
$dsStatus
[
'zjStartTime'
]
=
date
(
'Y-m-d'
,
$group
[
'startTime'
]);
$dsStatus
[
'zjStartTime'
]
=
date
(
'Y-m-d'
,
$group
[
'startTime'
]);
...
...
app/Lib/Action/Vip/PkTopAction.class.php
View file @
0cce3469
...
@@ -972,7 +972,9 @@ class PkTopAction extends IdentityAction{
...
@@ -972,7 +972,9 @@ class PkTopAction extends IdentityAction{
//首页滚动的公告
//首页滚动的公告
public
function
getGonggao
()
{
public
function
getGonggao
()
{
$gonggao
=
M
(
'pktop_gonggao'
,
'cofool_'
,
C
(
'DB_CONFIG_DEMO'
))
->
where
(
array
(
'view_flag'
=>
1
))
->
order
(
'add_time desc'
)
->
limit
(
5
)
->
select
();
// $gonggao=M('pktop_gonggao','cofool_', C('DB_CONFIG_DEMO'))->where(array('view_flag'=>1))->order('add_time desc')->limit(5)->select();
$gonggao
=
M
(
'Gonggao'
)
->
where
([
'group_id'
=>
PRIZE_GROUP_2021
,
'view_flag'
=>
1
])
->
order
(
'add_time desc'
)
->
limit
(
5
)
->
select
();
return
$gonggao
;
return
$gonggao
;
}
}
...
...
app/Tpl/Vip/PkTop/myItem.html
View file @
0cce3469
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<td
class=
"num"
>
--
</td>
<td
class=
"num"
>
--
</td>
<else/>
<else/>
<gt
name=
"myData.lastweekup"
value=
"0"
><td
class=
"num red"
>
{$myData.lastweekup}%
</td></gt>
<gt
name=
"myData.lastweekup"
value=
"0"
><td
class=
"num red"
>
{$myData.lastweekup}%
</td></gt>
<eq
name=
"myData.lastweekup"
value=
"0"
><td
class=
"num "
>
{$myData.lastweekup}
%
</td></eq>
<eq
name=
"myData.lastweekup"
value=
"0"
><td
class=
"num "
>
0.00
%
</td></eq>
<lt
name=
"myData.lastweekup"
value=
"0"
><td
class=
"num "
style=
"color:#009933"
>
{$myData.lastweekup}%
</td></lt>
<lt
name=
"myData.lastweekup"
value=
"0"
><td
class=
"num "
style=
"color:#009933"
>
{$myData.lastweekup}%
</td></lt>
</empty>
</empty>
...
@@ -31,16 +31,17 @@
...
@@ -31,16 +31,17 @@
</div>
</div>
<notempty
name=
"myData.lastweekup"
>
<gt
name=
"myData['lastweekup']"
value=
"0"
>
<gt
name=
"myData['lastweekup']"
value=
"0"
>
<gt
name=
"myData['monthzzl']"
value=
"0"
>
<gt
name=
"myData['monthzzl']"
value=
"0"
>
<span
class=
"tip-msg"
>
保持当前收益,奖金稳定到手
</span>
<span
class=
"tip-msg"
>
保持当前收益,奖金稳定到手
</span>
<else/>
<span
class=
"tip-msg"
>
距离获得奖金只差 交易一笔
</span>
</gt>
<else/>
<else/>
<span
class=
"tip-msg"
>
距离获得奖金只差 交易一笔
</span>
<span
class=
"tip-msg"
style=
"width: 193px;right: 29%;"
>
加油,周盈利为正即可瓜分奖金
</span>
</gt>
</gt>
<else/>
</notempty>
<span
class=
"tip-msg"
style=
"width: 193px;right: 29%;"
>
加油,周盈利为正即可瓜分奖金
</span>
</gt>
</div>
</div>
</notempty>
</notempty>
...
@@ -68,7 +69,7 @@
...
@@ -68,7 +69,7 @@
<td
class=
"num"
>
--
</td>
<td
class=
"num"
>
--
</td>
<else/>
<else/>
<gt
name=
"myData.lastweekup"
value=
"0"
><td
class=
"num red"
>
{$myData.lastweekup}%
</td></gt>
<gt
name=
"myData.lastweekup"
value=
"0"
><td
class=
"num red"
>
{$myData.lastweekup}%
</td></gt>
<eq
name=
"myData.lastweekup"
value=
"0"
><td
class=
"num "
>
{$myData.lastweekup}
%
</td></eq>
<eq
name=
"myData.lastweekup"
value=
"0"
><td
class=
"num "
>
0.00
%
</td></eq>
<lt
name=
"myData.lastweekup"
value=
"0"
><td
class=
"num"
style=
"color:#009933"
>
{$myData.lastweekup}%
</td></lt>
<lt
name=
"myData.lastweekup"
value=
"0"
><td
class=
"num"
style=
"color:#009933"
>
{$myData.lastweekup}%
</td></lt>
</empty>
</empty>
<td
class=
"num"
style=
"text-align: right;"
>
<td
class=
"num"
style=
"text-align: right;"
>
...
@@ -83,16 +84,17 @@
...
@@ -83,16 +84,17 @@
</div>
</div>
<notempty
name=
"myData.lastweekup"
>
<gt
name=
"myData['lastweekup']"
value=
"0"
>
<gt
name=
"myData['lastweekup']"
value=
"0"
>
<gt
name=
"myData['monthzzl']"
value=
"0"
>
<gt
name=
"myData['monthzzl']"
value=
"0"
>
<span
class=
"tip-msg"
>
保持当前收益,奖金稳定到手
</span>
<span
class=
"tip-msg"
>
保持当前收益,奖金稳定到手
</span>
<else/>
<span
class=
"tip-msg"
>
距离获得奖金只差 交易一笔
</span>
</gt>
<else/>
<else/>
<span
class=
"tip-msg"
>
距离获得奖金只差 交易一笔
</span>
<span
class=
"tip-msg"
style=
"width: 193px;left: 3%;top: 58px;"
>
加油,周盈利为正即可瓜分奖金
</span>
</gt>
</gt>
<else/>
</notempty>
<span
class=
"tip-msg"
style=
"width: 193px;left: 3%;top: 58px;"
>
加油,周盈利为正即可瓜分奖金
</span>
</gt>
<a
href=
"{:M_URL}/Box#3"
class=
"reset-btn"
><img
src=
"__PUBLIC__/images/2023/reset-img.png"
alt=
""
>
重置模拟金
</a>
<a
href=
"{:M_URL}/Box#3"
class=
"reset-btn"
><img
src=
"__PUBLIC__/images/2023/reset-img.png"
alt=
""
>
重置模拟金
</a>
</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