<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
  <view slot="info" class="main" style="height:{{infoHeight}}px;">
    <view class="one">
      <view class="one_1">
        <view class="one_1_1">
          <image src="{{info.blue_logo[0].url}}"></image>
          <view class="textOver">{{info.blue_name}}</view>
        </view>
        <view class="one_1_1 one_1_2">
          <view class="time">{{info.match_time}}</view>
          <view class="branch">
            <text>{{info.blue_branch||0}}</text>
            <text>:</text>
            <text>{{info.red_branch||0}}</text>
          </view>
          <view class="status">{{item.status=='0'?'未开始':item.status=='1'?'进行中':'已结束'}}</view>
        </view>
        <view class="one_1_1">
          <image src="{{info.red_logo[0].url}}"></image>
          <view class="textOver">{{info.red_name}}</view>
        </view>
      </view>
      <view class="one_2">{{info.match_name}}</view>
    </view>
    <view class="two">
      <view class="two_1">参赛阵容</view>
      <view class="two_2">
        <view class="two_2_1">
          <view class="two_2_1_logo">
            <image src="{{info.blue_logo[0].url}}"></image>
            <view class="bname">{{info.blue_name}}</view>
          </view>
          <view class="two_2_1_members">
            <view class="list" wx:for="{{info.blue_members}}" wx:key="item">
              <image class="img" src="{{item.icon[0].url}}"></image>
              <view class="nickname">{{item.nickname}}</view>
            </view>
          </view>
        </view>
        <view class="two_2_1 two_2_2">
          <view class="two_2_1_logo">
            <image src="{{info.red_logo[0].url}}"></image>
            <view class="bname">{{info.red_name}}</view>
          </view>
          <view class="two_2_1_members">
            <view class="list" wx:for="{{info.red_members}}" wx:key="item">
              <image class="img" src="{{item.icon[0].url}}"></image>
              <view class="nickname">{{item.nickname}}</view>
            </view>
          </view>
        </view>
      </view>
    </view>
    <view class="thr">
      <view class="thr_1">现场图片</view>
      <view class="thr_2">
        <upload list="{{match_file}}" count="{{4}}" previewSize="{{170}}" bind:imgUpload="imgUpload" bind:imgDel="imgDel"></upload>
      </view>
    </view>
    <view class="four">
      <button size="mini" bindtap="clickme">上传比分</button>
    </view>
    <view class="mask" catchtouchmove="preventTouchMove" wx:if="{{showModal}}"></view>
    <view class="modal" wx:if="{{showModal}}">
      <view class="title">
        <view class="modal_title">上传比分</view>
        <view class="go" bindtap="go">
          <image class="cuo" src="/image/cuo.png"></image>
        </view>
      </view>
      <form catchsubmit="formSubmit" catchreset="formReset">
        <view class="modal_main">
          <view class="modal_l">
            <view class="modal_l1">
              <image class="two_logo1" src="{{info.blue_logo[0].url}}"></image>
              <view>{{info.blue_name}}</view>
            </view>
            <view class="modal_l2">
              <image class="two_logo1" src="{{info.red_logo[0].url}}"></image>
              <view>{{info.red_name}}</view>
            </view>
          </view>
          <view class="modal_r">
            <view class="modal_r1">
              <input class="input" name="blue_branch" type="number" value="{{form.blue_branch}}" placeholder="" />
              <text class="modal_text">积分</text>
              <input class="input" name="blue_integral" type="number" value="{{form.blue_integral}}" placeholder="" />
            </view>
            <view class="modal_r2">
              <input class="input" name="red_branch" type="number" value="{{form.red_branch}}" placeholder="" />
              <text class="modal_text">积分</text>
              <input class="input" name="red_integral" type="number" value="{{form.red_integral}}" placeholder="" />
            </view>
          </view>
          <view class="modal_btn">
            <button class="button" formType="submit">保存</button>
          </view>
        </view>
      </form>
    </view>
  </view>
</mobile-main>