<!--pages/meeting/subscribe/index.wxml-->
<wxs src="../../../utils/util.wxs" module="utils" />

<view class="content">
    <view class="top border-radius-20">
        <image src="/static/img/room-index-bg.png" mode="" />
        <view class="top-msg">
            <view>{{itemData.meetingName}}</view>
            <view class="seat">
                <text class="m-r">{{itemData.meetingAddress}} ·</text>
                <text>共有{{itemData.seatNum}}个座位</text>
            </view>
        </view>
    </view>
    <view class="subscribe-date">
        <handle-module type="date" title="预约日期" placeholder="预约日期" data-type="appointmentDate" bindchange="getValue" value="{{form.appointmentDate}}" startDate="{{startDate}}" endDate="{{endDate}}"  disabled="{{timeDisabled}}"/>
    </view>
    <view wx:if="{{type!='transfer-audit'}}">
        <view class="tips">
            <van-icon name="info" />
            <text>绿色时段为空闲时段，点击绿色时段选择会议时间</text>
        </view>
        <view class="flex time-period">
            <view class="item {{item.type==1?'':'gary'}}" wx:for="{{timePeriodList}}" wx:key="index" bindtap="chooseTime" data-item="{{item}}">
                {{item.startTime}}~{{item.endTime}}
            </view>
        </view>
    </view>

    <view wx:if="{{startTime || endTime}}">
        <handle-module type="time" title="会议开始时间" data-type="appointmentStartTime" bindchange="getValue" value="{{form.appointmentStartTime}}" placeholder="请选择" startTime="{{startTime}}" endTime="{{endTime}}" disabled="{{timeDisabled}}"/>
        <handle-module type="time" title="会议结束时间" data-type="appointmentEndTime" bindchange="getValue" value="{{form.appointmentEndTime}}" placeholder="请选择" startTime="{{startTime}}" endTime="{{endTime}}"  disabled="{{timeDisabled}}"/>
    </view>


    <handle-module type="stepper" title="参会人数" data-type="meetingNum" bindchange="getValue" value="{{form.meetingNum}}" stepperMax="{{itemData.seatNum}}" />
    <handle-module type="radio" title="会标" data-type="meetingMonogramStatus" bindchange="getValue" value="{{form.meetingMonogramStatus}}" listErgodic="{{logoList}}" name1="name" key1="id" wx:if="{{utils.indexOf1(itemData.meetingBeforeServiceNameList,'准备会标')}}" />
    <handle-module wx:if="{{form.meetingMonogramStatus}}" title="会标名称" placeholder="请输入会标名称" data-type="meetingMonogram" bindchange="getValue" value="{{form.meetingMonogram}}" />
    <view class="layout">
        <view class="layout-tit">会议室布局安排</view>
        <meeting-layout isDisable="{{false}}" aircondition="{{form.aircondition}}" projection="{{form.projection}}" leftList="{{leftList}}" rightList="{{rightList}}" itemData="{{itemData}}" bindchange="getValue1" bindteaWater="getTeaWater" bindsnack="getSnack" bindmonogram="getMonogram"></meeting-layout>
    </view>
</view>
<view class="btn-area">
    <button bindtap="submit">提交预约</button>
</view>