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
4289a9d9
Commit
4289a9d9
authored
Jul 05, 2023
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报名成功后加1.88元弹窗
parent
0142256c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
20 deletions
+21
-20
PkTopAction.class.php
app/Lib/Action/Vip/PkTopAction.class.php
+4
-7
UserModel.class.php
app/Lib/Model/UserModel.class.php
+2
-7
pop.html
app/Tpl/Vip/Index/pop.html
+10
-1
itemTrade.html
app/Tpl/Vip/PkTop/itemTrade.html
+3
-3
pop.html
app/Tpl/Vip/PkTop/pop.html
+2
-2
No files found.
app/Lib/Action/Vip/PkTopAction.class.php
View file @
4289a9d9
...
...
@@ -49,6 +49,7 @@ class PkTopAction extends IdentityAction{
$this
->
assign
(
'resetLeftNum'
,
$leftNum
);
}
}
//首页
// public function indexOld() {
...
...
@@ -1300,10 +1301,8 @@ class PkTopAction extends IdentityAction{
public
function
phbTrade
()
{
$p
=
I
(
'p'
,
1
);
$pageSize
=
10
;
// $order=I('order','zongup');
// $this->assign('order',$order);
$gInfo
=
D
(
'Group'
)
->
getGroup
(
$this
->
GID
);
$phb
=
D
(
'User'
)
->
get
Entru
st
(
$gInfo
,
$p
,
$pageSize
);
$phb
=
D
(
'User'
)
->
get
WtLi
st
(
$gInfo
,
$p
,
$pageSize
);
$wtList
=
$phb
[
0
];
//取最新价
...
...
@@ -1317,17 +1316,15 @@ class PkTopAction extends IdentityAction{
$stockHq
=
$res
;
}
foreach
(
$wtList
as
$key
=>
&
$e
)
{
foreach
(
$wtList
as
&
$e
)
{
$stockCodeType
=
strtolower
(
$e
[
'stock_type'
]
.
$e
[
'stock_code'
]);
$quo
=
$stockHq
[
$stockCodeType
];
if
(
$quo
){
//根据成交价和最新价算涨跌
$nowPrice
=
formatPrice
((
$quo
[
'nowprice'
]
>
0
?
$quo
[
'nowprice'
]
:
$quo
[
'closePrice'
]));
$e
[
'now_price'
]
=
$nowPrice
;
$e
[
'zd'
]
=
formatPrice
((
$nowPrice
-
$e
[
'cj_price'
])
/
$e
[
'cj_price'
]
*
100
,
2
)
.
'%'
;
}
// $userids[] =$e['CD'];
}
$nick_name_arry
=
getUser
(
array_column
(
$wtList
,
'CD'
),
'nick'
);
$tids
=
array_column
(
$wtList
,
'userid'
);
...
...
@@ -1340,7 +1337,7 @@ class PkTopAction extends IdentityAction{
$n
[
'entrust_bs'
]
=
$n
[
'entrust_bs'
]
==
'r'
?
'买入'
:
'卖出'
;
$n
[
'price'
]
=
number_format
(
$n
[
'price'
],
2
,
'.'
,
''
);
$n
[
'cj_price'
]
=
number_format
(
$n
[
'cj_price'
],
2
,
'.'
,
''
);
// $n['phb'] =$phbs[$n['userid']];
//大赛排名和总盈利率
$n
[
'phb'
]
=
$tInfo
[
$n
[
'userid'
]][
'new_phb'
];
$n
[
'zongup'
]
=
$tInfo
[
$n
[
'userid'
]][
'zongup'
];
...
...
app/Lib/Model/UserModel.class.php
View file @
4289a9d9
...
...
@@ -97,9 +97,9 @@ class UserModel extends Model{
}
}
//从委托表和历史委托表取委托数据
public
function
getEntrust
(
$gInfo
,
$p
=
1
,
$pageSize
=
10
)
{
//从委托表和历史委托表取委托数据
public
function
getWtList
(
$gInfo
,
$p
=
1
,
$pageSize
=
10
)
{
// if($userList===0){
// $userList=$this->getUserList($gInfo);
// }
...
...
@@ -161,13 +161,8 @@ class UserModel extends Model{
$total
=
intval
(
$total
)
+
intval
(
$hisTotal
);
}
}
return
[
$entrustList
,
$total
?
$total
:
0
];
}
...
...
app/Tpl/Vip/Index/pop.html
View file @
4289a9d9
...
...
@@ -42,13 +42,17 @@
<!--报名成功2021-->
<!--<?php $weixin___=['cofool123'];$weixin___=$weixin[rand(0,0)];?>-->
<div
class=
"camp-apply-pop pops dialog-pop no-bg"
style=
"display: none"
id=
"joinSucc"
>
<div
class=
"pop-main"
>
<img
src=
"__PUBLIC__/images/2023/popImg1.png"
alt=
""
>
<img
id=
"contactImg"
src=
"__PUBLIC__/images/2023/popImgBtn.png"
alt=
""
>
</div>
<span
class=
"t-pop-close"
refresh=
"1"
><img
src=
"__PUBLIC__/images/h5/g2020/pop-close.png"
alt=
""
></span>
<span
class=
"t-pop-close__"
id=
'showStepTwo'
style=
"position: absolute;cursor: pointer;right: 25px;top: 15px;"
refresh=
"1"
>
<img
src=
"__PUBLIC__/images/h5/g2020/pop-close.png"
alt=
""
>
</span>
</div>
<div
class=
"camp-apply-pop pops dialog-pop"
style=
"display: none"
id=
"joinSuccStepTwp"
>
<div
class=
"pop-main"
>
<p
class=
"main-msg-i1"
>
微信咨询
</p>
...
...
@@ -128,6 +132,11 @@
<script>
$
(
function
()
{
$
(
'#showStepTwo,#contactImg'
).
click
(
function
(){
$
(
'#joinSucc'
).
hide
();
$
(
'#joinSuccStepTwp'
).
show
();
})
//点击右边侧边栏的重置卡图片
$
(
".left-card1"
).
click
(
function
()
{
if
(
'{$user.userID}'
==
''
){
...
...
app/Tpl/Vip/PkTop/itemTrade.html
View file @
4289a9d9
...
...
@@ -2,7 +2,7 @@
<notempty
name=
"wtList"
>
<foreach
name=
"wtList"
key=
'key'
item=
"vo"
>
<div
class=
"member-des-item"
>
<div
class=
"member-des-item"
uid=
"{$vo.userid}"
>
<p
class=
"item-b1"
>
<span
class=
"out username"
goTradeInfo=
'{$vo.goTradeInfo}'
>
{$vo.username}
</span>
<eq
name=
"vo.entrust_bs"
value=
"r"
>
买入
<else/>
卖出
</eq>
...
...
@@ -25,12 +25,12 @@
</tr>
</table>
<div
class=
"team-no"
>
<span
class=
"team-no-span"
>
成员背景:
<span
class=
"c3"
>
大赛排名No.{$vo.phb|default='-'}
</span></span>
<span
class=
"team-no-span"
>
成员背景:
<span
class=
"c3"
>
大赛排名No.{$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>
<span>
总盈利率:
<span
class=
"<egt name='vo.zongup' value='0'>red<else/>green</egt> "
>
{$vo.zongup|default='-
-
'}%
</span></span>
</div>
</div>
...
...
app/Tpl/Vip/PkTop/pop.html
View file @
4289a9d9
...
...
@@ -44,8 +44,8 @@
<p
class=
"main-code-img"
>
<!--<button class="camp-copyBtn copybtn" data-clipboard-action="copy" data-clipboard-text="{$weixin}" >一键复制微信号</button>-->
<!-- <a href="{:M_URL}/Zjds" target="_blank">-->
<button
class=
"camp-copyBtn
copybtn"
>
进入微信一键添加
</button>
<!-- </a>-->
<button
class=
"camp-copyBtn
jumpWx"
weixinUrl=
"https://eturl.cn/Rhq2wA?is_head=1"
>
进入微信一键添加
</button>
<!-- </a>-->
</p>
<!--<p class="pop-sub1">方法:复制微信号-打开微信-通讯录-添加好友</p>-->
</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