Commit 43912cc7 authored by houdong's avatar houdong

更多大赛

parent 21ab6f16
......@@ -239,7 +239,7 @@ class IndexAction extends IdentityAction {
// $groupInfo=M('Group')->field('group_id,web_id,category,name,startTime,endTime')->where(array('group_id'=>$groupId))->find();
$groupInfo=M('Group a')->join('left join cofool_group_info b on a.group_id=b.group_id')
->field('a.group_id,a.web_id,a.category,a.name,startTime,endTime,wechat')->where(['a.group_id'=>$groupId])->find();
$bmContent='您正在报名全民争霸赛,请添加管理员微信加入【大赛高手交流群】,陪伴老师微信号:'.$groupInfo['wechat'];
$bmContent='您正在报名全民争霸赛,请添加陪伴老师微信加入【大赛高手交流群】,老师微信号:'.$groupInfo['wechat'];
//大赛是否结束
$groupStatus=0;
......
......@@ -542,7 +542,7 @@ class PkTopAction extends IdentityAction{
$field='a.group_id,a.name,question_privacy,reg_answer,a.type,a.web_id,a.capital,a.teamid,a.category,is_open,wechat';
$group=M('Group a')->join('left join cofool_group_info b on a.group_id=b.group_id')
->field($field)->where(['a.group_id'=>$groupId])->find();
$bmContent='您正在报名全民争霸赛,请添加管理员微信加入【大赛高手交流群】,陪伴老师微信号:'.$group['wechat'];
$bmContent='您正在报名全民争霸赛,请添加陪伴老师微信加入【大赛高手交流群】,老师微信号:'.$group['wechat'];
if($group['is_open']==0){
return array('status'=>0,'info'=>'当前大赛不允许加入!');
......
......@@ -49,7 +49,7 @@
<a href="javascript:;" class="join-btn baoming">报名参赛</a>
<else/>
<eq name="vo.joinStatus" value="1">
<a href="{$Think.config.WWW_URL}/Trade/Stock/index/gid/{$_GET.gid|default=PRIZE_GROUP_2021}" class="join-btn">进入交易</a>
<a href="{$Think.config.WWW_URL}/Trade/Stock/index/gid/{$vo['group_id']}" class="join-btn">进入交易</a>
<else/>
<a href="{$vo.url}" class="join-btn" target="_blank">报名参赛</a>
</eq>
......
......@@ -38,9 +38,9 @@
<img src="__PUBLIC__/images/2022/gdjj.png" style="width: 78px;position: absolute;right: 20%;top: -20px;">
</a>
</div>
<!--gid:{$_GET.gid|default=FINALS_GROUP}-->
<eq name="joinStatus" value="1">
<a href="{$Think.config.WWW_URL}/Trade/Stock/index/gid/{$_GET.gid|default=PRIZE_GROUP_2021}" style="color:#D80000">
<a href="{$Think.config.WWW_URL}/Trade/Stock/index/gid/{$Think.const.PRIZE_GROUP_2021}" style="color:#D80000">
<div class="white-tab-r">进入交易</div>
</a>
<else/>
......@@ -49,7 +49,7 @@
</eq>
<gt name="user.userID" value="0">
<eq name="joinStatus" value="1">
<a href="{$Think.config.WWW_URL}/Trade/Stock/index/gid/{$_GET.gid|default=PRIZE_GROUP_2021}">
<a href="{$Think.config.WWW_URL}/Trade/Stock/index/gid/{$Think.const.PRIZE_GROUP_2021}">
<span class="user-photo">{:getPortraitPath($user['userID'],'middle',FALSE,65,65)}</span>
</a>
<else/>
......
......@@ -705,4 +705,4 @@
</script>
</html>
<!--userId:{$user.userID}-userName:{$user.userName}-popType:{$popType}----gid:{$_GET.gid} -->
\ No newline at end of file
<!--userId:{$user.userID}-userName:{$user.userName}-popType:{$popType}-->
\ No newline at end of file
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