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
21e2a50a
Commit
21e2a50a
authored
Apr 07, 2023
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vip大赛
parent
f19b9fb3
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
123 additions
and
1769 deletions
+123
-1769
PkTopAction.class.php
app/Lib/Action/Vip/PkTopAction.class.php
+92
-93
bottom.html
app/Tpl/Vip/PkTop/bottom.html
+5
-0
indexBak.html
app/Tpl/Vip/PkTop/indexBak.html
+0
-777
indexNew.html
app/Tpl/Vip/PkTop/indexNew.html
+0
-783
itemOther.html
app/Tpl/Vip/PkTop/itemOther.html
+10
-19
phbOther.html
app/Tpl/Vip/PkTop/phbOther.html
+15
-81
phbWeek.html
app/Tpl/Vip/PkTop/phbWeek.html
+1
-16
No files found.
app/Lib/Action/Vip/PkTopAction.class.php
View file @
21e2a50a
...
@@ -15,7 +15,7 @@ class PkTopAction extends IdentityAction{
...
@@ -15,7 +15,7 @@ class PkTopAction extends IdentityAction{
//首页
//首页
public
function
index
()
{
public
function
index
Old
()
{
//首页的排行榜等切换
//首页的排行榜等切换
if
(
!
I
(
'viewPage'
)){
if
(
!
I
(
'viewPage'
)){
header
(
'location:'
.
M_URL
.
'/Match/jiang'
);
header
(
'location:'
.
M_URL
.
'/Match/jiang'
);
...
@@ -1226,7 +1226,7 @@ class PkTopAction extends IdentityAction{
...
@@ -1226,7 +1226,7 @@ class PkTopAction extends IdentityAction{
}
}
//新首页
//新首页
public
function
index
New
()
{
public
function
index
()
{
//首页的排行榜等切换
//首页的排行榜等切换
// if(!I('viewPage')){
// if(!I('viewPage')){
// header('location:'.M_URL.'/Match/jiang');
// header('location:'.M_URL.'/Match/jiang');
...
@@ -1383,9 +1383,15 @@ class PkTopAction extends IdentityAction{
...
@@ -1383,9 +1383,15 @@ class PkTopAction extends IdentityAction{
//分表归档
//分表归档
$suffix
=
D
(
'Userinfo'
)
->
getTable
(
$gid
);
$suffix
=
D
(
'Userinfo'
)
->
getTable
(
$gid
);
$table
=
$suffix
?
'mncg_archive.userinfo'
.
$suffix
:
'mncg.userinfo'
;
$table
=
$suffix
?
'mncg_archive.userinfo'
.
$suffix
:
'mncg.userinfo'
;
$where
=
[
'sex'
=>
$gid
,
'monthzzl'
=>
[
'gt'
,
0
],
'lastweekup'
=>
[
'gt'
,
0
],
'zt'
=>
1
];
$where
=
[
'sex'
=>
$gid
,
'zt'
=>
1
,
'new_phb'
=>
[
'gt'
,
0
]];
if
(
$order
==
'lastweekup'
){
$where
[
'lastweekup'
]
=
[
'gt'
,
0
];
$where
[
'monthzzl'
]
=
[
'gt'
,
0
];
}
//->cache(true,300)
//->cache(true,300)
$tDataList
=
M
(
$table
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
field
(
'uid,lastweekup,monthzzl'
)
->
where
(
$where
)
->
order
(
$order
.
' desc'
)
->
page
(
$p
.
','
.
$pageSize
)
->
select
();
$tDataList
=
M
(
$table
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
field
(
'uid,lastweekup,monthzzl,successup,zongup,lastdayup,lastmonthup'
)
->
where
(
$where
)
->
order
(
$order
.
' desc'
)
->
page
(
$p
.
','
.
$pageSize
)
->
select
();
// var_dump(M($table, " ", C('DB_CONFIG_MNCG3'))->getLastSql());exit;
// var_dump(M($table, " ", C('DB_CONFIG_MNCG3'))->getLastSql());exit;
$uids
=
[];
$uids
=
[];
foreach
(
$tDataList
as
$key
=>
&
$rankV
)
{
foreach
(
$tDataList
as
$key
=>
&
$rankV
)
{
...
@@ -1409,26 +1415,22 @@ class PkTopAction extends IdentityAction{
...
@@ -1409,26 +1415,22 @@ class PkTopAction extends IdentityAction{
public
function
phbWeek
()
{
public
function
phbWeek
()
{
$p
=
I
(
'p'
,
1
);
$p
=
I
(
'p'
,
1
);
$pageSize
=
5
;
$pageSize
=
5
;
$userId
=
$this
->
user
[
'userID'
];
$order
=
I
(
'order'
,
'lastweekup'
);
$this
->
assign
(
'order'
,
$order
);
$phb
=
$this
->
getPhb
(
$p
,
$pageSize
,
'lastweekup'
);
$phb
=
$this
->
getPhb
(
$p
,
$pageSize
,
$order
);
$this
->
assign
(
'weekPhb'
,
$phb
[
0
]);
$this
->
assign
(
'weekPhb'
,
$phb
[
0
]);
$this
->
assign
(
'weekCount'
,
$phb
[
1
]);
// echo $weekPhb[1];exit;
$this
->
assign
([
'p'
=>
$p
,
'pageSize'
=>
$pageSize
,
'pages'
=>
ceil
(
$phb
[
1
]
/
$pageSize
),
'count'
=>
$phb
[
1
]]);
$this
->
assign
(
'pages'
,
ceil
(
$phb
[
1
]
/
$pageSize
));
if
(
IS_GET
){
//其他排行
$this
->
assign
(
'otherPhb'
,
$phb
[
0
]);
$this
->
assign
(
'p'
,
$p
);
$this
->
assign
(
'gid'
,
$this
->
GID
);
if
(
$p
==
1
){
//我的排名
//我的排名
$this
->
setMyData
();
$this
->
setMyData
();
$this
->
display
();
$this
->
display
();
}
else
{
}
else
{
$content
=
$this
->
fetch
(
'item
New
'
);
$content
=
$this
->
fetch
(
'item
Week
'
);
$this
->
ajaxReturn
([
'status'
=>
1
,
'count'
=>
$phb
[
1
],
'data'
=>
$content
]);
$this
->
ajaxReturn
([
'status'
=>
1
,
'count'
=>
$phb
[
1
],
'data'
=>
$content
]);
}
}
...
@@ -1439,22 +1441,17 @@ class PkTopAction extends IdentityAction{
...
@@ -1439,22 +1441,17 @@ class PkTopAction extends IdentityAction{
public
function
phbOther
()
{
public
function
phbOther
()
{
$p
=
I
(
'p'
,
1
);
$p
=
I
(
'p'
,
1
);
$pageSize
=
5
;
$pageSize
=
5
;
$userId
=
$this
->
user
[
'userID'
];
$order
=
I
(
'order'
,
'zongup'
);
$order
=
I
(
'order'
,
'lastweekup'
);
$this
->
assign
(
'order'
,
$order
);
$phb
=
$this
->
getPhb
(
$p
,
$pageSize
,
$order
);
$phb
=
$this
->
getPhb
(
$p
,
$pageSize
,
$order
);
$this
->
assign
(
'otherPhb'
,
$phb
[
0
]);
$this
->
assign
(
'otherPhb'
,
$phb
[
0
]);
$this
->
assign
(
'count'
,
$phb
[
1
]);
// echo $weekPhb[1];exit;
$this
->
assign
(
'pages'
,
ceil
(
$phb
[
1
]
/
$pageSize
));
//其他排行
$this
->
assign
([
'p'
=>
$p
,
'pageSize'
=>
$pageSize
,
'pages'
=>
ceil
(
$phb
[
1
]
/
$pageSize
),
'count'
=>
$phb
[
1
]]);
$this
->
assign
(
'otherPhb'
,
$phb
[
0
]);
$this
->
assign
(
'p'
,
$p
);
if
(
IS_GET
){
$this
->
assign
(
'gid'
,
$this
->
GID
);
if
(
$p
==
1
){
//我的排名
//我的排名
$this
->
setMyData
();
$this
->
setMyData
();
$this
->
display
();
$this
->
display
();
}
else
{
}
else
{
...
@@ -1463,75 +1460,77 @@ class PkTopAction extends IdentityAction{
...
@@ -1463,75 +1460,77 @@ class PkTopAction extends IdentityAction{
}
}
}
//其他排行榜
public
function
getOtherPhb
(){
$gid
=
$this
->
GID
;
$order
=
I
(
'order'
,
'lastmonthup'
);
$p
=
I
(
'p'
,
1
);
// $pageSize=10;
$pageSize
=
$gid
==
$this
->
GID
?
10
:
200
;
//分表归档
$suffix
=
D
(
'Userinfo'
)
->
getTable
(
$gid
);
$table
=
$suffix
?
'mncg_archive.userinfo'
.
$suffix
:
'mncg.userinfo'
;
$where
=
[
'sex'
=>
$gid
,
'new_phb'
=>
[
'gt'
,
0
],
'zt'
=>
1
];
//测试时不用缓存->cache(true,cacheTime())
$userNowList
=
M
(
$table
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
(
$where
)
->
order
(
$order
.
' desc'
)
->
page
(
$p
.
','
.
$pageSize
)
->
select
();
// var_dump($gid);exit;
$userids
=
array
();
$usertranids
=
[];
foreach
(
$userNowList
as
$key
=>
&
$rankV
)
{
$userIDs
=
explode
(
"X"
,
$rankV
[
'uid'
]);
$rankV
[
'user_id'
]
=
$userIDs
[
1
];
// $rankV['userUrl'] = tradeDetailLink($this->GID,3,$userIDs[1]);
$userids
[]
=
$userIDs
[
1
];
$usertranids
[]
=
$rankV
[
'uid'
];
}
$nick_name_arry
=
getUser
(
$userids
,
'nick'
);
////
$robot_user
=
[];
if
(
!
empty
(
$usertranids
)){
$robot_user
=
D
(
'Robot'
)
->
groupRobotTranUserList
(
$usertranids
);
}
foreach
(
$userNowList
as
$key
=>
&
$value
)
{
$nick_name
=
$nick_name_arry
[
$value
[
'user_id'
]];
//$value['user_name'] = $nick_name?$nick_name:$value['username'];
$value
[
'user_name'
]
=
$nick_name
;
$robot_flag_show
=
D
(
'Robot'
)
->
robot_flag_show
(
$value
[
'user_id'
]);
}
$value
[
'robot_user'
]
=
in_array
(
$value
[
'user_id'
],
$robot_user
)
&&
$robot_flag_show
==
1
?
1
:
0
;
$value
[
'robot_url'
]
=
in_array
(
$value
[
'user_id'
],
$robot_user
)
&&
$robot_flag_show
==
1
?
M_URL
.
'/Robot'
:
''
;
}
//其他排行榜
//总数目
// public function getOtherPhb(){
$totalCount
=
M
(
$table
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
(
$where
)
->
count
();
// $gid=$this->GID;
if
(
$caller
==
'local'
){
// $order=I('order','lastmonthup');
if
(
$gid
==
$this
->
GID
){
// $p=I('p', 1);
$return
[
'userList'
]
=
$userNowList
;
//// $pageSize=10;
$return
[
'order'
]
=
$order
;
// $pageSize=$gid==$this->GID?10:200;
$return
[
'totalCount'
]
=
$totalCount
;
// //分表归档
$return
[
'pages'
]
=
ceil
(
$totalCount
/
$pageSize
);
// $suffix = D('Userinfo')->getTable($gid);
}
else
{
// $table =$suffix?'mncg_archive.userinfo'.$suffix:'mncg.userinfo';
$return
[
'finalList'
]
=
$userNowList
;
// $where=['sex'=>$gid,'new_phb'=>['gt',0],'zt'=>1];
$return
[
'order'
]
=
$order
;
// //测试时不用缓存->cache(true,cacheTime())
// $userNowList = M($table, " ", C('DB_CONFIG_MNCG3'))->where($where)->order($order.' desc')->page($p.','.$pageSize)->select();
//// var_dump($gid);exit;
// $userids = array();
// $usertranids = [];
// foreach ($userNowList as $key => &$rankV) {
// $userIDs = explode("X", $rankV['uid']);
// $rankV['user_id'] = $userIDs[1];
//// $rankV['userUrl'] = tradeDetailLink($this->GID,3,$userIDs[1]);
// $userids[] = $userIDs[1];
// $usertranids[] = $rankV['uid'];
// }
//
// $nick_name_arry =getUser($userids,'nick');////
// $robot_user = [];
// if(!empty($usertranids)){
// $robot_user = D('Robot')->groupRobotTranUserList($usertranids);
// }
// foreach ($userNowList as $key => &$value) {
// $nick_name = $nick_name_arry[$value['user_id']];
// //$value['user_name'] = $nick_name?$nick_name:$value['username'];
// $value['user_name'] = $nick_name;
//
// $robot_flag_show = D('Robot')->robot_flag_show($value['user_id']);
// $value['robot_user'] = in_array($value['user_id'],$robot_user) && $robot_flag_show == 1 ? 1 : 0;
// $value['robot_url'] = in_array($value['user_id'],$robot_user) && $robot_flag_show == 1 ? M_URL.'/Robot' : '';
//
// }
// //总数目
// $totalCount = M($table, " ", C('DB_CONFIG_MNCG3'))->where($where)->count();
// if($caller=='local'){
// if($gid==$this->GID){
// $return['userList']=$userNowList;
// $return['order']=$order;
// $return['totalCount']=$totalCount;
// $return['totalCount']=$totalCount;
// $return['pages']=$totalCount/10;
// $return['pages']=ceil($totalCount/$pageSize);
}
// }else{
// $return['finalList']=$userNowList;
return
$return
;
// $return['order']=$order;
}
else
{
//// $return['totalCount']=$totalCount;
$this
->
assign
(
array
(
'order'
=>
$order
,
'userList'
=>
$userNowList
,
'p'
=>
$p
));
//// $return['pages']=$totalCount/10;
if
(
$gid
==
$this
->
GID
){
// }
$content
=
$this
->
fetch
(
'itemNow'
);
//
}
else
{
// return $return;
$content
=
$this
->
fetch
(
'finalList'
);
// }else{
}
// $this->assign(array('order'=>$order,'userList'=>$userNowList,'p'=>$p));
$content
=
$this
->
fetch
(
'itemNow'
);
// if($gid==$this->GID){
$this
->
ajaxReturn
(
array
(
// $content = $this->fetch('itemNow');
'status'
=>
1
,
'count'
=>
$totalCount
,
'data'
=>
$content
));
// }else{
}
// $content = $this->fetch('finalList');
}
// }
// $content = $this->fetch('itemNow');
// $this->ajaxReturn(array(
// 'status' => 1,'count' =>$totalCount,'data' => $content ));
// }
// }
public
function
setMyData
(){
public
function
setMyData
(){
$userId
=
$this
->
user
[
'userID'
];
$userId
=
$this
->
user
[
'userID'
];
...
...
app/Tpl/Vip/PkTop/bottom.html
View file @
21e2a50a
...
@@ -70,6 +70,11 @@
...
@@ -70,6 +70,11 @@
//一级一级返回1,隐藏导航栏2,一次性返回3
//一级一级返回1,隐藏导航栏2,一次性返回3
AppBridge
.
goBackStepOneOrMore
(
1
);
AppBridge
.
goBackStepOneOrMore
(
1
);
sendSmsAndSubmit
();
sendSmsAndSubmit
();
// 点报名按钮
// 点报名按钮
$
(
".baoming,.sscs"
).
click
(
function
()
{
$
(
".baoming,.sscs"
).
click
(
function
()
{
...
...
app/Tpl/Vip/PkTop/indexBak.html
deleted
100644 → 0
View file @
f19b9fb3
This diff is collapsed.
Click to expand it.
app/Tpl/Vip/PkTop/indexNew.html
deleted
100644 → 0
View file @
f19b9fb3
This diff is collapsed.
Click to expand it.
app/Tpl/Vip/PkTop/itemOther.html
View file @
21e2a50a
...
@@ -17,36 +17,27 @@
...
@@ -17,36 +17,27 @@
<img
src=
"{:getPortraitPath($vo['user_id'], 'small', true)}"
alt=
""
>
<img
src=
"{:getPortraitPath($vo['user_id'], 'small', true)}"
alt=
""
>
</span>
</span>
</div>
</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 goTradeNow"
pId=
"{$vo.user_id}"
pName=
"{$vo.user_name}"
>
{$vo.
nick}
</span>
<span
class=
"head-r-t"
>
<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>
</span>
</div>
</div>
<p
class=
"info-rank-w"
>
<p
class=
"info-rank-w"
>
<eq
name=
"order"
value=
"zongup"
>
<eq
name=
"order"
value=
"zongup"
>
<span
class=
"l"
>
总排行
<span
class=
"y"
>
第{$key+($p-1)*
10
+1}名
</span></span>
<span
class=
"l"
>
总排行
<span
class=
"y"
>
第{$key+($p-1)*
$pageSize
+1}名
</span></span>
<span
class=
"w"
>
月收益率
<span
class=
"w"
>
月收益率
<span
class=
"y"
<
egt
name=
'vo.lastmonthup'
value=
'0'
>
style='color:#d80000'
<else/>
style='color:#008E00'
</egt>
>{$vo.lastmonthup}%
</span>
<span
class=
"y"
<
egt
name=
'vo.lastmonthup'
value=
'0'
>
style='color:#d80000'
<else/>
style='color:#008E00'
</egt>
>{$vo.lastmonthup}%
</span>
</span>
</span>
</eq>
</eq>
<eq
name=
"order"
value=
"lastmonthup"
>
<eq
name=
"order"
value=
"lastmonthup"
>
<span
class=
"l"
>
月排行
<span
class=
"y"
>
第{$key+($p-1)*
10
+1}名
</span></span>
<span
class=
"l"
>
月排行
<span
class=
"y"
>
第{$key+($p-1)*
$pageSize
+1}名
</span></span>
<span
class=
"w"
>
月收益率
<span
class=
"w"
>
月收益率
<span
class=
"y"
<
egt
name=
'vo.lastmonthup'
value=
'0'
>
style='color:#d80000'
<else/>
style='color:#008E00'
</egt>
>{$vo.lastmonthup}%
</span>
<span
class=
"y"
<
egt
name=
'vo.lastmonthup'
value=
'0'
>
style='color:#d80000'
<else/>
style='color:#008E00'
</egt>
>{$vo.lastmonthup}%
</span>
</span>
</span>
</eq>
</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"
>
<eq
name=
"order"
value=
"lastdayup"
>
<span
class=
"l"
>
日排行
<span
class=
"y"
>
第{$key+($p-1)*
10
+1}名
</span></span>
<span
class=
"l"
>
日排行
<span
class=
"y"
>
第{$key+($p-1)*
$pageSize
+1}名
</span></span>
<span
class=
"w"
>
日收益率
<span
class=
"w"
>
日收益率
<span
class=
"y"
<
egt
name=
'vo.lastdayup'
value=
'0'
>
style='color:#d80000'
<else/>
style='color:#008E00'
</egt>
>{$vo.lastdayup}%
</span>
<span
class=
"y"
<
egt
name=
'vo.lastdayup'
value=
'0'
>
style='color:#d80000'
<else/>
style='color:#008E00'
</egt>
>{$vo.lastdayup}%
</span>
</span>
</span>
...
@@ -62,10 +53,10 @@
...
@@ -62,10 +53,10 @@
</div>
</div>
</foreach>
</foreach>
<else/>
<else/>
<
div
class=
"no-data"
>
<
!--<div class="no-data">--
>
<
img
class=
"no-data-img"
src=
"__PUBLIC__/Home/images/group/cc-nodata.png"
alt=
""
>
<
!--<img class="no-data-img" src="__PUBLIC__/Home/images/group/cc-nodata.png" alt="">--
>
<
p
class=
"no-data-msg"
>
当前没有盈利率排行
</p
>
<
!--<p class="no-data-msg">当前没有盈利率排行</p>--
>
<
/div
>
<
!--</div>--
>
</notempty>
</notempty>
...
...
app/Tpl/Vip/PkTop/phbOther.html
View file @
21e2a50a
...
@@ -140,9 +140,18 @@
...
@@ -140,9 +140,18 @@
<div
class=
"award-tab-panel"
>
<div
class=
"award-tab-panel"
>
<div
class=
"panel-btns"
>
<div
class=
"panel-btns"
>
<span
class=
"panel-btn active"
>
总盈利率
</span>
<span
class=
"panel-btn <eq name='order' value='zongup'>active</eq> "
order__=
"zongup"
>
<span
class=
"panel-btn center"
>
月盈利率
</span>
<a
href=
"/PkTop/phbOther?order=zongup"
>
总盈利率
</a>
<span
class=
"panel-btn"
>
日盈利率
</span>
</span>
<span
class=
"panel-btn center <eq name='order' value='lastmonthup'>active</eq> "
order__=
"lastmonthup"
>
<a
href=
"/PkTop/phbOther?order=lastmonthup"
>
月盈利率
</a>
</span>
<span
class=
"panel-btn <eq name='order' value='lastdayup'>active</eq> "
order__=
"lastdayup"
>
<a
href=
"/PkTop/phbOther?order=lastdayup"
>
日盈利率
</a>
</span>
</div>
</div>
<div
id=
"container"
>
<div
id=
"container"
>
<include
file=
"itemOther"
/>
<include
file=
"itemOther"
/>
...
@@ -182,60 +191,6 @@
...
@@ -182,60 +191,6 @@
$
(
function
(){
$
(
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 .panel-btn'
).
each
(
function
(
i
,
obj
){
$
(
obj
).
click
(
function
(){
$
(
'.award-tab-btn .panel-btn'
).
removeClass
(
'active'
);
$
(
this
).
addClass
(
'active'
);
$
(
'.award-tab-panel'
).
hide
();
$
(
$
(
'.award-tab-panel'
)[
i
]).
show
();
})
});
$
(
function
(){
$
(
function
(){
...
@@ -268,26 +223,6 @@
...
@@ -268,26 +223,6 @@
window
.
location
.
reload
();
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
()
{
window
.
onscroll
=
function
()
{
// alert(11);
// alert(11);
var
check
;
var
check
;
...
@@ -321,13 +256,12 @@
...
@@ -321,13 +256,12 @@
var
nextPage
=
parseInt
(
currPage
)
+
1
;
var
nextPage
=
parseInt
(
currPage
)
+
1
;
if
(
nextPage
>
parseInt
(
totalPage
))
{
if
(
nextPage
>
parseInt
(
totalPage
))
{
return
;
return
;
}
else
{
}
else
{
}
}
order
=
'{$order}'
;
$
.
get
(
'/PkTop/rankNow
'
,{
p
:
nextPage
,
'order'
:
order
,
'debug'
:
'scroll'
},
function
(
e
){
$
.
post
(
'/PkTop/phbOther
'
,{
p
:
nextPage
,
'order'
:
order
,
'debug'
:
'scroll'
},
function
(
e
){
$
(
".l_1"
).
hide
();
$
(
".l_1"
).
hide
();
if
(
nextPage
>=
parseInt
(
totalPage
))
{
if
(
nextPage
>=
parseInt
(
totalPage
))
{
// $(".l_2").hide();
// $(".l_2").hide();
...
@@ -350,4 +284,4 @@
...
@@ -350,4 +284,4 @@
</script>
</script>
</html>
</html>
<!--userId:{$user.userID}-userName:{$user.userName}-gid:{$gid}-->
<!--userId:{$user.userID}-userName:{$user.userName}-gid:{:PRIZE_GROUP_2021}-->
\ No newline at end of file
\ No newline at end of file
app/Tpl/Vip/PkTop/phbWeek.html
View file @
21e2a50a
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
</div>
</div>
<div
class=
"top-entrance-b"
style=
"width————: 75%;margin: 0 auto;"
>
<div
class=
"top-entrance-b"
style=
"width————: 75%;margin: 0 auto;"
>
<ul
class=
"entrance-tab-ul"
>
<ul
class=
"entrance-tab-ul"
>
<li
class=
"en-li f-left"
style=
"width: 24%"
>
赛程及奖项
</li>
<li
class=
"en-li f-left"
style=
"width: 24%"
>
<a
href=
"/PkTop"
>
赛程及奖项
</a>
</li>
<li
class=
"en-li f-center lottery-li"
style_=
"width: 24%"
>
瓜分10万
</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-center active"
style_=
"width: 24%"
>
获奖榜
</li>
<li
class=
"en-li f-right"
>
<li
class=
"en-li f-right"
>
...
@@ -260,21 +260,6 @@
...
@@ -260,21 +260,6 @@
//点击当前排行下面的几个盈利率
$
(
'.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'
);
});
...
...
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