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
54771ce1
Commit
54771ce1
authored
Apr 10, 2023
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
交易页面加周排名
parent
84b5a94a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
114 additions
and
149 deletions
+114
-149
IndexAction.class.php
app/Lib/Action/Vip/IndexAction.class.php
+51
-20
phb.html
app/Tpl/Vip/Index/phb.html
+3
-1
saicheng.html
app/Tpl/Vip/Index/saicheng.html
+18
-14
index.html
app/Tpl/Vip/PkTop/index.html
+2
-25
phbOther.html
app/Tpl/Vip/PkTop/phbOther.html
+39
-44
phbWeek.html
app/Tpl/Vip/PkTop/phbWeek.html
+1
-45
No files found.
app/Lib/Action/Vip/IndexAction.class.php
View file @
54771ce1
...
@@ -87,6 +87,10 @@ class IndexAction extends IdentityAction {
...
@@ -87,6 +87,10 @@ class IndexAction extends IdentityAction {
$weixin
=
M
()
->
db
(
10
,
C
(
'DB_CONFIG_DEMO'
))
->
table
(
'cofool_group_info'
)
->
where
([
'group_id'
=>
$this
->
GID
])
->
getField
(
'wechat'
);
$weixin
=
M
()
->
db
(
10
,
C
(
'DB_CONFIG_DEMO'
))
->
table
(
'cofool_group_info'
)
->
where
([
'group_id'
=>
$this
->
GID
])
->
getField
(
'wechat'
);
$this
->
assign
(
'weixin'
,
$weixin
);
$this
->
assign
(
'weixin'
,
$weixin
);
// echo $weixin;exit;
// echo $weixin;exit;
if
(
$userId
){
$myData
=
$this
->
getMyData
();
$this
->
assign
(
'myData'
,
$myData
);
}
$this
->
display
();
$this
->
display
();
...
@@ -221,26 +225,27 @@ class IndexAction extends IdentityAction {
...
@@ -221,26 +225,27 @@ class IndexAction extends IdentityAction {
$this
->
assign
(
'userCount'
,
$groupInfo
[
'member_quantity'
]);
$this
->
assign
(
'userCount'
,
$groupInfo
[
'member_quantity'
]);
//取我的排名数据
//取我的排名数据
if
(
$userId
){
if
(
$userId
){
$tid
=
$this
->
GID
.
'X'
.
$userId
;
// $tid=$this->GID.'X'.$userId;
//
$suffix
=
D
(
'Userinfo'
)
->
getTable
(
$this
->
GID
);
// $suffix = D('Userinfo')->getTable($this->GID);
$table
=
$suffix
?
'mncg_archive.userinfo'
.
$suffix
:
'mncg.userinfo a'
;
// $table=$suffix?'mncg_archive.userinfo'.$suffix:'mncg.userinfo a';
//->cache(true,cacheTime())
// //->cache(true,cacheTime())
$myData
=
M
(
$table
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
([
'uid'
=>
$tid
])
->
find
();
// $myData = M($table, " ", C('DB_CONFIG_MNCG3'))->where(['uid'=>$tid])->find();
if
(
!
empty
(
$myData
)){
// if(!empty($myData)){
$myData
[
'userId'
]
=
$userId
;
// $myData['userId']=$userId;
$myData
[
'userName'
]
=
$this
->
user
[
'userName'
];
// $myData['userName']=$this->user['userName'];
//取周排行
// //取周排行
$where
=
[
'sex'
=>
$this
->
GID
,
'monthzzl'
=>
[
'gt'
,
0
],
'lastweekup'
=>
[
'gt'
,
0
],
'zt'
=>
1
];
// $where=['sex'=>$this->GID,'monthzzl'=>['gt',0],'lastweekup'=>['gt',0],'zt'=>1];
//->cache(true,cacheTime())
// //->cache(true,cacheTime())
$weekData
=
M
(
$table
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
(
$where
)
->
order
(
'lastweekup desc'
)
->
select
();
// $weekData = M($table, " ", C('DB_CONFIG_MNCG3'))->where($where)->order('lastweekup desc')->select();
foreach
(
$weekData
as
$k
=>
$v
)
{
// foreach ($weekData as $k=>$v) {
if
(
$v
[
'uid'
]
==
$tid
){
// if($v['uid']==$tid){
$myData
[
'weekPhb'
]
=
$k
+
1
;
// $myData['weekPhb']=$k+1;
break
;
// break;
}
// }
}
// }
}
// }
$myData
=
$this
->
getMyData
();
$this
->
assign
(
'myData'
,
$myData
);
$this
->
assign
(
'myData'
,
$myData
);
}
}
...
@@ -1325,6 +1330,32 @@ class IndexAction extends IdentityAction {
...
@@ -1325,6 +1330,32 @@ class IndexAction extends IdentityAction {
$this
->
ajaxReturn
([
'status'
=>
1
]);
$this
->
ajaxReturn
([
'status'
=>
1
]);
}
}
public
function
getMyData
(){
$userId
=
$this
->
user
[
'userID'
];
$tid
=
$this
->
GID
.
'X'
.
$userId
;
$suffix
=
D
(
'Userinfo'
)
->
getTable
(
$this
->
GID
);
$table
=
$suffix
?
'mncg_archive.userinfo'
.
$suffix
:
'mncg.userinfo a'
;
//->cache(true,cacheTime())
$myData
=
M
(
$table
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
([
'uid'
=>
$tid
])
->
find
();
if
(
!
empty
(
$myData
)){
$myData
[
'userId'
]
=
$userId
;
$myData
[
'userName'
]
=
$this
->
user
[
'userName'
];
//取周排行
$where
=
[
'sex'
=>
$this
->
GID
,
'monthzzl'
=>
[
'gt'
,
0
],
'lastweekup'
=>
[
'gt'
,
0
],
'zt'
=>
1
];
//->cache(true,cacheTime())
$weekData
=
M
(
$table
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
(
$where
)
->
order
(
'lastweekup desc'
)
->
select
();
foreach
(
$weekData
as
$k
=>
$v
)
{
if
(
$v
[
'uid'
]
==
$tid
){
$myData
[
'weekPhb'
]
=
$k
+
1
;
break
;
}
}
}
return
$myData
;
// $this->assign('myData',$myData);
}
}
}
...
...
app/Tpl/Vip/Index/phb.html
View file @
54771ce1
...
@@ -46,7 +46,8 @@
...
@@ -46,7 +46,8 @@
<!-- </div>-->
<!-- </div>-->
<div
class=
"contest-pbody-detail"
>
<div
class=
"contest-pbody-detail"
>
<!--add-->
<!--add-->
<div
class=
"my-info-data award-list"
>
<notempty
name=
"user.userID"
>
<div
class=
"my-info-data award-list"
>
<span
class=
"span-t"
>
我的排名
</span>
<span
class=
"span-t"
>
我的排名
</span>
<div
class=
"head-r-num"
>
<div
class=
"head-r-num"
>
<span
class=
"user-head"
>
<span
class=
"user-head"
>
...
@@ -85,6 +86,7 @@
...
@@ -85,6 +86,7 @@
<span
class=
"tip-msg2"
style=
"right:30%;"
>
保持当前收益,奖金稳定到手
</span>
<span
class=
"tip-msg2"
style=
"right:30%;"
>
保持当前收益,奖金稳定到手
</span>
</if>
</if>
</div>
</div>
</notempty>
<div
class=
"contest-item ranking-list"
style=
"margin-top: 25px;"
>
<div
class=
"contest-item ranking-list"
style=
"margin-top: 25px;"
>
<div
class=
"table-data-des"
>
<div
class=
"table-data-des"
>
<span
class=
"c9"
>
(更新于{$updateTime})
</span>
<span
class=
"c9"
>
(更新于{$updateTime})
</span>
...
...
app/Tpl/Vip/Index/saicheng.html
View file @
54771ce1
...
@@ -40,27 +40,31 @@
...
@@ -40,27 +40,31 @@
</foreach>
</foreach>
</ul>
</ul>
</div>
</div>
<a
href=
"
javascript:;
"
class=
"ds-state"
>
大赛动态>
</a>
<a
href=
"
{:WWW_URL}/Pedia/index/categoryId/129.html
"
class=
"ds-state"
>
大赛动态>
</a>
</div>
</div>
<!--add-->
<!--add-->
<div
class=
"my-info-data"
>
<notempty
name=
"user.userID"
>
<span
class=
"span-t"
>
我的战绩
</span>
<div
class=
"my-info-data"
>
<div
class=
"head-r-num"
>
<span
class=
"span-t"
>
我的战绩
</span>
<div
class=
"head-r-num"
>
<span
class=
"user-head"
pId__=
"{$vo.user_id}"
pName__=
"{$vo.user_name}"
>
<span
class=
"user-head"
pId__=
"{$vo.user_id}"
pName__=
"{$vo.user_name}"
>
<img
src=
"{:getPortraitPath($vo['user_id'], 'small', true)}"
alt=
""
>
<img
src=
"{:getPortraitPath($vo['user_id'], 'small', true)}"
alt=
""
>
</span>
</span>
<span
class=
"head-r-t"
pId__=
"{$myData.user_id}"
pName=
"{$myData.userName}"
>
{$myData.userName}
</span>
<span
class=
"head-r-t"
pId__=
"{$myData.user_id}"
pName=
"{$myData.userName}"
>
{$myData.userName}
</span>
</div>
</div>
<div
class=
"info-data"
>
<div
class=
"info-data"
>
<div
class=
"data"
><span
class=
"title"
>
周盈利率:
</span>
<div
class=
"data"
><span
class=
"title"
>
周盈利率:
</span>
<gt
name=
"myData.lastweekup"
value=
"0"
><span
class=
"num red"
>
{$myData.lastweekup}%
</span></gt>
<gt
name=
"myData.lastweekup"
value=
"0"
><span
class=
"num red"
>
{$myData.lastweekup}%
</span></gt>
<eq
name=
"myData.lastweekup"
value=
"0"
><span
class=
"num "
>
{$myData.lastweekup}%
</span></eq>
<eq
name=
"myData.lastweekup"
value=
"0"
><span
class=
"num "
>
{$myData.lastweekup}%
</span></eq>
<lt
name=
"myData.lastweekup"
value=
"0"
><span
class=
"num green"
>
{$myData.lastweekup}%
</span></lt>
<lt
name=
"myData.lastweekup"
value=
"0"
><span
class=
"num green"
>
{$myData.lastweekup}%
</span></lt>
</div>
<div
class=
"data"
><span
class=
"title"
>
月周转率:
</span><span
class=
"num"
>
{$myData.monthzzl}%
</span></div>
</div>
</div>
<
div
class=
"data"
><span
class=
"title"
>
月周转率:
</span><span
class=
"num"
>
{$myData.monthzzl}%
</span></div
>
<
span
class=
"tip-msg"
>
距离获得奖金只差 交易一笔
</span
>
</div>
</div>
<span
class=
"tip-msg"
>
距离获得奖金只差 交易一笔
</span>
</notempty>
</div>
<div
class=
"contest-setting contest-item"
style=
"padding: 50px 50px 30px 50px;"
>
<div
class=
"contest-setting contest-item"
style=
"padding: 50px 50px 30px 50px;"
>
<div
class=
"title-p"
>
赛程安排
</div>
<div
class=
"title-p"
>
赛程安排
</div>
<div
class=
"setting-info"
>
<div
class=
"setting-info"
>
...
...
app/Tpl/Vip/PkTop/index.html
View file @
54771ce1
...
@@ -93,31 +93,8 @@
...
@@ -93,31 +93,8 @@
</div>
</div>
<a
href=
"{:M_URL}/Pedia?cateId=129"
class=
"ds-state"
>
大赛动态>
</a>
<a
href=
"{:M_URL}/Pedia?cateId=129"
class=
"ds-state"
>
大赛动态>
</a>
</div>
</div>
<!--add-->
<include
file=
"myItem"
/>
<notempty
name=
"myData"
>
<div
class=
"my-info-data"
>
<div
class=
"head-r-num"
>
<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__=
"{$myData.user_id}"
pName=
"{$myData.userName}"
>
{$myData.userName}
</span>
</div>
<div
class=
"info-data"
>
<table
cellspacing=
"0"
cellpadding=
"0"
>
<tr
class=
"data-num"
>
<td
class=
"num red"
>
{$myData.lastweekup}%
</td><td
class=
"num"
style=
"text-align: right;"
>
{$myData.monthzzl}%
</td>
</tr>
<tr
class=
"data-title"
>
<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>
</div>
</notempty>
<div
class=
"contest-setting contest-item"
>
<div
class=
"contest-setting contest-item"
>
<div
class=
"title-p"
>
赛程安排
</div>
<div
class=
"title-p"
>
赛程安排
</div>
...
...
app/Tpl/Vip/PkTop/phbOther.html
View file @
54771ce1
...
@@ -78,51 +78,46 @@
...
@@ -78,51 +78,46 @@
<include
file=
"nav"
/>
<include
file=
"nav"
/>
<div
class=
"contest-body-detail"
>
<div
class=
"contest-body-detail"
>
<!--add-->
<!--add-->
<notempty
name=
"myData"
>
<!--<notempty name="myData">-->
<div
class=
"my-info-data award-list"
>
<!--<div class="my-info-data award-list">-->
<span
class=
"pm-t"
><img
src=
"__PUBLIC__/images/2023/pm-t.png"
alt=
""
></span>
<!--<span class="pm-t"><img src="__PUBLIC__/images/2023/pm-t.png" alt=""></span>-->
<div
class=
"head-r-num"
>
<!--<div class="head-r-num">-->
<!--<span class="head-ranking">-->
<!---->
<!--<eq name="p" value="1">-->
<!--<span class="user-head" pId="{$vo.user_id}" pName="{$vo.user_name}">-->
<!--<eq name='key' value='0'><img src="__PUBLIC__/Home/images/g2020/crown1.png" alt=""></eq>-->
<!--<img src="{:getPortraitPath($myData['userId'], 'small', true)}" alt="">-->
<!--<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>-->
<span
class=
"user-head"
pId=
"{$vo.user_id}"
pName=
"{$vo.user_name}"
>
<!--<span class="head-r-t" pId="{$vo.user_id}" pName="{$vo.user_name}">{$myData.userName}</span>-->
<img
src=
"{:getPortraitPath($myData['userId'], 'small', true)}"
alt=
""
>
<!--</div>-->
</span>
<!--<div class="info-data">-->
<span
class=
"head-r-t"
pId=
"{$vo.user_id}"
pName=
"{$vo.user_name}"
>
{$myData.userName}
</span>
<!--<table cellspacing="0" cellpadding="0">-->
</div>
<!--<tr class="data-num">-->
<div
class=
"info-data"
>
<!--<td class="num red" style="text-align: left;">-->
<table
cellspacing=
"0"
cellpadding=
"0"
>
<!--<empty name="myData.weekPhb">--<else/>第{$myData.weekPhb}名</empty>-->
<tr
class=
"data-num"
>
<!--</td>-->
<td
class=
"num red"
style=
"text-align: left;"
>
<!--<empty name="myData.lastweekup"><td class="num ">--</td>-->
<empty
name=
"myData.weekPhb"
>
--
<else/>
第{$myData.weekPhb}名
</empty>
<!--<else/>-->
</td>
<!--<gt name="myData.lastweekup" value="0"><td class="num red">{$myData.lastweekup}%</td></gt>-->
<empty
name=
"myData.lastweekup"
><td
class=
"num "
>
--
</td>
<!--<eq name="myData.lastweekup" value="0"><td class="num ">{$myData.lastweekup}%</td></eq>-->
<else/>
<!--<lt name="myData.lastweekup" value="0"><td class="num green">{$myData.lastweekup}%</td></lt>-->
<gt
name=
"myData.lastweekup"
value=
"0"
><td
class=
"num red"
>
{$myData.lastweekup}%
</td></gt>
<!--</empty>-->
<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;">-->
</empty>
<!--<empty name="myData.monthzzl">--<else/>{$myData.monthzzl}%</empty>-->
<!--</td>-->
<td
class=
"num"
style=
"text-align: right;"
>
<!--</tr>-->
<empty
name=
"myData.monthzzl"
>
--
<else/>
{$myData.monthzzl}%
</empty>
<!--<tr class="data-title">-->
</td>
<!--<td class="title" style="text-align: left;">周排行</td><td class="title">周盈利率</td>-->
</tr>
<!--<td class="title" style="text-align: right;">月周转率</td>-->
<tr
class=
"data-title"
>
<!--</tr>-->
<td
class=
"title"
style=
"text-align: left;"
>
周排行
</td><td
class=
"title"
>
周盈利率
</td>
<!--</table>-->
<td
class=
"title"
style=
"text-align: right;"
>
月周转率
</td>
<!--</div>-->
</tr>
<!--<if condition="empty(myData['monthzzl']) or myData['monthzzl'] eq 0">-->
</table>
<!--<span class="tip-msg">距离获得奖金只差 交易一笔</span>-->
</div>
<!--</if>-->
<if
condition=
"empty(myData['monthzzl']) or myData['monthzzl'] eq 0"
>
<!--<a href="{:M_URL}/Box#3" class="reset-btn"><img src="__PUBLIC__/images/2023/reset-img.png" alt="">重置模拟金</a>-->
<span
class=
"tip-msg"
>
距离获得奖金只差 交易一笔
</span>
<!--</div>-->
</if>
<!--</notempty>-->
<a
href=
"{:M_URL}/Box#3"
class=
"reset-btn"
><img
src=
"__PUBLIC__/images/2023/reset-img.png"
alt=
""
>
重置模拟金
</a>
<include
file=
"myItem"
/>
</div>
</notempty>
<div
class=
"award-cont"
>
<div
class=
"award-cont"
>
<div
class=
"award-tab-btn"
>
<div
class=
"award-tab-btn"
>
<div
class=
"btn "
><a
href=
"/PkTop/phbWeek"
>
周奖榜单
</a></div>
<div
class=
"btn "
><a
href=
"/PkTop/phbWeek"
>
周奖榜单
</a></div>
...
...
app/Tpl/Vip/PkTop/phbWeek.html
View file @
54771ce1
...
@@ -77,51 +77,7 @@
...
@@ -77,51 +77,7 @@
<div
class=
"championship-cont warp-container"
>
<div
class=
"championship-cont warp-container"
>
<include
file=
"nav"
/>
<include
file=
"nav"
/>
<div
class=
"contest-body-detail"
>
<div
class=
"contest-body-detail"
>
<!--add-->
<include
file=
"myItem"
/>
<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.weekPhb"
>
--
<else/>
第{$myData.weekPhb}名
</empty>
</td>
<empty
name=
"myData.lastweekup"
><td
class=
"num"
>
--
</td>
<else/>
<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>
</empty>
<td
class=
"num"
style=
"text-align: right;"
>
<empty
name=
"myData.monthzzl"
>
--
<else/>
{$myData.monthzzl}%
</empty>
</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>
<if
condition=
"empty(myData['monthzzl']) or myData['monthzzl'] eq 0"
>
<span
class=
"tip-msg"
>
距离获得奖金只差 交易一笔
</span>
</if>
<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-cont"
>
<div
class=
"award-tab-btn"
>
<div
class=
"award-tab-btn"
>
<div
class=
"btn active"
><a
href=
"/PkTop/phbWeek"
>
周奖榜单
</a></div>
<div
class=
"btn active"
><a
href=
"/PkTop/phbWeek"
>
周奖榜单
</a></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