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
b41a50eb
Commit
b41a50eb
authored
Apr 07, 2023
by
wangjing
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/houdong' into houdong
parents
3e217f84
f19b9fb3
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
967 additions
and
39 deletions
+967
-39
config.php
app/Conf/config.php
+2
-2
PkTopAction.class.php
app/Lib/Action/Vip/PkTopAction.class.php
+63
-31
bottom.html
app/Tpl/Vip/PkTop/bottom.html
+200
-0
indexNew.html
app/Tpl/Vip/PkTop/indexNew.html
+2
-2
itemWeek.html
app/Tpl/Vip/PkTop/itemWeek.html
+4
-4
phbOther.html
app/Tpl/Vip/PkTop/phbOther.html
+353
-0
phbWeek.html
app/Tpl/Vip/PkTop/phbWeek.html
+343
-0
No files found.
app/Conf/config.php
View file @
b41a50eb
...
...
@@ -30,8 +30,8 @@ define('PHP2JY_PW', 'd#!%$38a');
//有奖大赛id
define
(
'PRIZE_GROUP'
,
20202
);
define
(
'FINALS_GROUP'
,
20318
);
define
(
'PRIZE_GROUP_2021'
,
20320
);
//
define('PRIZE_GROUP_2021',20320);
define
(
'PRIZE_GROUP_2021'
,
24372
);
define
(
'NIUD_ID'
,
23494
);
define
(
'NIUS_ID'
,
23685
);
define
(
'JUJI_ID'
,
22769
);
...
...
app/Lib/Action/Vip/PkTopAction.class.php
View file @
b41a50eb
...
...
@@ -1375,18 +1375,18 @@ class PkTopAction extends IdentityAction{
//大赛排行榜的当前排行页面
public
function
get
WeekPhb
(
){
public
function
get
Phb
(
$p
,
$pageSize
=
10
,
$order
){
$gid
=
$this
->
GID
;
$order
=
I
(
'order'
,
'lastmonthup'
);
$p
=
I
(
'p'
,
1
);
$pageSize
=
10
;
// $order=I('order','lastweekup');
// $pageSize=10;
// $pageSize=$gid==$this->GID?10:200;
//分表归档
$suffix
=
D
(
'Userinfo'
)
->
getTable
(
$gid
);
$table
=
$suffix
?
'mncg_archive.userinfo'
.
$suffix
:
'mncg.userinfo'
;
$where
=
[
'sex'
=>
$gid
,
'monthzzl'
=>
[
'gt'
,
0
],
'lastweekup'
=>
[
'gt'
,
0
],
'zt'
=>
1
];
$tDataList
=
M
(
$table
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
(
$where
)
->
order
(
$order
.
' desc'
)
->
page
(
$p
.
','
.
$pageSize
)
->
cache
(
true
,
300
)
->
select
();
// var_dump($gid);exit;
//->cache(true,300)
$tDataList
=
M
(
$table
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
field
(
'uid,lastweekup,monthzzl'
)
->
where
(
$where
)
->
order
(
$order
.
' desc'
)
->
page
(
$p
.
','
.
$pageSize
)
->
select
();
// var_dump(M($table, " ", C('DB_CONFIG_MNCG3'))->getLastSql());exit;
$uids
=
[];
foreach
(
$tDataList
as
$key
=>
&
$rankV
)
{
$userIDs
=
explode
(
"X"
,
$rankV
[
'uid'
]);
...
...
@@ -1398,7 +1398,7 @@ class PkTopAction extends IdentityAction{
foreach
(
$tDataList
as
$key
=>
&
$value
)
{
$nick_name
=
$nick_name_arry
[
$value
[
'user_id'
]];
$value
[
'
user_name
'
]
=
$nick_name
;
$value
[
'
nick
'
]
=
$nick_name
;
}
//总数目
...
...
@@ -1407,42 +1407,64 @@ class PkTopAction extends IdentityAction{
}
public
function
phb
()
{
public
function
phb
Week
()
{
$p
=
I
(
'p'
,
1
);
$pageSize
=
10
;
$pageSize
=
5
;
$userId
=
$this
->
user
[
'userID'
];
//周获奖榜
// $maxWeek=M('PktopWeek')->max('week');
// $weekPhb=M('PktopWeek')->where(['week'=>$maxWeek])->order('lastweekup desc')->page($p.','.$pageSize)->select();
// $uids = array_column('user_id',$weekPhb);
// $nickArray =getUser($uids,'nick');
//
// foreach ($weekPhb as $key => &$value) {
// $nickName = $nickArray[$value['user_id']];
// $value['user_name'] = $nickName;
// }
// $this->assign('weekPhb',$weekPhb);
$weekPhb
=
$this
->
getWeekPhb
();
$this
->
assign
(
'weekPhb'
,
$weekPhb
[
0
]);
$this
->
assign
(
'otherPhb'
,
$weekPhb
[
0
]);
$phb
=
$this
->
getPhb
(
$p
,
$pageSize
,
'lastweekup'
);
$this
->
assign
(
'weekPhb'
,
$phb
[
0
]);
$this
->
assign
(
'weekCount'
,
$phb
[
1
]);
// echo $weekPhb[1];exit;
$this
->
assign
(
'pages'
,
ceil
(
$phb
[
1
]
/
$pageSize
));
//其他排行
$this
->
assign
(
'otherPhb'
,
$phb
[
0
]);
$this
->
assign
(
'p'
,
$p
);
$this
->
assign
(
'gid'
,
$this
->
GID
);
if
(
$p
==
1
){
//我的排名
$this
->
setMyData
();
$this
->
display
();
}
else
{
$content
=
$this
->
fetch
(
'itemNow'
);
// $totalCount = M('PktopWeek')->where(['week'=>$maxWeek])->count();
$this
->
ajaxReturn
([
'status'
=>
1
,
'count'
=>
$weekPhb
[
1
],
'data'
=>
$content
]);
$content
=
$this
->
fetch
(
'itemNew'
);
$this
->
ajaxReturn
([
'status'
=>
1
,
'count'
=>
$phb
[
1
],
'data'
=>
$content
]);
}
}
public
function
phbOther
()
{
$p
=
I
(
'p'
,
1
);
$pageSize
=
5
;
$userId
=
$this
->
user
[
'userID'
];
$order
=
I
(
'order'
,
'lastweekup'
);
$phb
=
$this
->
getPhb
(
$p
,
$pageSize
,
$order
);
$this
->
assign
(
'otherPhb'
,
$phb
[
0
]);
$this
->
assign
(
'count'
,
$phb
[
1
]);
// echo $weekPhb[1];exit;
$this
->
assign
(
'pages'
,
ceil
(
$phb
[
1
]
/
$pageSize
));
//其他排行
$this
->
assign
(
'otherPhb'
,
$phb
[
0
]);
$this
->
assign
(
'p'
,
$p
);
$this
->
assign
(
'gid'
,
$this
->
GID
);
if
(
$p
==
1
){
//我的排名
$this
->
setMyData
();
$this
->
display
();
}
else
{
$content
=
$this
->
fetch
(
'itemOther'
);
$this
->
ajaxReturn
([
'status'
=>
1
,
'count'
=>
$phb
[
1
],
'data'
=>
$content
]);
}
}
//其他排行榜
public
function
getOtherPhb
(){
$gid
=
$this
->
GID
;
...
...
@@ -1514,9 +1536,19 @@ 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
;
$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
();
foreach
(
$weekData
as
$k
=>
$v
)
{
if
(
$v
[
'uid'
]
==
$tid
){
$myData
[
'phb'
]
=
$k
+
1
;
}
}
}
$this
->
assign
(
'myData'
,
$myData
);
}
...
...
app/Tpl/Vip/PkTop/bottom.html
0 → 100644
View file @
b41a50eb
<eq
name=
"hideShiPan"
value=
"0"
>
<div
class=
"bottom-j-btn bottom-btn"
>
<div
class=
"left-zx"
id=
"zixun"
><img
class=
"icon"
src=
"__PUBLIC__/Home/images/g2020/zx-icon-b.png"
/>
咨询
</div>
<div
class=
"showMoreDs"
>
<img
class=
"icon"
src=
"__PUBLIC__/Home/images/g2020/ds-icon-b.png"
/>
更多大赛
<img
class=
"gdjj"
src=
"__PUBLIC__/Home/images/g2020/gdjj.png"
/>
</div>
<eq
name=
"joinStatus"
value=
"1"
>
<div
class=
"bottom-j-right goTradeBtn"
style=
"width: initial;float: none;"
>
进入交易
<img
class=
"icon"
src=
"__PUBLIC__/Home/images/g2020/cs-icon-b.png"
/></div>
<else/>
<div
class=
"bottom-j-right baoming"
style=
"width: initial;float: none;"
targetUrl=
""
>
报名参加
<img
class=
"icon"
src=
"__PUBLIC__/Home/images/g2020/cs-icon-b.png"
/>
</div>
</eq>
</div>
</eq>
<div
class=
"foot-fix"
>
</div>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/jweixin-1.0.0.js"
></script>
<script>
//调用app分享
AppBridge
.
app_share
(
'{$appParam}'
);
AppBridge
.
foot_fit
();
//进入页面的时候取userId
var
u
=
navigator
.
userAgent
,
app
=
navigator
.
appVersion
;
var
isAndroid
=
u
.
indexOf
(
'Android'
)
>
-
1
||
u
.
indexOf
(
'Linux'
)
>
-
1
;
var
isiOS
=
!!
u
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
);
userId
=
0
;
//1苹果app,2安卓app,3苹果浏览器,4安卓手机的浏览器,5微信
var
mfrom
=
isAPP
();
var
appShareInfo
=
'{$appShareInfo}'
;
//滑动加载数据时用
var
lastPage
=
0
;
var
loading
=
false
;
var
order
=
'lastmonthup'
;
function
timer
(
opj
){
$
(
opj
).
find
(
'ul'
).
animate
({
marginTop
:
"-28px"
},
500
,
function
(){
$
(
this
).
css
({
marginTop
:
""
}).
find
(
"li:first"
).
appendTo
(
this
);
})
}
$
(
function
(){
//app低版本隐藏h5导航
if
(
mfrom
[
0
]
>
0
){
if
(
mfrom
[
0
]
==
2
&&
mfrom
[
1
]
<
350
){
$
(
'.header-top'
).
hide
();
$
(
'.head-fit'
).
hide
();
}
else
{
if
(
mfrom
[
0
]
==
1
){
AppBridge
.
getVersion
({},
function
(
responseData
){
// alert(responseData);
if
(
responseData
<
'iOS3.5.0'
){
$
(
'.header-top'
).
hide
();
$
(
'.head-fit'
).
hide
();
}
})
}
}
}
AppBridge
.
webShareShow
(
appShareInfo
);
//一级一级返回1,隐藏导航栏2,一次性返回3
AppBridge
.
goBackStepOneOrMore
(
1
);
sendSmsAndSubmit
();
// 点报名按钮
$
(
".baoming,.sscs"
).
click
(
function
()
{
$
(
'#baomingPOP'
).
attr
(
'targetUrl'
,
$
(
this
).
attr
(
'targetUrl'
));
// alert(mfrom);
// if($(".join-btn").html()=='进入交易'){
// console.log('1点击进入交易按钮');
// $(".goTradeBtn").click();
// }else{
if
(
mfrom
[
1
]
>
0
){
checkLoginAndDo
(
mfrom
[
0
],
'{$user.userID}'
,
1
);
}
else
{
// animPop('#baomingPOP');
if
(
'{$user.userID}'
==
''
){
animPop
(
'#baomingPOP'
);
}
else
{
$
.
post
(
"/PkTop/join"
,{},
function
(
data
){
if
(
data
.
status
==
0
){
//已经参加过该大赛
if
(
data
.
flag
==
1
){
layer
.
open
({
content
:
data
.
info
,
skin
:
'msg'
,
time
:
2
,
end
:
function
()
{
var
href
=
location
.
href
;
console
.
log
(
'当前页面url:'
+
href
);
window
.
location
.
reload
();
}});
}
else
{
//可能有各种错误提示
layer
.
open
({
content
:
data
.
info
,
skin
:
'msg'
,
time
:
2
,
end
:
function
()
{
//window.location.reload();
}});
}
return
false
;
}
else
{
// animPop('#baomingPOP');
animPop
(
'#popPkTopSucc'
);
}
});
}
}
// }
});
//进入交易
$
(
".goTradeBtn,.pk-cont-info"
).
click
(
function
()
{
console
.
log
(
'2点击进入交易按钮'
+
mfrom
[
0
]);
if
(
mfrom
[
1
]
>
0
){
if
(
$
(
'#groupStatus'
).
val
()
==
1
){
layer
.
open
({
content
:
'当前大赛未开始'
,
skin
:
'msg'
,
time
:
2
});
}
var
appParam
=
$
(
'#groupInfo'
).
val
();
appParam
=
appParam
.
replace
(
/XXXXXX/g
,
userId
);
AppBridge
.
refreshMyGroup
();
AppBridge
.
goTrade
(
appParam
);
}
else
{
// location.href='/mncg.html';
// location.href='/Trade/trading?group_id={$gInfo.group_id}';
location
.
href
=
'http://app.jiantou8.com/jiantou.html'
;
}
});
//点击底部的更多大赛
$
(
'.showMoreDs'
).
click
(
function
(){
// $('.en-li').eq(3).click();
location
.
href
=
'{:M_URL}/Match/jiang'
;
})
$
(
function
(){
var
num
=
$
(
'.notice-ul'
).
find
(
'li'
).
length
;
if
(
num
>
1
){
var
time
=
setInterval
(
'timer(".notice-ul")'
,
3500
);
}
});
$
(
'.go-rule'
).
click
(
function
(){
$
(
'html,body'
).
animate
({
scrollTop
:
$
(
'.bottom'
).
offset
().
top
},
500
);
})
//当前只有两个弹窗
// $(".t-pop-close,.pop-close").click(function () {
// animPop($(this).parents('.pops'));
// });
$
(
"#closeBm,#closeWx"
).
click
(
function
()
{
animPop
(
$
(
this
).
parents
(
'.pops'
));
});
//弹出咨询弹框
$
(
"#zixun"
).
click
(
function
()
{
animPop
(
'#popWx'
)
});
//点关闭刷新页面取状态
$
(
"#closeSucc"
).
click
(
function
()
{
$
(
'#popPkTopSucc'
).
hide
();
window
.
location
.
reload
();
});
//点用户名和头像跳转到该大赛的旧的交易页
flag
=
0
;
$
(
'.goTrade21'
).
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
;
if
(
mfrom
[
1
]
>
0
){
AppBridge
.
refreshMyGroup
();
AppBridge
.
goTrade
(
res
.
data
)
}
}
});
});
});
</script>
</html>
<!--userId:{$user.userID}-userName:{$user.userName}-gid:{$gid}-->
\ No newline at end of file
app/Tpl/Vip/PkTop/indexNew.html
View file @
b41a50eb
...
...
@@ -114,7 +114,7 @@
<div
class=
"head-r-num"
>
<span
class=
"user-head"
pId__=
"{$vo.user_id}"
pName__=
"{$vo.user_name}"
>
<img
src=
"{:getPortraitPath($
vo['user_i
d'], 'small', true)}"
alt=
""
>
<img
src=
"{:getPortraitPath($
myData['userI
d'], 'small', true)}"
alt=
""
>
</span>
<span
class=
"head-r-t"
pId__=
"{$myData.user_id}"
pName=
"{$myData.userName}"
>
{$myData.userName}
</span>
</div>
...
...
@@ -479,7 +479,7 @@
return
;
}
if
(
i
==
2
){
location
.
href
=
'/
Vip/PkTop/awardList
'
;
location
.
href
=
'/
PkTop/phbWeek
'
;
return
;
}
$
(
this
).
siblings
().
removeClass
(
'active'
);
...
...
app/Tpl/Vip/PkTop/itemWeek.html
View file @
b41a50eb
...
...
@@ -15,14 +15,14 @@
<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>
<span
class=
"head-r-t"
pId=
"{$vo.user_id}"
pName=
"{$vo.user_name}"
>
{$vo.
nick}
</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>
<td
class=
"num red"
style=
"text-align: left;"
>
第
{$key+($p-1)*10+1}
名
</td>
<td
class=
"num red"
>
{$vo.lastweekup}
%
</td>
<td
class=
"num"
style=
"text-align: right;"
>
{$vo.monthzzl}
%
</td>
</tr>
<tr
class=
"data-title"
>
<td
class=
"title"
style=
"text-align: left;"
>
周排行
</td>
...
...
app/Tpl/Vip/PkTop/phb.html
→
app/Tpl/Vip/PkTop/phb
Other
.html
View file @
b41a50eb
...
...
@@ -93,58 +93,58 @@
</div>
<div
class=
"contest-body-detail"
>
<!--add-->
<div
class=
"my-info-data award-list"
>
<span
class=
"pm-t"
><img
src=
"__PUBLIC__/images/2023/pm-t.png"
alt=
""
></span>
<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>
<notempty
name=
"myData"
>
<div
class=
"my-info-data award-list"
>
<span
class=
"pm-t"
><img
src=
"__PUBLIC__/images/2023/pm-t.png"
alt=
""
></span>
<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($myData['userId'], 'small', true)}"
alt=
""
>
</span>
<span
class=
"head-r-t"
pId=
"{$vo.user_id}"
pName=
"{$vo.user_name}"
>
{$myData.userName}
</span>
</div>
<div
class=
"info-data"
>
<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>
名
</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>
<td
class=
"title"
style=
"text-align: right;"
>
月周转率
</td>
</tr>
</table>
</div>
<eq
name=
"myData.monthzzl"
value=
"0"
>
<span
class=
"tip-msg"
>
距离获得奖金只差 交易一笔
</span>
</eq>
<a
href=
"{:M_URL}/Box#3"
class=
"reset-btn"
><img
src=
"__PUBLIC__/images/2023/reset-img.png"
alt=
""
>
重置模拟金
</a>
</div>
<span
class=
"tip-msg"
>
距离获得奖金只差 交易一笔
</span>
<a
href=
"javascript:;"
class=
"reset-btn"
><img
src=
"__PUBLIC__/images/2023/reset-img.png"
alt=
""
>
重置模拟金
</a>
</div>
</notempty>
<div
class=
"award-cont"
>
<div
class=
"award-tab-btn"
>
<div
class=
"btn
active"
>
周奖榜单
</div>
<div
class=
"btn
"
>
其它排行
</div>
<div
class=
"btn
"
><a
href=
"/PkTop/phbWeek"
>
周奖榜单
</a>
</div>
<div
class=
"btn
active"
><a
href=
"/PkTop/phbOther"
>
其它排行
</a>
</div>
</div>
<div
class=
"award-tab-panel"
>
<span
class=
"rule-make"
>
上榜规则:当周收益为正、月周转率>0
</span>
<div
id=
"weekContainer"
>
<include
file=
"itemWeek"
/>
</div>
</div>
<div
class=
"award-tab-panel"
style=
"display: none;"
>
<div
class=
"award-tab-panel"
>
<div
class=
"panel-btns"
>
<span
class=
"panel-btn active"
>
总盈利率
</span>
<span
class=
"panel-btn center"
>
月盈利率
</span>
<span
class=
"panel-btn"
>
日盈利率
</span>
</div>
<div
id=
"container
New
"
>
<div
id=
"container"
>
<include
file=
"itemOther"
/>
</div>
...
...
@@ -152,29 +152,8 @@
<!--<img class="no-data-img" src="__PUBLIC__/Home/images/group/cc-nodata.png" alt="">-->
<!--<p class="no-data-msg">当前没有盈利率排行</p>-->
<!--</div>-->
</div>
</div>
<div
class=
"contest-hof"
style=
"display: none"
>
<div
class=
"hof-title"
>
<div
class=
"hof-lf hof-btn active"
style=
"width: 49%"
>
当前排行
</div>
<div
class=
"hof-lf hof-btn"
style=
"width: 49%"
>
历史排行
</div>
</div>
<div
class=
"hof-tab-block"
style__=
"display: none"
>
<div
class=
"ranking-tab"
>
<div
data=
"{$key}"
style=
"width: 25%"
class=
"tab-btn selectNow <eq name='order' value='zongup'>active</eq> "
order=
"zongup"
>
总盈利率
</div>
<div
data=
"{$key}"
style=
"width: 25%"
class=
"tab-btn selectNow <eq name='order' value='lastmonthup'>active</eq> "
order=
"lastmonthup"
>
月盈利率
</div>
<div
data=
"{$key}"
style=
"width: 25%"
class=
"tab-btn selectNow <eq name='order' value='lastweekup'>active</eq> "
order=
"lastweekup"
>
周盈利率
</div>
<div
data=
"{$key}"
style=
"width: 25%"
class=
"tab-btn selectNow <eq name='order' value='lastdayup'>active</eq> "
order=
"lastdayup"
>
日盈利率
</div>
</div>
<div
style=
"clear: both;"
></div>
<!--当前最新月份排行,totalCount:{$totalCount}-->
<div
class=
"month-top-block current-m"
id=
"containerNow"
>
<include
file=
"itemNow"
/>
</div>
<gt
name=
"totalCount"
value=
"10"
>
<div
style=
"padding: 10px 15px 0px;text-align:center;color:#fff;font-size: 14px;"
<gt
name=
"count"
value=
"2"
>
<div
style=
"padding: 10px 15px 0px;text-align:center;font-size: 14px;"
currPage=
"1"
totalPage=
'{$pages}'
id=
"loadBtn"
>
<p
class=
"loading l_1"
style=
""
><span
class=
"txt"
>
加载中...
</span></p>
<p
class=
"loading l_2"
id=
"nextPage"
style=
"display: none;"
><span
class=
"txt"
>
加载更多
</span></p>
...
...
@@ -182,215 +161,74 @@
</div>
</gt>
</div>
<div
class=
"hof-tab-block"
style=
"display: none"
>
<div
class=
"select-box-li"
>
<div
class=
"box"
>
<form><span
class=
"select"
data-s=
""
>
{$selectMonthStart2}排行榜
</span></form>
<span
class=
"select-span"
><img
src=
"__PUBLIC__/Home/images/g2020/select-down.png"
alt=
""
></span>
</div>
<ul
class=
"sub"
>
<foreach
name=
"selectMonth2"
key=
'key'
item=
"vo"
>
<li
data=
"{$key}"
class=
"selectHis"
>
{$vo}排行榜
</li>
</foreach>
</ul>
</div>
<div
style=
"clear: both;"
></div>
<div
class=
"month-top-block current-m"
id=
"containerHis"
>
<include
____
file=
"item2"
/>
</div>
</div>
</div>
</div>
</div>
<eq
name=
"hideShiPan"
value=
"0"
>
<div
class=
"bottom-j-btn bottom-btn"
>
<div
class=
"left-zx"
id=
"zixun"
><img
class=
"icon"
src=
"__PUBLIC__/Home/images/g2020/zx-icon-b.png"
/>
咨询
</div>
<div
class=
"showMoreDs"
>
<img
class=
"icon"
src=
"__PUBLIC__/Home/images/g2020/ds-icon-b.png"
/>
更多大赛
<img
class=
"gdjj"
src=
"__PUBLIC__/Home/images/g2020/gdjj.png"
/>
</div>
<eq
name=
"joinStatus"
value=
"1"
>
<div
class=
"bottom-j-right goTradeBtn"
style=
"width: initial;float: none;"
>
进入交易
<img
class=
"icon"
src=
"__PUBLIC__/Home/images/g2020/cs-icon-b.png"
/></div>
<else/>
<div
class=
"bottom-j-right baoming"
style=
"width: initial;float: none;"
targetUrl=
""
>
报名参加
<img
class=
"icon"
src=
"__PUBLIC__/Home/images/g2020/cs-icon-b.png"
/>
</div>
</eq>
</div>
</eq>
<div
class=
"foot-fix"
>
</div>
<include
file=
"bottom"
/>
</div>
<div
class=
"mask mask-close"
style=
""
></div>
<include
file=
"pop"
/>
</body>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/jweixin-1.0.0.js"
></script>
<script>
//调用app分享
AppBridge
.
app_share
(
'{$appParam}'
);
AppBridge
.
foot_fit
();
//进入页面的时候取userId
var
u
=
navigator
.
userAgent
,
app
=
navigator
.
appVersion
;
var
isAndroid
=
u
.
indexOf
(
'Android'
)
>
-
1
||
u
.
indexOf
(
'Linux'
)
>
-
1
;
var
isiOS
=
!!
u
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
);
userId
=
0
;
//1苹果app,2安卓app,3苹果浏览器,4安卓手机的浏览器,5微信
var
mfrom
=
isAPP
();
var
appShareInfo
=
'{$appShareInfo}'
;
//滑动加载数据时用
var
lastPage
=
0
;
var
loading
=
false
;
var
order
=
'lastmonthup'
;
function
timer
(
opj
){
$
(
opj
).
find
(
'ul'
).
animate
({
marginTop
:
"-28px"
},
500
,
function
(){
$
(
this
).
css
({
marginTop
:
""
}).
find
(
"li:first"
).
appendTo
(
this
);
})
}
<script>
$
(
function
(){
//app低版本隐藏h5导航
if
(
mfrom
[
0
]
>
0
){
if
(
mfrom
[
0
]
==
2
&&
mfrom
[
1
]
<
350
){
$
(
'.header-top'
).
hide
();
$
(
'.head-fit'
).
hide
();
}
else
{
if
(
mfrom
[
0
]
==
1
){
AppBridge
.
getVersion
({},
function
(
responseData
){
// alert(responseData);
if
(
responseData
<
'iOS3.5.0'
){
$
(
'.header-top'
).
hide
();
$
(
'.head-fit'
).
hide
();
}
})
}
}
}
AppBridge
.
webShareShow
(
appShareInfo
);
//一级一级返回1,隐藏导航栏2,一次性返回3
AppBridge
.
goBackStepOneOrMore
(
1
);
sendSmsAndSubmit
();
// 点报名按钮
$
(
".baoming,.sscs"
).
click
(
function
()
{
$
(
'#baomingPOP'
).
attr
(
'targetUrl'
,
$
(
this
).
attr
(
'targetUrl'
));
// alert(mfrom);
// if($(".join-btn").html()=='进入交易'){
// console.log('1点击进入交易按钮');
// $(".goTradeBtn").click();
// }else{
if
(
mfrom
[
1
]
>
0
){
checkLoginAndDo
(
mfrom
[
0
],
'{$user.userID}'
,
1
);
}
else
{
// animPop('#baomingPOP');
if
(
'{$user.userID}'
==
''
){
animPop
(
'#baomingPOP'
);
}
else
{
$
.
post
(
"/PkTop/join"
,{},
function
(
data
){
if
(
data
.
status
==
0
){
//已经参加过该大赛
if
(
data
.
flag
==
1
){
layer
.
open
({
content
:
data
.
info
,
skin
:
'msg'
,
time
:
2
,
end
:
function
()
{
var
href
=
location
.
href
;
console
.
log
(
'当前页面url:'
+
href
);
window
.
location
.
reload
();
}});
}
else
{
//可能有各种错误提示
layer
.
open
({
content
:
data
.
info
,
skin
:
'msg'
,
time
:
2
,
end
:
function
()
{
//window.location.reload();
}});
}
return
false
;
}
else
{
// animPop('#baomingPOP');
animPop
(
'#popPkTopSucc'
);
}
});
}
}
// }
});
//进入交易
$
(
".goTradeBtn,.pk-cont-info"
).
click
(
function
()
{
console
.
log
(
'2点击进入交易按钮'
+
mfrom
[
0
]);
if
(
mfrom
[
1
]
>
0
){
if
(
$
(
'#groupStatus'
).
val
()
==
1
){
layer
.
open
({
content
:
'当前大赛未开始'
,
skin
:
'msg'
,
time
:
2
});
}
var
appParam
=
$
(
'#groupInfo'
).
val
();
appParam
=
appParam
.
replace
(
/XXXXXX/g
,
userId
);
AppBridge
.
refreshMyGroup
();
AppBridge
.
goTrade
(
appParam
);
}
else
{
// location.href='/mncg.html';
// location.href='/Trade/trading?group_id={$gInfo.group_id}';
location
.
href
=
'http://app.jiantou8.com/jiantou.html'
;
}
});
//点击底部的更多大赛
$
(
'.showMoreDs'
).
click
(
function
(){
// $('.en-li').eq(3).click();
location
.
href
=
'{:M_URL}/Match/jiang'
;
})
//页面最上面的li标签切换
$
(
'.en-li'
).
each
(
function
(
i
,
obj
){
$
(
obj
).
click
(
function
(){
if
(
i
==
3
){
location
.
href
=
'{:M_URL}/Match/jiang'
;
return
;
}
$
(
this
).
siblings
().
removeClass
(
'active'
);
$
(
this
).
addClass
(
'active'
);
$
(
'.contest-body-detail'
).
hide
();
// $($('.contest-body-detail')[i-1]).show();
//1是中金大赛,调到别的链接
// if(i==1){
// // location.href='{:M_URL}/Zjds';
// return;
// }
if
(
i
==
0
){
$
(
$
(
'.contest-body-detail'
)[
0
]).
show
();
}
else
{
$
(
$
(
'.contest-body-detail'
)[
i
]).
show
();
}
// $('.en-li').each(function(i,obj){
// $(obj).click(function(){
// if(i==3){
// location.href='{:M_URL}/Match/jiang';
// return;
// }
//
// $(this).siblings().removeClass('active');
// $(this).addClass('active');
// $('.contest-body-detail').hide();
//
// // $($('.contest-body-detail')[i-1]).show();
//
// //1是中金大赛,调到别的链接
// // if(i==1){
// // // location.href='{:M_URL}/Zjds';
// // return;
// // }
// if(i==0){
// $($('.contest-body-detail')[0]).show();
// }else{
// $($('.contest-body-detail')[i]).show();
// }
//
// console.log('当前外层标签序号:'+i);
// history.replaceState({},"","?gid={$_GET.gid}&viewPage="+(i+1));
// // if(i == 1){
// // slider.reloadSlider();
// // }
// if(i==2){
// $('.selectNow').eq(1).click();
// }
// //点击量统计
// if(i==3){
// $.get('/PkTop/dianjiLog',{},function(e){
// console.log('记录点击日志');
// },'json');
//
// }
// })
// });
console
.
log
(
'当前外层标签序号:'
+
i
);
history
.
replaceState
({},
""
,
"?gid={$_GET.gid}&viewPage="
+
(
i
+
1
));
// if(i == 1){
// slider.reloadSlider();
// }
if
(
i
==
2
){
$
(
'.selectNow'
).
eq
(
1
).
click
();
}
//点击量统计
if
(
i
==
3
){
$
.
get
(
'/PkTop/dianjiLog'
,{},
function
(
e
){
console
.
log
(
'记录点击日志'
);
},
'json'
);
}
})
});
//点排行榜下面的几个标签,i从0开始
$
(
'.award-tab-btn .btn'
).
each
(
function
(
i
,
obj
){
$
(
'.award-tab-btn .
panel-
btn'
).
each
(
function
(
i
,
obj
){
$
(
obj
).
click
(
function
(){
$
(
'.award-tab-btn .btn'
).
removeClass
(
'active'
);
$
(
'.award-tab-btn .
panel-
btn'
).
removeClass
(
'active'
);
$
(
this
).
addClass
(
'active'
);
$
(
'.award-tab-panel'
).
hide
();
$
(
$
(
'.award-tab-panel'
)[
i
]).
show
();
...
...
@@ -439,7 +277,7 @@
order
=
$
(
this
).
attr
(
'order'
);
$
.
get
(
"/PkTop/rankNow"
,
{
order
:
order
,
'debug'
:
'click'
},
function
(
data
)
{
if
(
data
.
status
==
1
)
{
$
(
"#container
Now
"
).
html
(
data
.
data
);
$
(
"#container"
).
html
(
data
.
data
);
initPkBtn
(
mfrom
[
0
],
'{$user.userID}'
,
'{$user.userName}'
);
}
});
...
...
@@ -447,61 +285,11 @@
$
(
this
).
addClass
(
'active'
);
});
//选月排行榜的下拉框
$
(
'.selectHis'
).
click
(
function
(){
$
.
post
(
"/PkTop/getMonthData"
,
{
month
:
$
(
this
).
attr
(
'data'
),
'type'
:
'month'
},
function
(
data
)
{
if
(
data
.
status
==
1
)
{
// $("#container2").html('');
$
(
"#containerHis"
).
html
(
''
);
if
(
data
.
type
==
'month'
||
data
.
type
==
'nowMonth'
){
$
(
"#containerHis"
).
html
(
data
.
data
);
initPkBtn
(
mfrom
[
0
],
'{$user.userID}'
,
'{$user.userName}'
);
}
}
});
});
//点击年度精英赛的月份后请求后台
$
(
'.selectPass'
).
click
(
function
(){
$
.
post
(
"/PkTop/getMonthData"
,
{
month
:
$
(
this
).
attr
(
'data'
),
'type'
:
'final'
},
function
(
data
)
{
if
(
data
.
status
==
1
)
{
$
(
"#containerPass"
).
html
(
data
.
data
)
initPkBtn
(
mfrom
[
0
],
'{$user.userID}'
,
'{$user.userName}'
);
}
});
});
//点用户名和头像跳转到该大赛的旧的交易页
flag
=
0
;
$
(
'.goTrade21'
).
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
;
if
(
mfrom
[
1
]
>
0
){
AppBridge
.
refreshMyGroup
();
AppBridge
.
goTrade
(
res
.
data
)
}
}
});
});
//资金重置卡
$
(
'.bottom-j-left'
).
click
(
function
()
{
// $.post('/Public/statistics',{type_:'Allex_fund_reset'},function () {})
if
(
'{$user.userID}'
>
0
)
{
location
.
href
=
'{:M_URL}/Box'
;
}
else
{
if
(
mfrom
[
0
]
==
1
||
mfrom
[
0
]
==
2
)
{
checkLoginAndDo
(
mfrom
[
0
],
'{$user.userID}'
,
3
);
}
else
{
animPop
(
'#baomingPOP'
)
}
}
});
window
.
onscroll
=
function
()
{
// alert(
mfrom
);
// alert(
11
);
var
check
;
var
scrollTop
=
$
(
this
).
scrollTop
();
//滚动条距离顶部的高度
var
scrollHeight
=
$
(
document
).
height
();
//当前页面的总高度
...
...
@@ -533,6 +321,7 @@
var
nextPage
=
parseInt
(
currPage
)
+
1
;
if
(
nextPage
>
parseInt
(
totalPage
))
{
return
;
}
else
{
...
...
@@ -550,26 +339,15 @@
}
if
(
e
.
status
==
0
)
{
layer
.
alert
(
e
.
info
,
8
);
return
false
;}
$
(
"#loadBtn"
).
attr
(
'currPage'
,
nextPage
);
$
(
"#container
Now
"
).
append
(
e
.
data
);
$
(
"#container"
).
append
(
e
.
data
);
setTimeout
(
function
(){
loading
=
false
;},
1000
)
},
'json'
);
});
//开户链接跳转
$
(
".lottery-click-a,.go-open"
).
click
(
function
(){
var
kaihuUrl
=
'https://kaihu.ciccwm.com/khh5/m/open/index.html?short_code=KFCGyUylUq7EY0'
;
AppBridge
.
goBrowser
(
kaihuUrl
);
return
false
;
});
//自动点击报名按钮
if
(
'{$_GET.clickFlag}'
==
1
){
$
(
".baoming"
).
click
();
}
});
</script>
</html>
<!--userId:{$user.userID}-userName:{$user.userName}-popType:{$popType}-->
\ No newline at end of file
<!--userId:{$user.userID}-userName:{$user.userName}-gid:{$gid}-->
\ No newline at end of file
app/Tpl/Vip/PkTop/phbWeek.html
0 → 100644
View file @
b41a50eb
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,viewport-fit=cover"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"format-detection"
content=
"telephone=no"
>
<meta
name=
"format-detection"
content=
"email=no"
>
<title>
全民炼股争霸赛-全民分赛场-排行榜
</title>
<meta
name=
"description"
content=
"叩富简投全民炼股2023模拟炒股大赛,赢10万现金大奖。自2007年开赛以来,已累积举办200多期模拟炒股大奖赛。每周、每月都有现金大奖。软件、手机APP、网页同步参赛"
>
<meta
name=
"keywords"
content=
"2023模拟炒股大赛,模拟炒股大赛,模拟炒股,模拟股票大赛,炒股大赛,模拟炒股有奖大赛,模拟股市大赛,股票模拟大赛,股票大赛,腾讯A股大赛,凤凰炒股大赛"
>
<link
href=
"__PUBLIC__/Home/css/g2021.css?_={:date('Y-m-d-H:i:s',filemtime('./Public/Home/css/g2021.css'))}"
rel=
"stylesheet"
>
<link
href=
"__PUBLIC__/Home/css/moreDs.css?_={:date('Y-m-d-H:i:s',filemtime('./Public/Home/css/moreDs.css'))}"
rel=
"stylesheet"
>
<link
rel=
"stylesheet"
href=
"__PUBLIC__/Home/js/slider/css/jquery.bxslider.css"
>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/layer_mobile/layer.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/clipboard.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/Home/js/app.js{$Think.config.js_version}"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/Home/js/pktop.js?_={:date('Y-m-d-H:i:s',filemtime('./Public/Home/js/pktop.js'))}"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/Home/js/lottery.js?_={:date('Y-m-d-H:i:s',filemtime('./Public/Home/js/lottery.js'))}"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/jquery.cookie.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/app_h5.js?_={:date('Y-m-d-H:i:s',filemtime('./Public/js/app_h5.js'))}"
></script>
<style>
.layui-m-layerbtn
span
[
yes
]
{
color
:
#b40000
;}
.layui-m-layerbtn
span
[
no
]
{
color
:
#b40000
;}
.layui-m-layerbtn
span
:first-child
{
color
:
#b40000
;}
.header-share
{
width
:
40px
;
height
:
48px
;
display
:
block
;
background
:
url('__PUBLIC__/Home/images/group/header-shareG.png')
no-repeat
;
background-size
:
20px
20px
;
background-position
:
0px
14px
;
line-height
:
100%
;
position
:
absolute
;
right
:
0px
;
top
:
0px
;
margin-right
:
-8px
;
}
</style>
<script
type=
"text/javascript"
>
AppBridge
.
init
();
//页面默认刷新
var
userId
=
"{$user.userID}"
;
//这个userid 一定是从session或者cookie里验证后获取到的。
// if(!userId){
// AppBridge.refreshPage({},function (userId,key) {
// if('{$refresh}'=='1'){
// // location.href='/Allex?user_id='+userId+'&key2='+key+'&viewPage='+'{$viewPage}';
// location.replace('/PkTop?user_id='+userId+'&key2='+key+'&viewPage='+'{$viewPage}');
// }
// });
// }
</script>
</head>
<body
style=
"min-height: 100%;background-color: #C60000;"
>
<if
condition=
"isH5Head() lt 1"
>
<div
class=
"header-top"
>
<div
class=
"header-hei"
></div>
<div
class=
"header-h"
>
<a
href=
"javascript:;"
class=
"header-h-a"
><span
class=
"back-btn back-btn-a"
></span></a>
<span
class=
"header-share"
></span>
<ul
class=
"header-title"
>
<li
class=
"one-li"
>
全民炼股争霸赛-全民分赛场-排行榜
</li></ul>
</div>
</div>
<div
class=
"head-fit"
></div>
<script>
//为了加载效果提前
//点后退按钮
var
ourl
=
''
;
if
(
"{$_GET.key}"
!=
''
||
"{$_GET.is_head}"
!=
''
||
"{$_GET.key2}"
!=
''
){
// if(!window.localStorage.getItem('TradeQueryPageUid')){
ourl
=
'close'
;
// }
}
AppBridge
.
go_back
(
ourl
);
AppBridge
.
head_fit
();
</script>
</if>
<div
class=
"championship-cont warp-container"
>
<div
class=
"champ-body-top"
>
<div
class=
"top-banner"
>
<img
src=
"__PUBLIC__/images/2023/cg-banner2.png"
alt=
""
>
<!--<span class="cs-num">· {$member_quantity|default=0}人参赛 ·</span>-->
</div>
<div
class=
"top-entrance-b"
style=
"width————: 75%;margin: 0 auto;"
>
<ul
class=
"entrance-tab-ul"
>
<li
class=
"en-li f-left"
style=
"width: 24%"
>
赛程及奖项
</li>
<li
class=
"en-li f-center lottery-li"
style_=
"width: 24%"
>
瓜分10万
</li>
<li
class=
"en-li f-center active"
style_=
"width: 24%"
>
获奖榜
</li>
<li
class=
"en-li f-right"
>
返回主赛场
<img
class=
"more"
src=
"__PUBLIC__/Home/images/g2020/gdjj.png"
style=
""
/>
</li>
</ul>
</div>
</div>
<div
class=
"contest-body-detail"
>
<!--add-->
<notempty
name=
"myData"
>
<div
class=
"my-info-data award-list"
>
<span
class=
"pm-t"
><img
src=
"__PUBLIC__/images/2023/pm-t.png"
alt=
""
></span>
<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($myData['userId'], 'small', true)}"
alt=
""
>
</span>
<span
class=
"head-r-t"
pId=
"{$vo.user_id}"
pName=
"{$vo.user_name}"
>
{$myData.userName}
</span>
</div>
<div
class=
"info-data"
>
<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>
名
</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>
<td
class=
"title"
style=
"text-align: right;"
>
月周转率
</td>
</tr>
</table>
</div>
<eq
name=
"myData.monthzzl"
value=
"0"
>
<span
class=
"tip-msg"
>
距离获得奖金只差 交易一笔
</span>
</eq>
<a
href=
"{:M_URL}/Box#3"
class=
"reset-btn"
><img
src=
"__PUBLIC__/images/2023/reset-img.png"
alt=
""
>
重置模拟金
</a>
</div>
</notempty>
<div
class=
"award-cont"
>
<div
class=
"award-tab-btn"
>
<div
class=
"btn active"
><a
href=
"/PkTop/phbWeek"
>
周奖榜单
</a></div>
<div
class=
"btn"
><a
href=
"/PkTop/phbOther"
>
其它排行
</a></div>
</div>
<div
class=
"award-tab-panel"
>
<span
class=
"rule-make"
>
上榜规则:当周收益为正、月周转率>0
</span>
<div
id=
"weekContainer"
>
<include
file=
"itemWeek"
/>
</div>
<gt
name=
"count"
value=
"2"
>
<div
style=
"padding: 10px 15px 0px;text-align:center;font-size: 14px;"
currPage=
"1"
totalPage=
'{$pages}'
id=
"loadBtn"
>
<p
class=
"loading l_1"
style=
""
><span
class=
"txt"
>
加载中...
</span></p>
<p
class=
"loading l_2"
id=
"nextPage"
style=
"display: none;"
><span
class=
"txt"
>
加载更多
</span></p>
<p
class=
"loading l_3"
style=
"display: none;"
id=
"no_content"
><span
class=
"txt"
>
没有更多用户了
</span></p>
</div>
</gt>
</div>
</div>
</div>
</div>
<include
file=
"bottom"
/>
</div>
<div
class=
"mask mask-close"
style=
""
></div>
<include
file=
"pop"
/>
</body>
<script>
$
(
function
(){
//页面最上面的li标签切换
// $('.en-li').each(function(i,obj){
// $(obj).click(function(){
// if(i==3){
// location.href='{:M_URL}/Match/jiang';
// return;
// }
//
// $(this).siblings().removeClass('active');
// $(this).addClass('active');
// $('.contest-body-detail').hide();
//
// // $($('.contest-body-detail')[i-1]).show();
//
// //1是中金大赛,调到别的链接
// // if(i==1){
// // // location.href='{:M_URL}/Zjds';
// // return;
// // }
// if(i==0){
// $($('.contest-body-detail')[0]).show();
// }else{
// $($('.contest-body-detail')[i]).show();
// }
//
// console.log('当前外层标签序号:'+i);
// history.replaceState({},"","?gid={$_GET.gid}&viewPage="+(i+1));
// // if(i == 1){
// // slider.reloadSlider();
// // }
// if(i==2){
// $('.selectNow').eq(1).click();
// }
// //点击量统计
// if(i==3){
// $.get('/PkTop/dianjiLog',{},function(e){
// console.log('记录点击日志');
// },'json');
//
// }
// })
// });
//点排行榜下面的几个标签,i从0开始
$
(
'.award-tab-btn .btn'
).
each
(
function
(
i
,
obj
){
$
(
obj
).
click
(
function
(){
$
(
'.award-tab-btn .btn'
).
removeClass
(
'active'
);
$
(
this
).
addClass
(
'active'
);
$
(
'.award-tab-panel'
).
hide
();
$
(
$
(
'.award-tab-panel'
)[
i
]).
show
();
})
});
$
(
function
(){
var
num
=
$
(
'.notice-ul'
).
find
(
'li'
).
length
;
if
(
num
>
1
){
var
time
=
setInterval
(
'timer(".notice-ul")'
,
3500
);
}
});
$
(
'.go-rule'
).
click
(
function
(){
$
(
'html,body'
).
animate
({
scrollTop
:
$
(
'.bottom'
).
offset
().
top
},
500
);
})
//当前只有两个弹窗
// $(".t-pop-close,.pop-close").click(function () {
// animPop($(this).parents('.pops'));
// });
$
(
"#closeBm,#closeWx"
).
click
(
function
()
{
animPop
(
$
(
this
).
parents
(
'.pops'
));
});
//弹出咨询弹框
$
(
"#zixun"
).
click
(
function
()
{
animPop
(
'#popWx'
)
});
//点关闭刷新页面取状态
$
(
"#closeSucc"
).
click
(
function
()
{
$
(
'#popPkTopSucc'
).
hide
();
window
.
location
.
reload
();
});
//点击当前排行下面的几个盈利率
$
(
'.selectNow'
).
click
(
function
(){
//每次点下拉框要重置
$
(
"#loadBtn"
).
attr
(
"currPage"
,
1
);
order
=
$
(
this
).
attr
(
'order'
);
$
.
get
(
"/PkTop/rankNow"
,
{
order
:
order
,
'debug'
:
'click'
},
function
(
data
)
{
if
(
data
.
status
==
1
)
{
$
(
"#container"
).
html
(
data
.
data
);
initPkBtn
(
mfrom
[
0
],
'{$user.userID}'
,
'{$user.userName}'
);
}
});
$
(
'.selectNow'
).
removeClass
(
'active'
);
$
(
this
).
addClass
(
'active'
);
});
window
.
onscroll
=
function
()
{
// alert(11);
var
check
;
var
scrollTop
=
$
(
this
).
scrollTop
();
//滚动条距离顶部的高度
var
scrollHeight
=
$
(
document
).
height
();
//当前页面的总高度
var
clientHeight
=
$
(
this
).
height
();
//当前可视的页面高度
var
totalHeight
=
parseFloat
(
clientHeight
)
+
parseFloat
(
scrollTop
);
if
(
scrollHeight
-
totalHeight
<
60
)
{
if
(
loading
==
false
)
{
loading
=
true
;
$
(
".loading.l_2"
).
click
();
}
else
{
return
false
;
}
}
check
=
false
;
if
(
check
){
if
(
lastPage
==
0
){
$
(
".loading.l_2"
).
click
();
}
}
};
//点加载更多按钮
$
(
".loading.l_2"
).
click
(
function
(){
// $(".l_2").hide();
var
totalPage
=
$
(
"#loadBtn"
).
attr
(
"totalPage"
);
var
currPage
=
$
(
"#loadBtn"
).
attr
(
"currPage"
);
var
nextPage
=
parseInt
(
currPage
)
+
1
;
if
(
nextPage
>
parseInt
(
totalPage
))
{
return
;
}
else
{
}
$
.
get
(
'/PkTop/rankNow'
,{
p
:
nextPage
,
'order'
:
order
,
'debug'
:
'scroll'
},
function
(
e
){
$
(
".l_1"
).
hide
();
if
(
nextPage
>=
parseInt
(
totalPage
))
{
// $(".l_2").hide();
$
(
".l_3"
).
show
();
lastPage
=
1
;
}
else
{
// $(".l_2").show();
$
(
".l_1"
).
show
();
}
if
(
e
.
status
==
0
)
{
layer
.
alert
(
e
.
info
,
8
);
return
false
;}
$
(
"#loadBtn"
).
attr
(
'currPage'
,
nextPage
);
$
(
"#container"
).
append
(
e
.
data
);
setTimeout
(
function
(){
loading
=
false
;},
1000
)
},
'json'
);
});
});
</script>
</html>
<!--userId:{$user.userID}-userName:{$user.userName}-gid:{$gid}-->
\ No newline at end of file
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