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
6e8d1669
Commit
6e8d1669
authored
Apr 06, 2023
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vip排行榜页面
parent
109ede1b
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
182 additions
and
233 deletions
+182
-233
PkTopAction.class.php
app/Lib/Action/Vip/PkTopAction.class.php
+13
-10
itemOther.html
app/Tpl/Vip/PkTop/itemOther.html
+90
-0
itemWeek.html
app/Tpl/Vip/PkTop/itemWeek.html
+57
-0
phb.html
app/Tpl/Vip/PkTop/phb.html
+22
-223
No files found.
app/Lib/Action/Vip/PkTopAction.class.php
View file @
6e8d1669
...
...
@@ -1360,13 +1360,7 @@ class PkTopAction extends IdentityAction{
$this
->
assign
(
'weixinUrl'
,
'https://eturl.cn/Rhq2wA?is_head=1'
);
//我的成绩
if
(
$userId
){
$myData
=
M
(
"userinfo"
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
([
'uid'
=>
$this
->
GID
.
'X'
.
$userId
])
->
cache
(
true
,
300
)
->
find
();
$myData
[
'userName'
]
=
$this
->
user
[
'userName'
];
$myData
[
'userId'
]
=
$userId
;
$this
->
assign
(
'myData'
,
$myData
);
}
$this
->
setMyData
();
$this
->
assign
(
'gid'
,
$gid
);
$this
->
display
();
...
...
@@ -1432,12 +1426,11 @@ class PkTopAction extends IdentityAction{
$weekPhb
=
$this
->
getWeekPhb
();
$this
->
assign
(
'weekPhb'
,
$weekPhb
[
0
]);
$this
->
assign
(
'otherPhb'
,
$weekPhb
[
0
]);
if
(
$p
==
1
){
//我的排名
$myData
=
M
(
"userinfo"
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
([
'uid'
=>
$this
->
GID
.
'X'
.
$userId
])
->
cache
(
true
,
300
)
->
find
();
$this
->
assign
(
'myData'
,
$myData
);
$this
->
setMyData
();
$this
->
display
();
...
...
@@ -1518,6 +1511,16 @@ class PkTopAction extends IdentityAction{
}
}
public
function
setMyData
(){
$userId
=
$this
->
user
[
'userID'
];
if
(
$userId
){
$myData
=
M
(
"userinfo"
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
([
'uid'
=>
$this
->
GID
.
'X'
.
$userId
])
->
cache
(
true
,
300
)
->
find
();
$myData
[
'userName'
]
=
$this
->
user
[
'userName'
];
$myData
[
'userId'
]
=
$userId
;
$this
->
assign
(
'myData'
,
$myData
);
}
}
}
?>
...
...
app/Tpl/Vip/PkTop/itemOther.html
0 → 100644
View file @
6e8d1669
<notempty
name=
"otherPhb"
>
<foreach
name=
"otherPhb"
key=
'key'
item=
"vo"
>
<div
class=
"top-item <eq name='key' value='0'>top1</eq> <eq name='key' value='1'>top2</eq> <eq name='key' value='2'>top3</eq> "
>
<div
class=
"top-item-info"
>
<div
class=
"user-pk"
>
<div
class=
"head-r-num"
>
<span
class=
"head-ranking"
>
<eq
name=
"p"
value=
"1"
>
<eq
name=
'key'
value=
'0'
><img
src=
"__PUBLIC__/Home/images/g2020/crown1.png"
alt=
""
></eq>
<eq
name=
'key'
value=
'1'
><img
src=
"__PUBLIC__/Home/images/g2020/crown2.png"
alt=
""
></eq>
<eq
name=
'key'
value=
'2'
><img
src=
"__PUBLIC__/Home/images/g2020/crown3.png"
alt=
""
></eq>
</eq>
</span>
<span
class=
"user-head goTradeNow"
pId=
"{$vo.user_id}"
pName=
"{$vo.user_name}"
>
<img
src=
"{:getPortraitPath($vo['user_id'], 'small', true)}"
alt=
""
>
</span>
</div>
<span
class=
"head-r-t goTradeNow"
pId=
"{$vo.user_id}"
pName=
"{$vo.user_name}"
>
{$vo.user_name}111
</span>
<span
class=
"head-r-t"
>
<eq
name=
"vo.robot_user"
value=
"1"
>
<a
href=
"{$vo.robot_url}"
>
<img
src=
"__PUBLIC__/Home/images/robot/robot.png"
style=
"width: 15px;"
alt=
""
>
</a>
</eq>
</span>
</div>
<p
class=
"info-rank-w"
>
<eq
name=
"order"
value=
"zongup"
>
<span
class=
"l"
>
总排行
<span
class=
"y"
>
第{$key+($p-1)*10+1}名
</span></span>
<span
class=
"w"
>
月收益率
<span
class=
"y"
<
egt
name=
'vo.lastmonthup'
value=
'0'
>
style='color:#d80000'
<else/>
style='color:#008E00'
</egt>
>{$vo.lastmonthup}%
</span>
</span>
</eq>
<eq
name=
"order"
value=
"lastmonthup"
>
<span
class=
"l"
>
月排行
<span
class=
"y"
>
第{$key+($p-1)*10+1}名
</span></span>
<span
class=
"w"
>
月收益率
<span
class=
"y"
<
egt
name=
'vo.lastmonthup'
value=
'0'
>
style='color:#d80000'
<else/>
style='color:#008E00'
</egt>
>{$vo.lastmonthup}%
</span>
</span>
</eq>
<eq
name=
"order"
value=
"lastweekup"
>
<span
class=
"l"
>
周排行
<span
class=
"y"
>
第{$key+($p-1)*10+1}名
</span></span>
<span
class=
"w"
>
周收益率
<span
class=
"y"
<
egt
name=
'vo.lastweekup'
value=
'0'
>
style='color:#d80000'
<else/>
style='color:#008E00'
</egt>
>{$vo.lastweekup}%
</span>
</span>
</eq>
<eq
name=
"order"
value=
"lastdayup"
>
<span
class=
"l"
>
日排行
<span
class=
"y"
>
第{$key+($p-1)*10+1}名
</span></span>
<span
class=
"w"
>
日收益率
<span
class=
"y"
<
egt
name=
'vo.lastdayup'
value=
'0'
>
style='color:#d80000'
<else/>
style='color:#008E00'
</egt>
>{$vo.lastdayup}%
</span>
</span>
</eq>
</p>
<p
class=
"info-rank-w"
>
<span
class=
"l"
>
选股成功率
<span
class=
"y"
>
{$vo.successup}%
</span></span>
<span
class=
"w"
>
总收益率
<span
class=
"y"
<
egt
name=
'vo.zongup'
value=
'0'
>
style='color:#d80000'
<else/>
style='color:#008E00'
</egt>
>{$vo.zongup}%
</span>
</span>
</p>
</div>
</div>
</foreach>
<else/>
<div
class=
"no-data"
>
<img
class=
"no-data-img"
src=
"__PUBLIC__/Home/images/group/cc-nodata.png"
alt=
""
>
<p
class=
"no-data-msg"
>
当前没有盈利率排行
</p>
</div>
</notempty>
<script>
//点用户名和头像跳转到该大赛的旧的交易页
flag
=
0
;
$
(
'.goTradeNow'
).
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
;
// alert(res.data);
if
(
mfrom
[
1
]
>
0
){
AppBridge
.
goTrade
(
res
.
data
);
}
}
});
});
</script>
app/Tpl/Vip/PkTop/itemWeek.html
0 → 100644
View file @
6e8d1669
<notempty
name=
"weekPhb"
>
<foreach
name=
"weekPhb"
key=
'key'
item=
"vo"
>
<div
class=
"award-tab-list"
>
<div
class=
"head-r-num"
>
<span
class=
"head-ranking"
>
<eq
name=
"p"
value=
"1"
>
<eq
name=
'key'
value=
'0'
><img
src=
"__PUBLIC__/Home/images/g2020/crown1.png"
alt=
""
></eq>
<eq
name=
'key'
value=
'1'
><img
src=
"__PUBLIC__/Home/images/g2020/crown2.png"
alt=
""
></eq>
<eq
name=
'key'
value=
'2'
><img
src=
"__PUBLIC__/Home/images/g2020/crown3.png"
alt=
""
></eq>
</eq>
</span>
<span
class=
"user-head"
pId=
"{$vo.user_id}"
pName=
"{$vo.user_name}"
>
<img
src=
"{:getPortraitPath($vo['user_id'], 'small', true)}"
alt=
""
>
</span>
<span
class=
"head-r-t"
pId=
"{$vo.user_id}"
pName=
"{$vo.user_name}"
>
{$vo.user_name}股神03-07
</span>
</div>
<div
class=
"info-data"
>
<table
cellspacing=
"0"
cellpadding=
"0"
>
<tr
class=
"data-num"
>
<td
class=
"num red"
style=
"text-align: left;"
>
第1名
</td>
<td
class=
"num red"
>
19.15%
</td>
<td
class=
"num"
style=
"text-align: right;"
>
0%
</td>
</tr>
<tr
class=
"data-title"
>
<td
class=
"title"
style=
"text-align: left;"
>
周排行
</td>
<td
class=
"title"
>
周盈利率
</td>
<td
class=
"title"
style=
"text-align: right;"
>
月周转率
</td>
</tr>
</table>
</div>
</div>
</foreach>
</notempty>
<script>
//点用户名和头像跳转到该大赛的旧的交易页
flag
=
0
;
$
(
'.goTradeNow'
).
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
;
// alert(res.data);
if
(
mfrom
[
1
]
>
0
){
AppBridge
.
goTrade
(
res
.
data
);
}
}
});
});
</script>
app/Tpl/Vip/PkTop/
awardList
.html
→
app/Tpl/Vip/PkTop/
phb
.html
View file @
6e8d1669
This diff is collapsed.
Click to expand it.
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