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
30be2eef
Commit
30be2eef
authored
Aug 21, 2024
by
houyadong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排行榜跳转个人主页指定收益类型
parent
1162381f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
10 deletions
+31
-10
PkTopAction.class.php
app/Lib/Action/Vip/PkTopAction.class.php
+23
-3
itemOther.html
app/Tpl/Vip/PkTop/itemOther.html
+8
-7
No files found.
app/Lib/Action/Vip/PkTopAction.class.php
View file @
30be2eef
...
...
@@ -405,6 +405,7 @@ class PkTopAction extends IdentityAction
$userId
=
I
(
'userId'
,
''
,
intval
);
$userName
=
I
(
'userName'
,
''
);
$gid
=
I
(
'gid'
,
$this
->
GID
,
intval
);
$sy
=
I
(
'sy'
,
''
);
if
(
!
$userId
)
{
$this
->
ajaxReturn
([
'status'
=>
0
,
'info'
=>
'非法参数'
]);
}
...
...
@@ -418,7 +419,14 @@ class PkTopAction extends IdentityAction
$goTradeInfo
[
'userName'
]
=
$userName
;
$goTradeInfo
[
'jump'
]
=
$this
->
user
[
'userID'
]
==
$userId
?
1
:
2
;
#跳转到个人主页时需要指定盈利数据
$tmp_arr
=
[
'zongup'
=>
''
,
'lastmonthup'
=>
'month'
,
'lastweekup'
=>
'week'
,
'lastdayup'
=>
''
];
$goTradeInfo
[
'firstName'
]
=
$tmp_arr
[
$sy
];
$this
->
ajaxReturn
([
'status'
=>
1
,
'data'
=>
json_encode
(
$goTradeInfo
)]);
}
...
...
@@ -621,7 +629,13 @@ class PkTopAction extends IdentityAction
$phb
=
$this
->
getPhb
(
$p
,
$pageSize
,
$order
);
$this
->
assign
(
'weekPhb'
,
$phb
[
0
]);
$this
->
assign
([
'p'
=>
$p
,
'pageSize'
=>
$pageSize
,
'pages'
=>
ceil
(
$phb
[
1
]
/
$pageSize
),
'count'
=>
$phb
[
1
]]);
$this
->
assign
([
'p'
=>
$p
,
'pageSize'
=>
$pageSize
,
'pages'
=>
ceil
(
$phb
[
1
]
/
$pageSize
),
'count'
=>
$phb
[
1
],
'sy'
=>
'lastweekup'
]);
if
(
IS_GET
)
{
//我的排名
...
...
@@ -678,7 +692,13 @@ class PkTopAction extends IdentityAction
$phb
=
$this
->
getPhb
(
$p
,
$pageSize
,
$order
);
$this
->
assign
(
'otherPhb'
,
$phb
[
0
]);
$this
->
assign
([
'p'
=>
$p
,
'pageSize'
=>
$pageSize
,
'pages'
=>
ceil
(
$phb
[
1
]
/
$pageSize
),
'count'
=>
$phb
[
1
]]);
$this
->
assign
([
'p'
=>
$p
,
'pageSize'
=>
$pageSize
,
'pages'
=>
ceil
(
$phb
[
1
]
/
$pageSize
),
'count'
=>
$phb
[
1
],
'sy'
=>
$order
]);
if
(
IS_GET
)
{
//我的排名
...
...
app/Tpl/Vip/PkTop/itemOther.html
View file @
30be2eef
...
...
@@ -13,14 +13,12 @@
<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.nick}"
>
<span
class=
"user-head "
pId=
"{$vo.user_id}"
pName=
"{$vo.nick}"
pSy=
"{$sy}"
>
<img
src=
"{:getPortraitPath($vo['user_id'], 'small', true)}"
alt=
""
>
</span>
</div>
<span
class=
"head-r-t "
pId=
"{$vo.user_id}"
pName=
"{$vo.nick}"
>
{$vo.nick}
</span>
<span
class=
"head-r-t"
>
</span>
<span
class=
"head-r-t "
pId=
"{$vo.user_id}"
pName=
"{$vo.nick}"
pSy=
"{$sy}"
>
{$vo.nick}
</span>
<span
class=
"head-r-t"
></span>
</div>
<p
class=
"info-rank-w"
>
<eq
name=
"order"
value=
"zongup"
>
...
...
@@ -67,10 +65,13 @@
$
(
'.user-head,.head-r-t'
).
click
(
function
(){
if
(
flag
==
1
)
return
;
flag
=
1
;
$
.
post
(
"/PkTop/getGoTradeInfo"
,
{
'userId'
:
$
(
this
).
attr
(
'pId'
),
'userName'
:
$
(
this
).
attr
(
'pName'
)},
function
(
res
)
{
$
.
post
(
"/PkTop/getGoTradeInfo"
,
{
'userId'
:
$
(
this
).
attr
(
'pId'
),
'userName'
:
$
(
this
).
attr
(
'pName'
),
'sy'
:
$
(
this
).
attr
(
'pSy'
),
},
function
(
res
)
{
if
(
res
.
status
==
1
)
{
flag
=
0
;
// alert(res.data);
if
(
mfrom
[
1
]
>
0
){
AppBridge
.
goTrade
(
res
.
data
);
}
...
...
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