<view class="money">报名费用 ¥<label wx:if='{{type==2}}'>{{info.player_price}}</label>
  <label wx: wx:else>{{info.viewer_price}}</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="item" wx:if='{{type==2}}'> 
   <label>参赛名</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>
<button bindtap="post">提交报名</button>