Commit 776883ba authored by houdong's avatar houdong

加更多大赛页面

parent d2905f60
...@@ -1071,6 +1071,13 @@ class IndexAction extends IdentityAction { ...@@ -1071,6 +1071,13 @@ class IndexAction extends IdentityAction {
return 1; return 1;
} }
//官方有奖赛列表页
public function moreDs(){
$userId=$this->user['userID'];
$gList=D('Niu')->getMoreDs($userId);
$this->assign('gList',$gList);
$this->display();
}
} }
......
...@@ -1168,6 +1168,13 @@ class PkTopAction extends IdentityAction{ ...@@ -1168,6 +1168,13 @@ class PkTopAction extends IdentityAction{
return 1; return 1;
} }
//官方有奖赛列表页
public function moreDs(){
$userId=$this->user['userID'];
$gList=D('Niu')->getMoreDs($userId);
$this->assign('gList',$gList);
$this->display();
}
} }
?> ?>
......
<?php
class NiuModel extends Model{
public $autoCheckFields = false;
public function getMoreDs($userId) {
$ids = D('Group')->getGroupCache($userId);
$MAP=[NIU_BAI_ID=>'Niubai',NIU_SAN_ID=>'Niusan',NIU_STRONG_ID=>'Strong',M2M_GROUP=>'M2m',
PRIZE_GROUP_2021=>VIP_URL.'/PkTop',ZHONGJIN_GROUP=>'Zjds'];
$where=['a.group_id'=>['in',array_keys($MAP)]];
$gList = M('Group a')->join('left join cofool_group_info b on a.group_id=b.group_id')
->field('a.group_id,a.name,startTime,endTime,b.cover')->where($where)->select();
// echo M('Group a')->getLastSql();exit;
foreach ($gList as $k => &$g) {
$g['joinStatus']=in_array($g['group_id'],$ids)?1:0;
$g['url']=$MAP[$g['group_id']];
}
return $gList;
}
}
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<script type="text/javascript" src="__PUBLIC__/js/clipboard.min.js" ></script> <script type="text/javascript" src="__PUBLIC__/js/clipboard.min.js" ></script>
<script type="text/javascript" src="__PUBLIC__/js/slider/js/jquery.bxslider.js"></script> <script type="text/javascript" src="__PUBLIC__/js/slider/js/jquery.bxslider.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/pk.js{$Think.config.js_version}323233"></script> <script type="text/javascript" src="__PUBLIC__/js/pk.js{$Think.config.js_version}323233"></script>
<script src="../../../../Public/js/pk.js"></script> <!--<script src="../../../../Public/js/pk.js"></script>-->
</head> </head>
<body> <body>
......
...@@ -13,14 +13,14 @@ ...@@ -13,14 +13,14 @@
<a href="/">奖项及赛程</a> <a href="/">奖项及赛程</a>
</div> </div>
<!--中金赛场--> <!--中金赛场-->
<div class="white-tab lottery-tab " > <!--<div class="white-tab lottery-tab " >-->
<a href="{:WWW_URL}/Zjds" target="_blank">券商专场 <!--<a href="{:WWW_URL}/Zjds" target="_blank">券商专场-->
<!--<span class="hot" style="background: unset;font-size: 14px;width: 67px;top: -15px;background-color: #FF455B;--> <!--&lt;!&ndash;<span class="hot" style="background: unset;font-size: 14px;width: 67px;top: -15px;background-color: #FF455B;&ndash;&gt;-->
<!--font-weight: bold;text-align: center;height: 37px;color: #fff;border-radius: 13px;left: 29px;">奖金翻倍</span>--> <!--&lt;!&ndash;font-weight: bold;text-align: center;height: 37px;color: #fff;border-radius: 13px;left: 29px;">奖金翻倍</span>&ndash;&gt;-->
<img src="__PUBLIC__/images/2022/zjHot.png" <!--<img src="__PUBLIC__/images/2022/zjHot.png"-->
style="width: 79px;position: absolute;right: 0%;top: -25px;"> <!--style="width: 79px;position: absolute;right: 0%;top: -25px;">-->
</a> <!--</a>-->
</div> <!--</div>-->
<div class="white-tab lottery-tab <eq name='viewFlag' value='2'>active</eq> " > <div class="white-tab lottery-tab <eq name='viewFlag' value='2'>active</eq> " >
<a href="/index/lucky">瓜分10万</a> <a href="/index/lucky">瓜分10万</a>
</div> </div>
...@@ -33,7 +33,12 @@ ...@@ -33,7 +33,12 @@
<div class="white-tab <eq name='viewFlag' value='5'>active</eq> " > <div class="white-tab <eq name='viewFlag' value='5'>active</eq> " >
<a href="/index/rule">赛制介绍</a> <a href="/index/rule">赛制介绍</a>
</div> </div>
<div class="white-tab <eq name='viewFlag' value='6'>active</eq> " >
<a href="/index/moreDs">更多大赛
<img src="__PUBLIC__/images/2022/zjHot.png"
style="width: 79px;position: absolute;right: 29%;top: -42px;">
</a>
</div>
<!--gid:{$_GET.gid|default=FINALS_GROUP}--> <!--gid:{$_GET.gid|default=FINALS_GROUP}-->
<eq name="joinStatus" value="1"> <eq name="joinStatus" value="1">
......
...@@ -47,9 +47,8 @@ ...@@ -47,9 +47,8 @@
<div class="header-hei"></div> <div class="header-hei"></div>
<div class="header-h"> <div class="header-h">
<a href="javascript:;" class="header-h-a"><span class="back-btn back-btn-a"></span></a> <a href="javascript:;" class="header-h-a"><span class="back-btn back-btn-a"></span></a>
<ul class="header-title"> <span class="header-share"></span>
<li class="one-li">全民炼股争霸赛(2022)</li> <ul class="header-title"> <li class="one-li">全民炼股争霸赛(2022)</li></ul>
</ul>
</div> </div>
</div> </div>
<div class="head-fit"></div> <div class="head-fit"></div>
...@@ -75,17 +74,23 @@ ...@@ -75,17 +74,23 @@
<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 active" style="width: 20%">赛程及奖项</li> <li class="en-li f-left active" style="width: 20%">赛程及奖项</li>
<li class="en-li f-center" > <!--<li class="en-li f-center" >-->
<a href="{:M_URL}/Zjds" style="color:#f8bb8e" target="_blank">中金赛场 <!--<a href="{:M_URL}/Zjds" style="color:#f8bb8e" target="_blank">中金赛场-->
<img src="__PUBLIC__/images/2022/zjHot.png" <!--<img src="__PUBLIC__/images/2022/zjHot.png"-->
style="width: 52px;position: absolute;right: 58%;top: -17px;"> <!--style="width: 52px;position: absolute;right: 58%;top: -17px;">-->
</a> <!--</a>-->
<!--<span class="hot" style="font-size: 12px;width: 66px;top: -17px;background-color: #FF455B;--> <!--<span class="hot" style="font-size: 12px;width: 66px;top: -17px;background-color: #FF455B;-->
<!--font-weight: bold;text-align: center;height: 25px;color: #fff;border-radius: 13px;left: 71px;position: absolute;">奖金翻倍</span>--> <!--font-weight: bold;text-align: center;height: 25px;color: #fff;border-radius: 13px;left: 71px;position: absolute;">奖金翻倍</span>-->
</li> <!--</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" style_="width: 24%">排行榜</li> <li class="en-li f-center" style_="width: 24%">排行榜</li>
<li class="en-li f-right" style_="width: 24%">赛制介绍</li> <li class="en-li f-center" style_="width: 24%">赛制介绍</li>
<li class="en-li f-right" >
<a href="{:M_URL}/Public/officialList" style="color:#f8bb8e" >更多大赛
<img src="__PUBLIC__/images/2022/zjHot.png"
style="width: 52px;position: absolute;right: 0%;top: -17px;"/>
</a>
</li>
</ul> </ul>
</div> </div>
</div> </div>
...@@ -98,8 +103,7 @@ ...@@ -98,8 +103,7 @@
<li class="notice-li" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;max-width: 290px;display: block;color:#C60000;"> <li class="notice-li" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;max-width: 290px;display: block;color:#C60000;">
<notempty name="vo.url"> <notempty name="vo.url">
<a href="{$vo.url}" style="color:#C60000;">{$vo.title}</a> <a href="{$vo.url}" style="color:#C60000;">{$vo.title}</a>
<else/> <else/>{$vo.title}
{$vo.title}
</notempty> </notempty>
</li> </li>
</foreach> </foreach>
...@@ -152,8 +156,11 @@ ...@@ -152,8 +156,11 @@
<p class="contact-n f12" style="font-size: 12px;text-align: left">本大赛最终解释权归叩富网所有!本活动与苹果公司无关!</p> <p class="contact-n f12" style="font-size: 12px;text-align: left">本大赛最终解释权归叩富网所有!本活动与苹果公司无关!</p>
</div> </div>
</div> </div>
<include file="static_rule"/>
</div> </div>
<div class="contest-body-detail" style="display: none"> <div class="contest-body-detail" style="display: none">
<!--1pk付款,2发起pk,3pk胜利,4pk失败,5胜利退钱,6失败钱归passive,7买重置卡--> <!--1pk付款,2发起pk,3pk胜利,4pk失败,5胜利退钱,6失败钱归passive,7买重置卡-->
<!--<div class="b-notice">--> <!--<div class="b-notice">-->
...@@ -255,13 +262,18 @@ ...@@ -255,13 +262,18 @@
</div> </div>
</div> </div>
<div class="contest-body-detail" style="display: none;"> <div class="contest-body-detail" style="display: none;">
<include file="static_rule"/> <include__ file="static_rule"/>
</div> </div>
<eq name="hideShiPan" value="0"> <eq name="hideShiPan" value="0">
<div class="bottom-j-btn bottom-btn"> <div class="bottom-j-btn bottom-btn">
<div style="width: 25%;background-color: #fdfdfd;float: left" id="zixun">福利咨询</div> <!--<div style="width: 25%;background-color: #fdfdfd;float: left" id="zixun">福利咨询</div>-->
<div class="bottom-j-left" style="width: 25%"> <div style="width: 33.3%;background-color: #fdfdfd;float: left" id="zixun">咨询</div>
<img class="icon" src="__PUBLIC__/Home/images/g2020/bottom-icon.png" alt="">资金重置卡 <div class="bottom-j-left" style="width: 33.3%">
<!--<img class="icon" src="__PUBLIC__/Home/images/g2020/bottom-icon.png" alt="">资金重置卡-->
更多大赛
<img src="__PUBLIC__/images/2022/zjHot.png"
style="width: 52px;position: absolute;right: 39%;top: -17px;"/>
</a>
</div> </div>
<eq name="joinStatus" value="1"> <eq name="joinStatus" value="1">
<div class="bottom-j-right goTradeBtn" style="width: initial;float: none;">进入交易</div> <div class="bottom-j-right goTradeBtn" style="width: initial;float: none;">进入交易</div>
...@@ -293,6 +305,8 @@ ...@@ -293,6 +305,8 @@
</body> </body>
<script type="text/javascript" src="__PUBLIC__/js/jweixin-1.0.0.js"></script> <script type="text/javascript" src="__PUBLIC__/js/jweixin-1.0.0.js"></script>
<script> <script>
//调用app分享
AppBridge.app_share('{$appParam}');
AppBridge.foot_fit(); AppBridge.foot_fit();
//进入页面的时候取userId //进入页面的时候取userId
...@@ -388,14 +402,14 @@ ...@@ -388,14 +402,14 @@
// $($('.contest-body-detail')[i-1]).show(); // $($('.contest-body-detail')[i-1]).show();
//1是中金大赛,调到别的链接 //1是中金大赛,调到别的链接
if(i==1){ // if(i==1){
// location.href='{:M_URL}/Zjds'; // // location.href='{:M_URL}/Zjds';
return; // return;
} // }
if(i==0){ if(i==0){
$($('.contest-body-detail')[0]).show(); $($('.contest-body-detail')[0]).show();
}else{ }else{
$($('.contest-body-detail')[i-1]).show(); $($('.contest-body-detail')[i]).show();
} }
console.log('当前外层标签序号:'+i); console.log('当前外层标签序号:'+i);
...@@ -561,6 +575,7 @@ ...@@ -561,6 +575,7 @@
} }
}); });
}); });
//点击年度精英赛的月份后请求后台 //点击年度精英赛的月份后请求后台
$('.selectPass').click(function(){ $('.selectPass').click(function(){
$.post("/PkTop/getMonthData", {month:$(this).attr('data'),'type':'final'}, function (data) { $.post("/PkTop/getMonthData", {month:$(this).attr('data'),'type':'final'}, function (data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment