<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_img">
                    <image class="one_logo1" src="{{match.blue_logo[0].url}}"></image>
                </view>
                <view class="one_1_text">{{match.blue_name}}</view>
            </view>
            <view class="one_2">
                <view class="one_2_1">
                    <text class="time">{{match.match_time}}</text>
                </view>
                <view class="one_2_2">
                    <text class="text1">{{match.blue_branch||0}}</text>
                    <text class="text2">:</text>
                    <text class="text3">{{match.red_branch||0}}</text>
                </view>
                <view class="one_2_2">
                    <text class="text">{{match.status=='1'?'进行中':match.status=='0'?'未开始':'已结束'}}</text>
                </view>
            </view>
            <view class="one_3">
                <view class="one_3_img">
                    <image class="one_logo1" src="{{match.red_logo[0].url}}"></image>
                </view>
                <view class="one_3_text">{{match.red_name}}</view>
            </view>
            <view class="one_4">{{match.match_name}}</view>
        </view>
        <view class="two" style="height:{{infoHeight-250}}px;">
            <view class="two_title">参赛阵容</view>
            <view class="two_1">
                <view class="two_1_1">
                    <image class="two_logo1" src=" {{match.blue_logo[0].url}}"></image>
                    <text class="two_1_text textOver">{{match.blue_name}}</text>
                </view>
                <view class="two_1_2" wx:key="item" wx:for="{{match.blue_members}}">
                    <image class="two_logo2" src="{{item.icon[0].url}}"></image>
                    <text class="two_1_text textOver">{{item.nickname}}</text>
                </view>
            </view>
            <view class="two_2">
                <view class="two_2_1">
                    <image class="two_logo1" src="{{match.red_logo[0].url}}"></image>
                    <text class="two_2_text textOver">{{match.red_name}}</text>
                </view>
                <view class="two_2_2" wx:key="item" wx:for="{{match.red_members}}">
                    <image class="two_logo2" src="{{item.icon[0].url}}"></image>
                    <text class="two_2_text textOver">{{item.nickname}}</text>
                </view>
            </view>
        </view>
        <view class="btn" bindtap="clickme">
            <button class="button">上传比分</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="{{match.blue_logo[0].url}}"></image>
                            <view>{{match.blue_name}}</view>
                        </view>
                        <view class="modal_l2">
                            <image class="two_logo1" src="{{match.red_logo[0].url}}"></image>
                            <view>{{match.red_name}}</view>
                        </view>
                    </view>
                    <view class="modal_r">
                        <view class="modal_r1">
                            <input class="input" name="blue_branch" value="{{form.blue_branch}}" type="number" placeholder="" />
                            <text class="modal_text">积分</text>
                            <input class="input" value="{{form.blue_integral}}" name="blue_integral" type="number" placeholder="" />
                        </view>
                        <view class="modal_r2">
                            <input class="input" value="{{form.red_branch}}" name="red_branch" type="number" placeholder="" />
                            <text class="modal_text">积分</text>
                            <input class="input" value="{{form.red_integral}}" name="red_integral" type="number" placeholder="" />
                        </view>
                    </view>
                    <view class="modal_btn">
                        <button class="button" formType="submit">保存</button>
                    </view>
                </view>
            </form>
        </view>
    </view>
</mobile-main>