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
84b5a94a
Commit
84b5a94a
authored
Apr 07, 2023
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vip大赛
parent
25fd5e99
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
79 additions
and
34 deletions
+79
-34
IndexAction.class.php
app/Lib/Action/Vip/IndexAction.class.php
+18
-10
PkTopAction.class.php
app/Lib/Action/Vip/PkTopAction.class.php
+5
-3
phb.html
app/Tpl/Vip/Index/phb.html
+31
-7
phbOther.html
app/Tpl/Vip/PkTop/phbOther.html
+13
-7
phbWeek.html
app/Tpl/Vip/PkTop/phbWeek.html
+12
-7
No files found.
app/Lib/Action/Vip/IndexAction.class.php
View file @
84b5a94a
...
...
@@ -225,17 +225,24 @@ class IndexAction extends IdentityAction {
$suffix
=
D
(
'Userinfo'
)
->
getTable
(
$this
->
GID
);
$table
=
$suffix
?
'mncg_archive.userinfo'
.
$suffix
:
'mncg.userinfo a'
;
$myInfo
=
M
(
$table
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
([
'uid'
=>
$tid
])
->
cache
(
true
,
cacheTime
())
->
find
();
//取周排行
$where
=
[
'sex'
=>
$this
->
GID
,
'monthzzl'
=>
[
'gt'
,
0
],
'lastweekup'
=>
[
'gt'
,
0
],
'zt'
=>
1
];
$weekData
=
M
(
$table
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
(
$where
)
->
order
(
'lastweekup desc'
)
->
cache
(
true
,
cacheTime
())
->
select
();
foreach
(
$weekData
as
$k
=>
$v
)
{
if
(
$v
[
'uid'
]
==
$this
->
GID
.
'X'
.
$userId
){
$myInfo
[
'weekPhb'
]
=
$k
+
1
;
break
;
//->cache(true,cacheTime())
$myData
=
M
(
$table
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
([
'uid'
=>
$tid
])
->
find
();
if
(
!
empty
(
$myData
)){
$myData
[
'userId'
]
=
$userId
;
$myData
[
'userName'
]
=
$this
->
user
[
'userName'
];
//取周排行
$where
=
[
'sex'
=>
$this
->
GID
,
'monthzzl'
=>
[
'gt'
,
0
],
'lastweekup'
=>
[
'gt'
,
0
],
'zt'
=>
1
];
//->cache(true,cacheTime())
$weekData
=
M
(
$table
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
(
$where
)
->
order
(
'lastweekup desc'
)
->
select
();
foreach
(
$weekData
as
$k
=>
$v
)
{
if
(
$v
[
'uid'
]
==
$tid
){
$myData
[
'weekPhb'
]
=
$k
+
1
;
break
;
}
}
}
$this
->
assign
(
'myInfo'
,
$myInfo
);
$this
->
assign
(
'myData'
,
$myData
);
}
$this
->
display
();
...
...
@@ -713,7 +720,8 @@ class IndexAction extends IdentityAction {
//大赛排行榜页面
public
function
ranking
(
$orderInt
,
$p
,
$pageSize
){
$MATCH
=
array
(
1
=>
'zongup'
,
2
=>
'all_balance'
,
3
=>
'lastweekup'
,
4
=>
'lastmonthup'
,
5
=>
'successup'
,
6
=>
'zhouzup'
,
7
=>
'cangwei'
,
8
=>
'huiche'
);
// $MATCH=array(1=>'zongup',2=>'all_balance',3=>'lastweekup',4=>'lastmonthup',5=>'successup',6=>'zhouzup',7=>'cangwei',8=>'huiche');
$MATCH
=
[
1
=>
'zongup'
,
2
=>
'all_balance'
,
3
=>
'lastweekup'
,
4
=>
'lastmonthup'
,
5
=>
'successup'
,
6
=>
'monthzzl'
,
7
=>
'cangwei'
,
8
=>
'huiche'
];
$order
=
$MATCH
[
$orderInt
]
.
' desc'
;
...
...
app/Lib/Action/Vip/PkTopAction.class.php
View file @
84b5a94a
...
...
@@ -1546,12 +1546,14 @@ class PkTopAction extends IdentityAction{
$tid
=
$this
->
GID
.
'X'
.
$userId
;
$myData
=
M
(
"userinfo"
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
([
'uid'
=>
$tid
])
->
cache
(
true
,
300
)
->
find
();
if
(
!
empty
(
$myData
)){
$myData
[
'userName'
]
=
$this
->
user
[
'userName'
];
$myData
[
'userId'
]
=
$userId
;
$weekData
=
M
(
"userinfo"
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
([
'sex'
=>
$this
->
GID
,
'new_phb'
=>
[
'gt'
,
0
],
'zt'
=>
1
])
->
order
(
'lastweekup desc'
)
->
cache
(
true
,
300
)
->
select
();
$myData
[
'userName'
]
=
$this
->
user
[
'userName'
];
$where
=
[
'sex'
=>
$this
->
GID
,
'monthzzl'
=>
[
'gt'
,
0
],
'lastweekup'
=>
[
'gt'
,
0
],
'zt'
=>
1
];
$weekData
=
M
(
"userinfo"
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
(
$where
)
->
order
(
'lastweekup desc'
)
->
cache
(
true
,
300
)
->
select
();
foreach
(
$weekData
as
$k
=>
$v
)
{
if
(
$v
[
'uid'
]
==
$tid
){
$myData
[
'phb'
]
=
$k
+
1
;
$myData
[
'weekPhb'
]
=
$k
+
1
;
break
;
}
}
}
...
...
app/Tpl/Vip/Index/phb.html
View file @
84b5a94a
...
...
@@ -49,17 +49,41 @@
<div
class=
"my-info-data award-list"
>
<span
class=
"span-t"
>
我的排名
</span>
<div
class=
"head-r-num"
>
<span
class=
"user-head"
pId__=
"{$vo.user_id}"
pName__=
"{$vo.user_name}"
>
<span
class=
"user-head"
>
<img
src=
"{:getPortraitPath($vo['user_id'], 'small', true)}"
alt=
""
>
</span>
<span
class=
"head-r-t"
pId__=
"{$myData.user_id}"
pName=
"{$myData.userName}"
>
{$myData.userName}111
</span>
<span
class=
"head-r-t"
>
{$myData.userName}
</span>
</div>
<div
class=
"info-data"
>
<div
class=
"data"
><span
class=
"title"
>
周排行:
</span><span
class=
"num red"
>
第1名
</span></div>
<div
class=
"data"
><span
class=
"title"
>
周盈利率:
</span><span
class=
"num red"
>
19.15%
</span></div>
<div
class=
"data"
><span
class=
"title"
>
月周转率:
</span><span
class=
"num"
>
0%
</span></div>
<div
class=
"data"
><span
class=
"title"
>
周排行:
</span>
<span
class=
"num red"
>
<empty
name=
"myData.weekPhb"
>
--
<else/>
第{$myData.weekPhb}名
</empty>
</span>
</div>
<div
class=
"data"
><span
class=
"title"
>
周盈利率:
</span>
<empty
name=
"myData.lastweekup"
>
<span
class=
"num "
>
--
</span>
<else/>
<gt
name=
"myData.lastweekup"
value=
"0"
><span
class=
"num red"
>
{$myData.lastweekup}%
</span></gt>
<eq
name=
"myData.lastweekup"
value=
"0"
><span
class=
"num "
>
{$myData.lastweekup}%
</span></eq>
<lt
name=
"myData.lastweekup"
value=
"0"
><span
class=
"num green"
>
{$myData.lastweekup}%
</span></lt>
</empty>
</div>
<div
class=
"data"
><span
class=
"title"
>
月周转率:
</span>
<span
class=
"num"
>
<empty
name=
"myData.monthzzl"
>
--
<else/>
{$myData.monthzzl}%
</empty>
</span>
</div>
</div>
<span
class=
"tip-msg2"
>
距离获得奖金只差 交易一笔
</span>
<if
condition=
"empty($myData['monthzzl']) or $myData['monthzzl'] eq 0"
>
<span
class=
"tip-msg2"
>
距离获得奖金只差 交易一笔
</span>
</if>
<if
condition=
"!empty($myData['monthzzl']) and $myData['lastweekup'] lt 0"
>
<span
class=
"tip-msg2"
style=
"right:30%;"
>
加油,周盈利为正即可瓜分奖金
</span>
</if>
<if
condition=
"$myData['lastweekup'] gt 0 and $myData['monthzzl'] gt 0"
>
<span
class=
"tip-msg2"
style=
"right:30%;"
>
保持当前收益,奖金稳定到手
</span>
</if>
</div>
<div
class=
"contest-item ranking-list"
style=
"margin-top: 25px;"
>
<div
class=
"table-data-des"
>
...
...
@@ -173,7 +197,7 @@
>{$vo.lastmonthup|default=0}%
</td>
<td
class=
"td-cgl plus"
>
{$vo.successup|default=0}%
</td>
<td
class=
"td-zzz plus"
>
{$vo.
zhouzup
|default=0}%
</td>
<td
class=
"td-zzz plus"
>
{$vo.
monthzzl
|default=0}%
</td>
<td
class=
"td-cw plus"
>
<if
condition=
"$vo[cangwei] gt 99"
>
满仓
<elseif
condition=
"$vo[cangwei] eq 0"
/>
空仓
...
...
app/Tpl/Vip/PkTop/phbOther.html
View file @
84b5a94a
...
...
@@ -98,12 +98,18 @@
<table
cellspacing=
"0"
cellpadding=
"0"
>
<tr
class=
"data-num"
>
<td
class=
"num red"
style=
"text-align: left;"
>
<empty
name=
"myData.phb"
>
--
<else/>
第{$myData.phb}名
</empty>
<empty
name=
"myData.weekPhb"
>
--
<else/>
第{$myData.weekPhb}名
</empty>
</td>
<empty
name=
"myData.lastweekup"
><td
class=
"num "
>
--
</td>
<else/>
<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>
<lt
name=
"myData.lastweekup"
value=
"0"
><td
class=
"num green"
>
{$myData.lastweekup}%
</td></lt>
</empty>
<td
class=
"num"
style=
"text-align: right;"
>
<empty
name=
"myData.monthzzl"
>
--
<else/>
{$myData.monthzzl}%
</empty>
</td>
<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>
<lt
name=
"myData.lastweekup"
value=
"0"
><td
class=
"num green"
>
{$myData.lastweekup}%
</td></lt>
<td
class=
"num"
style=
"text-align: right;"
>
{$myData.monthzzl}%
</td>
</tr>
<tr
class=
"data-title"
>
<td
class=
"title"
style=
"text-align: left;"
>
周排行
</td><td
class=
"title"
>
周盈利率
</td>
...
...
@@ -111,9 +117,9 @@
</tr>
</table>
</div>
<
eq
name=
"myData.monthzzl"
value=
"
0"
>
<
if
condition=
"empty(myData['monthzzl']) or myData['monthzzl'] eq
0"
>
<span
class=
"tip-msg"
>
距离获得奖金只差 交易一笔
</span>
</
eq
>
</
if
>
<a
href=
"{:M_URL}/Box#3"
class=
"reset-btn"
><img
src=
"__PUBLIC__/images/2023/reset-img.png"
alt=
""
>
重置模拟金
</a>
</div>
</notempty>
...
...
app/Tpl/Vip/PkTop/phbWeek.html
View file @
84b5a94a
...
...
@@ -98,12 +98,17 @@
<table
cellspacing=
"0"
cellpadding=
"0"
>
<tr
class=
"data-num"
>
<td
class=
"num red"
style=
"text-align: left;"
>
<empty
name=
"myData.phb"
>
--
<else/>
第{$myData.phb}名
</empty>
<empty
name=
"myData.weekPhb"
>
--
<else/>
第{$myData.weekPhb}名
</empty>
</td>
<empty
name=
"myData.lastweekup"
><td
class=
"num"
>
--
</td>
<else/>
<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>
<lt
name=
"myData.lastweekup"
value=
"0"
><td
class=
"num green"
>
{$myData.lastweekup}%
</td></lt>
</empty>
<td
class=
"num"
style=
"text-align: right;"
>
<empty
name=
"myData.monthzzl"
>
--
<else/>
{$myData.monthzzl}%
</empty>
</td>
<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>
<lt
name=
"myData.lastweekup"
value=
"0"
><td
class=
"num green"
>
{$myData.lastweekup}%
</td></lt>
<td
class=
"num"
style=
"text-align: right;"
>
{$myData.monthzzl}%
</td>
</tr>
<tr
class=
"data-title"
>
<td
class=
"title"
style=
"text-align: left;"
>
周排行
</td><td
class=
"title"
>
周盈利率
</td>
...
...
@@ -111,9 +116,9 @@
</tr>
</table>
</div>
<
eq
name=
"myData.monthzzl"
value=
"
0"
>
<
if
condition=
"empty(myData['monthzzl']) or myData['monthzzl'] eq
0"
>
<span
class=
"tip-msg"
>
距离获得奖金只差 交易一笔
</span>
</
eq
>
</
if
>
<a
href=
"{:M_URL}/Box#3"
class=
"reset-btn"
><img
src=
"__PUBLIC__/images/2023/reset-img.png"
alt=
""
>
重置模拟金
</a>
</div>
</notempty>
...
...
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