<view class="title" wx:if='{{type==2}}'><label>比赛名称</label><label class="content">{{info.name}}</label></view>

<view class="item" wx:if='{{type==2}}'> 
   <label>比赛分组</label>
   <view class="tags"> 
    <picker  value="{{index}}"  range="{{info.groups}}" range-key='name' bindchange="bindChange">
      <view class="picker">
      <block wx:if='{{index>=0}}'>{{info.groups[index].name}}</block>
      <text wx:else style="color: #999;">请选择</text>
        <image style="width:24rpx;" mode="widthFix" src="../../images/icon_down@2x.png"></image>
      </view>
    </picker>
  </view>
</view>
<view class="message" wx:if='{{type==2}}'><label>注：按资金量选择分组，冠军组需历届小组前三，十万以上</label></view>
<view class="title" wx:if='{{type==1}}'><label>游客报名</label></view>

<view class="item"> 
   <label wx:if='{{type==2}}'>参赛名</label>
   <label wx:else>观赛名</label>
   <view class="tags"> 
      <input  bindinput="inputchange1" placeholder-style="color:#999;" placeholder="请填写"></input> 
  </view>
</view>
<view class="item"> 
   <label>手机号</label>
   <view class="tags"> 
      <input  bindinput="inputchange" placeholder-style="color:#999;" placeholder="请填写"></input> 
  </view>
</view>
<view class="item"> 
   <label>验证码</label>
   <view class="tags yzm">
          <input type="number" placeholder-style="color:#999" bindinput='codechange' placeholder="请输入验证码"></input>
          <view bindtap="getcode" wx:if="{{text=='获取验证码'}}">{{text}}</view>
          <view class="disabled" wx:else>{{text}}</view>
    </view>
</view>

<view class="title"><label>费用说明</label></view>
<view class="title">
<label>报名费用</label> 
<block wx:if="{{userinfo.player_type <= 1}}">
<label class="content" wx:if='{{type==2}}'>{{info.player_price}}</label>
<label class="content" wx: wx:else>{{info.viewer_price}}</label>
<label>元</label>
</block>
<block wx:else>
<label class="content">免费</label>
</block>
</view>

<view class="title" wx:if="{{userinfo.player_type <= 1}}">
<label>支付方式</label>
<label class="content">微信支付</label>
<image class="zf" mode="widthFix" src="../../images/weixinzhifu.png"></image>
</view>

<button bindtap="post">提交报名</button>