<!-- 顶部 -->
<wxs src="../../../utils/util.wxs" module="utils" />
<view class="basics-msg">
    <image class="room-detail-bg" src="/static/img/room-detail-bg.png" mode="" />
    <!-- 胶囊按钮区 -->
    <view style="box-sizing: border-box;height: {{CustomBar-StatusBar}}px; width: 100%;margin-top: {{StatusBar}}px; padding-left: 40rpx; line-height: {{CustomBar-StatusBar}}px;position: absolute;color: #fff;z-index: 999;">
        <view bindtap="gotoFun" data-id="3">
            <van-icon name="arrow-left" />会议详情
        </view>
    </view>
    <view class="p-t">
        <view class="basics-msg-tit">
            {{item.appointmentDate}} {{item.appointmentStartTime}}~{{item.appointmentEndTime}}

            <text class="status-text {{item.status==1?'status1':item.status==2?'status2':item.status==3?'status3':''}}" wx:if="{{type=='my-meeting'}}">{{item.status==1?'未开始':item.status==2?'进行中':item.status==3?'已结束':''}}</text>
        </view>
        
        <view class="apps-o" bindtap="showFun" wx:if="{{type=='my-meeting' && (item.status==1 ||item.status==2&&item.meetingRoomVo.continueMeeting)}}">更多</view>
        <!-- <van-icon name="apps-o" color="#fff" size="50rpx" class="apps-o" bindtap="showFun" wx:if="{{type=='my-meeting' &&item.status!=3}}" /> -->
        <view wx:if="{{type=='my-subscribe' || type=='subscribe-audit'||type=='meeting-record'}}">
            <view wx:if="{{type!='meeting-record'}}" class="audit" bindtap="gotoFun" data-id="1" >
                <text>审核详情</text>
                <van-icon name="arrow" />
            </view>
            <image class="status-img" src="/static/status/{{item.status==1?'audit':item.status==2?'pass':item.status==3?'refuse':item.status==4?'cancel':item.status==5?'transfer':''}}.png" mode="" />
        </view>

        <view class="basics-msg-small-tit">
            {{item.meetingName || ''}}
        </view>
        <view wx:if="{{item.meetingAddress}}">
            <van-icon name="location" />
            <text>{{item.meetingAddress}}</text>
        </view>
        <view class="serviceOrder" bindtap="showPopupFun" wx:if="{{type=='my-meeting' && item.status==2}}">
            服务点单
        </view>
    </view>

    <!-- 功能区 -->
    <view class="fun border-radius-20" wx:if="{{isShowFun}}">
        <view class="fun-box">
            <!--  三角区域 -->
            <view class="info-panel-triple"></view>
            <view class="fun-item" wx:for="{{funList}}" wx:key="index" wx:for-item="item1" data-item="{{item1}}" bindtap="clickFun" wx:if="{{utils.indexOf2(item1.status,item1.name,item.status,item.meetingRoomVo.continueMeeting)}}">{{item1.name}}</view>
        </view>
    </view>
</view>


<view class="contnt">
    <!-- 会标 -->
    <view wx:if="{{item.meetingMonogram}}">
        <view class="position col">
            <image src="/static/img/meeting-detail-icon.png" class="logo" mode="" />
            <text>会标</text>
        </view>
        <view class="tit">{{item.meetingMonogram}}</view>
    </view>

    <!-- <view class="position">
        <van-icon name="clock" />
        <text>08:40~20:00内可预约</text>
    </view> -->
    <view class="position">
        <van-icon name="friends" />
        <text>参会{{item.meetingNum}}人</text>
    </view>
    <view class="position" wx:if="{{item.seatNum}}">
        <van-icon name="map-marked" />
        <text>共有{{item.seatNum}}个座位</text>
    </view>

    <view class="position" wx:if="{{type=='my-meeting'}}">
        <van-icon name="like" />
        <text>会议中可提供服务： <text wx:for="{{item.meetingRoomVo.meetingInServiceList}}" wx:key="index" wx:for-item="item1">{{item1}}{{item.meetingRoomVo.meetingInServiceList.length>index+1?'、':''}}</text></text>
        <!-- <text wx:else>会议中可提供服务： <text wx:for="{{item.meetingInServiceList}}" wx:key="index" wx:for-item="item1">{{item1}}{{item.meetingInServiceList.length>index+1?'、':''}}</text></text> -->
    </view>
    <view class="yellow-bg" wx:if="{{type=='my-meeting' &&item.status!=3 }}">
        <van-icon name="info" />
        <text wx:if="{{nextMeetingStartTime}}">本会议室中，与本场会议时间相邻的下一场会议是{{nextMeetingStartTime}}开始。</text>
        <text wx:else>本会议室中，暂无与本场会议时间相邻的下一场会议，最晚可预约至{{item.meetingRoomVo.canAppointmentEndTime}}点</text>
    </view>

    <view class="service border-radius-20" wx:if="{{type=='meeting-detail' || type=='subscribe-audit'||type=='meeting-record'}}">
        <!-- <image src="/static/img/air.png" mode="" /> -->
        <text>预约人：{{item.name}} <text wx:if="{{item.pohne}}">【{{item.pohne}}】</text> </text>
    </view>
</view>
<view class="gray"></view>
<view class="layout">
    <view class="flex">
        <view class="layout-tit">会议室布局安排</view>
        <view wx:if="{{type=='my-meeting' && item.status!=1}}" class="order" bindtap="gotoFun" data-id="4">
            会议中服务点单
            <van-icon name="arrow" />
        </view>
    </view>
    <meeting-layout rightList="{{rightList}}" leftList="{{leftList}}" projection="{{projection}}" aircondition="{{aircondition}}" type="{{type}}" itemData="{{meetingData}}" />
</view>
<view class="btn-area" wx:if="{{type=='my-subscribe' && (item.status==1 ||item.status==2)}}">
    <button bindtap="cancel">取消</button>
</view>
<view class="btn-area" wx:if="{{type=='subscribe-audit' && item.status==1}}">
    <button bindtap="gotoFun" data-id="2">审核</button>
</view>
<!-- 点单 -->
<van-popup show="{{ showPopup }}" closeable position="bottom" bind:close="onClose" title="会议中服务点单">
    <view class="popup-box flex">
        <view data-index="{{index}}" class="{{item.isTrue?'check-css':''}}" wx:for="{{orderMealList}}" wx:key="index" bindtap="getOrde">
            {{item.name}}
        </view>
    </view>
    <view class="btn-area">
        <button bindtap="orderMealFun">点单</button>
    </view>
</van-popup>