<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
  <view slot="info" class="main" style="height:{{infoHeight}}px;">
    <form catchsubmit="formSubmit" catchreset="formReset">
      <view class="ming">
        <view class="one">
          <view class="text">比赛名称</view>
          <input class="input" name="name" value="{{form.name}}" placeholder="请输入比赛名称" />
        </view>
      </view>
      <view class="page">
        <view class="page1"><text>时间</text></view>
        <view class="picker_group">
          <picker mode="date" value="{{starttime}}" end="{{endtime}}" bindchange="bindDateChange">
            <view class="picker">
              {{starttime}}
            </view>
          </picker>
          <text>—</text>
          <picker mode="date" value="{{endtime}}" start="{{starttime}}" bindchange="bindDateChange2">
            <view class="picker">
              {{endtime}}
            </view>
          </picker>
        </view>
        <view class="section">
          <view class="section__title">单场时间</view>
          <picker mode="date" value="{{timedate}}" start="2018-09-01" end="2150-09-01" bindchange="bindDateChange3">
            <view class="picker1">
              {{timedate}}
            </view>
          </picker>
          <picker mode="time" value="{{time}}" start="00:00" end="24:00" bindchange="bindTimeChange">
            <view class="picker2">
              {{time}}
            </view>
          </picker>
        </view>
        <view class="adress">
          <view class="one">
            <view class="text">地点</view>
            <input class="input" name="address" value="{{form.address}}" placeholder="请输入地点" />
          </view>
        </view>
        <view class="multone">
          <view class="mult1">
            <view class="mult">选择赛制</view>
            <picker mode="multiSelector" bindchange="szChange" bindcolumnchange="columnChange" value="{{szValue}}" range="{{valueList}}">
              <view class="mults">{{szValue.length>0?szValue:'请选择'}}</view>
            </picker>
          </view>
        </view>
        <view class="multone">
          <view class="mult1" wx:for="{{szList}}" wx:key="item">
            <view class="mult00">赛制</view>
            <view class="mult88">
              <text>{{item.type}}-{{item.name}}</text>
              <text class=" icon iconfont icon-jianhao" bindtap="toDel" data-index="{{index}}"></text>
            </view>
          </view>
        </view>
        <view>
        </view>
        <view class="multone">
          <view class="mult1">
            <view class="mult">状态</view>
            <picker mode="selector" bindchange="bindCatePickerChange" value="{{cateIndex}}" range-key="type" range="{{cateArray}}">
              <view class="mults">{{cateArray[cateIndex].type}}</view>
            </picker>
          </view>
        </view>
        <view>
        </view>
      </view>
      <view class="team">
        <view class="two">
          <button class="button" formType="submit" bindtap="onSubmit">比赛修改</button>
        </view>
      </view>
    </form>
  </view>
</mobile-main>