<import src="/pages/templates/leftNaviBar/leftNaviBar.wxml"></import>
<view class="pageContainer">
    <block wx:if="{{!competition.rule.anonymousProgramInfo}}">
        <template is="leftNaviBar" data="{{barTitle:'基本信息',more:'',showArrow:false}}"></template>
        <view class="programContainer" style="{{program.image?'':'border: 0rpx'}}">
            <image catchtap="previewImage" class="programImage" data-image="{{program.image}}" lazyLoad="true" mode="widthFix" src="{{program.image}}" wx:if="{{program.image}}"></image>
            <view class="programInfoView">
                <view>
                    <text style="font-weight:400;font-size:36rpx;">{{program.title}}</text>
                </view>
                <view>
                    <text>{{program.note}}</text>
                </view>
            </view>
        </view>
    </block>
    <template is="leftNaviBar" data="{{barTitle:inputtingScoringItemsScoreTotal?'按项评分/计算输入总分'+inputtingScoringItemsScoreTotal+'分':'按项评分',more:'',showArrow:false}}" wx:if="{{competition.rule.scoringItems&&competition.rule.scoringItems.length>0}}"></template>
    <template is="leftNaviBar" data="{{barTitle:'输入得分',more:'',showArrow:false}}" wx:else></template>
</view>
<form bindsubmit="submitScore">
    <view class="submitScoreContainer">
        <block wx:if="{{competition.rule.scoringItems&&competition.rule.scoringItems.length>0}}">
            <view style="height:24rpx"></view>
            <view class="scoringItemsContainer">
                <view wx:for="{{competition.rule.scoringItems}}" wx:key="{{index}}">
                    <view class="scoringItemView">
                        <text style="width:538rpx;padding-right:12rpx;">{{item.title}}(最高{{item.fullScore}}分)</text>
                        <input adjustPosition bindinput="inputtingScoringItemsScore" class="inputScore" data-index="{{index}}" data-type="input" name="input{{index}}" placeholderStyle="color:#d5d5d5;font-size:28rpx;" style="width:100rpx;height:64rpx;" type="digit" value="{{item.inputtingScore}}"></input>
                    </view>
                    <view style="width: 718rpx;margin-left: -32rpx;">
                        <slider bindchange="inputtingScoringItemsScore" bindchanging="inputtingScoringItemsScore" data-index="{{index}}" data-type="slider" max="{{item.fullScore}}" min="0" selectedColor="#FF5A5F" step="{{item.fullScore>=10?1:0.1}}" value="{{item.inputtingScore}}"></slider>
                    </view>
                </view>
            </view>
        </block>
        <block wx:else>
            <view style="height:24rpx"></view>
            <input adjustPosition bindinput="inputtingScore" class="inputScore" data-type="input" name="score" placeholder="滑动或手动输入得分(最高{{competition.rule.fullScore}}分{{competition.rule.lowestScore>0?'/最低'+competition.rule.lowestScore+'分':''}})" placeholderStyle="color:#d5d5d5;font-size:28rpx;" type="digit" value="{{inputtingScore}}"></input>
            <view style="width: 718rpx;margin-top: 24rpx;">
                <slider bindchange="inputtingScore" bindchanging="inputtingScore" data-type="slider" max="{{competition.rule.fullScore}}" min="{{competition.rule.lowestScore}}" selectedColor="#FF5A5F" step="{{competition.rule.fullScore>=10?1:0.1}}" value="{{inputtingScore}}"></slider>
            </view>
        </block>
        <block wx:if="{{competition.settings.submitComment}}">
            <template is="leftNaviBar" data="{{barTitle:'评语',more:'',showArrow:false}}"></template>
            <textarea adjustPosition autoHeight="true" class="weui-textarea" maxlength="1000" name="comment" placeholder="点此输入" placeholderClass="input-placeholder-text" style="padding:10rpx;" value="{{program.comment}}"></textarea>
        </block>
        <view class="rectangleBottomButtonContainer">
            <button class="rectangleBottomButtonView" formType="submit" style="width: 100%;background-color: #FF5A5F;">提交</button>
        </view>
    </view>
</form>
<view class="pageContainer"></view>
<import src="/pages/templates/instruction/instruction.wxml"></import>
<block wx:if="{{competition.rule.scoringRubic}}">
    <template is="leftNaviBar" data="{{barTitle:'评分标准',more:'',showArrow:false}}"></template>
    <view class="scoringRubicView">
        <text>{{competition.rule.scoringRubic}}</text>
    </view>
</block>
<view style="width:750rpx; border-bottom: 16rpx solid #f4f4f4;margin:64rpx 0rpx;"></view>
<template is="instruction" data="{{instructionFirst:'1.输入分数提交后将弹窗再次确认。若主办方允许修改已提交分数，提交后将显示修改按钮。\n2.主办方可查看即时更新的成绩，请在当前参赛者即将结束或已结束时进行评分。\n3.赛易评评分服务的稳定性和可靠性已经过严格测试，仍建议在纸上同步记录参赛者成绩。'}}" wx:if="{{!competition.settings.hideJudgeNote}}"></template>
<view style="height:500rpx"></view>
