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
eb8893c8
Commit
eb8893c8
authored
Jul 23, 2024
by
houdong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://123.56.124.1:3022/houdong/cof_vip
parents
880be69d
2b63d2df
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
51 deletions
+25
-51
PkTopAction.class.php
app/Lib/Action/Vip/PkTopAction.class.php
+3
-5
itemTrade.html
app/Tpl/Vip/PkTop/itemTrade.html
+21
-45
phbTrade.html
app/Tpl/Vip/PkTop/phbTrade.html
+1
-1
No files found.
app/Lib/Action/Vip/PkTopAction.class.php
View file @
eb8893c8
...
@@ -703,12 +703,10 @@ class PkTopAction extends IdentityAction
...
@@ -703,12 +703,10 @@ class PkTopAction extends IdentityAction
//查看前n名
//查看前n名
$uids
=
[];
$uids
=
[];
if
(
$order
==
1
)
{
if
(
$order
==
1
)
{
$phb
=
$this
->
getPhb
(
1
,
1
,
'lastweek
up'
);
$phb
=
$this
->
getPhb
(
1
,
50
,
'zong
up'
);
$uids
=
array_column
(
$phb
[
0
],
'uid'
);
$uids
=
array_column
(
$phb
[
0
],
'uid'
);
}
}
$phb
=
D
(
'User'
)
->
getWtList
(
$gInfo
,
$p
,
$pageSize
,
$uids
);
$phb
=
D
(
'User'
)
->
getWtList
(
$gInfo
,
$p
,
$pageSize
,
$uids
);
$wtList
=
$phb
[
0
];
$wtList
=
$phb
[
0
];
//取最新价
//取最新价
$stockHq
=
[];
$stockHq
=
[];
...
@@ -728,11 +726,10 @@ class PkTopAction extends IdentityAction
...
@@ -728,11 +726,10 @@ class PkTopAction extends IdentityAction
$e
[
'now_price'
]
=
$nowPrice
;
$e
[
'now_price'
]
=
$nowPrice
;
$e
[
'zd'
]
=
formatPrice
((
$nowPrice
-
$e
[
'cj_price'
])
/
$e
[
'cj_price'
]
*
100
,
2
)
.
'%'
;
$e
[
'zd'
]
=
formatPrice
((
$nowPrice
-
$e
[
'cj_price'
])
/
$e
[
'cj_price'
]
*
100
,
2
)
.
'%'
;
}
}
}
}
$nick_name_arry
=
getUser
(
array_column
(
$wtList
,
'CD'
),
'nick'
);
$nick_name_arry
=
getUser
(
array_column
(
$wtList
,
'CD'
),
'nick'
);
$tids
=
array_column
(
$wtList
,
'userid'
);
$tids
=
array_column
(
$wtList
,
'userid'
);
$tInfo
=
M
(
"userinfo"
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
([
'uid'
=>
[
'in'
,
$tids
]])
->
cache
(
true
,
60
)
->
getField
(
'uid,new_phb,zongup'
);
$tInfo
=
M
(
"userinfo"
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
([
'uid'
=>
[
'in'
,
$tids
]])
->
cache
(
true
,
60
)
->
getField
(
'uid,new_phb,zongup
,lastweekup
'
);
foreach
(
$wtList
as
&
$n
)
{
foreach
(
$wtList
as
&
$n
)
{
$nick_name
=
$nick_name_arry
[
$n
[
'CD'
]];
$nick_name
=
$nick_name_arry
[
$n
[
'CD'
]];
...
@@ -744,6 +741,7 @@ class PkTopAction extends IdentityAction
...
@@ -744,6 +741,7 @@ class PkTopAction extends IdentityAction
//大赛排名和总盈利率
//大赛排名和总盈利率
$n
[
'phb'
]
=
$tInfo
[
$n
[
'userid'
]][
'new_phb'
];
$n
[
'phb'
]
=
$tInfo
[
$n
[
'userid'
]][
'new_phb'
];
$n
[
'zongup'
]
=
$tInfo
[
$n
[
'userid'
]][
'zongup'
];
$n
[
'zongup'
]
=
$tInfo
[
$n
[
'userid'
]][
'zongup'
];
$n
[
'lastweekup'
]
=
$tInfo
[
$n
[
'userid'
]][
'lastweekup'
];
//点击用户名和股票名跳转需要的参数
//点击用户名和股票名跳转需要的参数
$n
[
'goTradeInfo'
]
=
$this
->
setGoTrade
(
$gInfo
,
$n
[
'CD'
],
$nick_name
,
2
);
$n
[
'goTradeInfo'
]
=
$this
->
setGoTrade
(
$gInfo
,
$n
[
'CD'
],
$nick_name
,
2
);
$n
[
'StockTrade'
]
=
json_encode
([
'name'
=>
$n
[
'stock_name'
],
'code'
=>
$n
[
'stock_code'
],
'market'
=>
$n
[
'stock_type'
],
'zqlb'
=>
$n
[
'zqlb'
]]);
$n
[
'StockTrade'
]
=
json_encode
([
'name'
=>
$n
[
'stock_name'
],
'code'
=>
$n
[
'stock_code'
],
'market'
=>
$n
[
'stock_type'
],
'zqlb'
=>
$n
[
'zqlb'
]]);
...
...
app/Tpl/Vip/PkTop/itemTrade.html
View file @
eb8893c8
<notempty
name=
"wtList"
>
<foreach
name=
"wtList"
key=
'key'
item=
"vo"
>
<notempty
name=
"wtList"
>
<div
class=
"member-des-item"
uid=
"{$vo.userid}"
>
<foreach
name=
"wtList"
key=
'key'
item=
"vo"
>
<p
class=
"item-b1"
>
<div
class=
"member-des-item"
uid=
"{$vo.userid}"
>
<span
class=
"out username"
goTradeInfo=
'{$vo.goTradeInfo}'
>
{$vo.username}
</span>
<p
class=
"item-b1"
>
<eq
name=
"vo.entrust_bs"
value=
"r"
>
买入
<else/>
卖出
</eq>
股票
<span
class=
"out username"
goTradeInfo=
'{$vo.goTradeInfo}'
>
{$vo.username}
</span>
<span
class=
"item-b1-time"
>
{$vo.cj_time}
</span>
<eq
name=
"vo.entrust_bs"
value=
"r"
>
买入
<else/>
卖出
</eq>
股票
</p>
<!-- <span class="out stock_name" goStockDetails='{$vo.StockTrade}'>{$vo.stock_name}</span>-->
<table
cellspacing=
"0"
cellpadding=
"0"
>
<span
class=
"item-b1-time"
>
{$vo.cj_time}
</span>
<tr>
</p>
<td><eq
name=
"vo.entrust_bs"
value=
"r"
>
买入
<else/>
卖出
</eq>
数量:
<span
class=
"num"
>
{$vo.amount|default='-'}
</span></td>
<table
cellspacing=
"0"
cellpadding=
"0"
>
<td>
当前获利:
<span
class=
"<egt name='vo.zd' value='0'>red<else/>green</egt> "
>
{$vo.zd|default='-'}
</span></td>
<tr>
</tr>
<!-- <td><eq name="vo.entrust_bs" value="r">买入<else/>卖出</eq>价:<span class="num">{$vo.cj_price|default='-'}</span></td>-->
</table>
<td><eq
name=
"vo.entrust_bs"
value=
"r"
>
买入
<else/>
卖出
</eq>
数量:
<span
class=
"num"
>
{$vo.amount|default='-'}
</span></td>
<span
class=
"list-check-btn username"
goTradeInfo=
'{$vo.goTradeInfo}'
>
查看
</span>
<td>
当前获利:
<span
class=
"<egt name='vo.zd' value='0'>red<else/>green</egt> "
>
{$vo.zd|default='-'}
</span></td>
<div
class=
"team-no"
>
</tr>
<span
class=
"team-no-span"
>
排名:
<span
class=
"c3"
>
{$vo.phb|default='--'}
</span></span>
<!-- <tr>-->
<span>
周收益率:
<span
class=
"<egt name='vo.lastweekup' value='0'>red<else/>green</egt> "
>
{$vo.lastweekup|default='--'}%
</span></span>
<!-- <lt name="vo.zd" value="0"><td>当前价:<span class="green">{$vo.now_price|default='-'}({$vo.zd|default='-'})</span></td></lt>-->
<!-- <gt name="vo.zd" value="0"><td>当前价:<span class="red">{$vo.now_price|default='-'}({$vo.zd|default='-'})</span></td></gt>-->
<!-- <eq name="vo.zd" value="0"><td>当前价:<span>{$vo.now_price|default='-'}(0.00%)</span></td></eq>-->
<!-- <td>当前价:<span class="<egt name='vo.zd' value='0'>red<else/>green</egt> ">{$vo.now_price|default='-'}({$vo.zd|default='-'})</span></td>-->
<!-- <td>成交价:<span class="num">{$vo.cj_price}</span></td>-->
<!-- </tr>-->
</table>
<span
class=
"list-check-btn username"
goTradeInfo=
'{$vo.goTradeInfo}'
>
查看
</span>
<div
class=
"team-no"
>
<span
class=
"team-no-span"
>
排名:
<span
class=
"c3"
>
{$vo.phb|default='--'}
</span></span>
<!-- <lt name="vo.zongup" value="0"><span>总盈利率:<span class="green">{$vo.zongup|default='-'}%</span></span></lt>-->
<!-- <gt name="vo.zongup" value="0"><span>总盈利率:<span class="red">{$vo.zongup|default='-'}%</span></span></gt>-->
<!-- <eq name="vo.zongup" value="0"><span>总盈利率:<span>0.00%</span></span></eq>-->
<span>
总盈利率:
<span
class=
"<egt name='vo.zongup' value='0'>red<else/>green</egt> "
>
{$vo.zongup|default='--'}%
</span></span>
</div>
</div>
</div>
</div>
</foreach>
</foreach>
<else/>
</notempty>
</notempty>
<script>
<script>
$
(
".username"
).
unbind
();
$
(
".username"
).
unbind
();
$
(
".username"
).
click
(
function
()
{
$
(
".username"
).
click
(
function
()
{
...
...
app/Tpl/Vip/PkTop/phbTrade.html
View file @
eb8893c8
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
<div
class=
"award-tab-panel"
>
<div
class=
"award-tab-panel"
>
<div
class=
"item-filter"
>
<div
class=
"item-filter"
>
<span
class=
"<eq name="
order
"
value=
"0"
>
active
</eq>
">
<a
href=
"/PkTop/phbTrade?order=0"
>
全部
</a></span>
<span
class=
"<eq name="
order
"
value=
"0"
>
active
</eq>
">
<a
href=
"/PkTop/phbTrade?order=0"
>
全部
</a></span>
<span
class=
"<eq name="
order
"
value=
"1"
>
active
</eq>
">
<a
href=
"/PkTop/phbTrade?order=1"
>
只看前
10
0名
</a></span>
<span
class=
"<eq name="
order
"
value=
"1"
>
active
</eq>
">
<a
href=
"/PkTop/phbTrade?order=1"
>
只看前
5
0名
</a></span>
</div>
</div>
<div
class=
"panel-item"
id=
"container"
>
<div
class=
"panel-item"
id=
"container"
>
<include
file=
"itemTrade"
/>
<include
file=
"itemTrade"
/>
...
...
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