Commit d77be4b1 authored by houdong's avatar houdong

更多大赛

parent c3c6e1ac
......@@ -36,9 +36,9 @@ class NiuModel extends Model{
//进入交易需要的参数
$gStatus=is_end($g['endTime'])?3:($g['startTime']>time()?1:2);
$goOtherTrade =['groupId' => $gid, 'web_id'=>$g['web_id'],'name'=>$g['name'],'groupStatus' => $gStatus, 'viewPage' => 2, 'statusInt' => $gStatus,
$gotoTrade =['groupId' => $gid, 'web_id'=>$g['web_id'],'name'=>$g['name'],'groupStatus' => $gStatus, 'viewPage' => 2, 'statusInt' => $gStatus,
'userID' => $userId, 'zhuangtai' => $STATUS_TXT[$gStatus]];
$g["goOtherTrade"]=json_encode($goOtherTrade);
$g["gotoTrade"]=json_encode($gotoTrade);
}
......
......@@ -393,7 +393,7 @@
}
});
$(".goOtherTrade").click(function () {
$(".gotoTrade").click(function () {
console.log('2点击进入交易按钮'+mfrom[0]);
if(mfrom[1]>0){
// if($('#groupStatus').val()==1){
......@@ -401,7 +401,7 @@
// }
// var appParam=$('#groupInfo').val();
// appParam=appParam.replace(/XXXXXX/g, userId);
var appParam=$(this).attr('goOtherTrade');
var appParam=$(this).attr('gotoTrade');
AppBridge.refreshMyGroup();
AppBridge.goTrade(appParam);
......
......@@ -17,14 +17,14 @@
<div class="ds-time-btn">
<span class="time-span"><img src="__PUBLIC__/Home/images/g2020/time-icon.png" alt="">比赛时间:{$vo.startTime} ~ {$vo.endTime} </span>
<eq name="vo.joinStatus" value="1">
<a href="javascript:;" class="join-btn goOtherTrade" goOtherTrade="{$vo.goOtherTrade}">
<a href="javascript:;" class="join-btn gotoTrade" gotoTrade="{$vo.gotoTrade}">
<img src="__PUBLIC__/Home/images/g2020/cs-left.png" alt=""><span>进入交易</span>
</a>
<else/>
<if condition="$gid eq $vo['group_id']">
<if condition="$gid__ eq $vo['group_id']">
<a href="javascript:;" class="join-btn baoming"><img src="__PUBLIC__/Home/images/g2020/cs-left.png" alt=""><span>报名参赛</span></a>
<else/>
<a href="javascript:;" class="join-btn bmOtherGroupStep1" gid="{$vo.group_id}">
<a href="{:M_URL}{:U('/Match/detail',['id'=>$vo['group_id']])}" class="join-btn " gid="{$vo.group_id}">
<img src="__PUBLIC__/Home/images/g2020/cs-left.png" alt=""><span>报名参赛</span>
</a>
</if>
......
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