<wxs src="../../utils/util.wxs" module="utils" />
<!-- 顶部 -->
<view class="page">
    <view class="top">
        <view class="top-area"></view>
    </view>
    <!-- 胶囊按钮区 -->
    <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;">会议室预约管理平台</view>
    <view class="content">
        <view class="content-box">
            <!-- <view class="flex">
                <view class="left">
                    <picker class="picker" range="{{accountList}}" range-key="name" value="{{accountId}}" bindchange="getVal" disabled="{{isAudit}}">
                        <view>
                            <text class="m-r">{{accountName}}</text>
                            <van-icon name="arrow-down" />
                        </view>
                    </picker>
                </view>
                <view class="right" bindtap="goFun">
                    <van-icon name="search" />
                    <text>请输入会议室</text>
                </view>
            </view> -->
            <view class="bg" bindtap="gotomy">
                <image src="/static/home/bg.png" mode="" />
            </view>
            <!-- 功能区 -->
            <view class="flex fun">
                <view class="item" wx:for="{{funList}}" wx:key="index" bindtap="goFun" data-item="{{item}}" wx:if="{{utils.indexOf(item.)}}" wx:if="{{utils.indexOf(item.jurisdiction,userInfo.appointmentAuth,userInfo.checkAuth,userInfo.serivceAuth)}}">
                    <image class="item-icon" src="{{item.img}}" mode="" />
                    {{item.name}}
                </view>
            </view>
            <view class="box" wx:if="{{myMeetingList.length>0}}">
                <view class="box-tit">
                    我的会议
                </view>
                <view class="flex auto">
                    <view class="my-meetingborder-radius-20 flex" wx:for="{{myMeetingList}}" wx:key="index" bindtap="myMeetingFun" data-item="{{item}}" data-type="my-meeting">
                        <view class="data-time">
                            <view>
                                {{item.appointmentDate}}
                            </view>
                            <view class="time">
                                {{item.appointmentStartTime}}-{{item.appointmentEndTime}}
                            </view>
                        </view>
                        <view class="meeting-right">
                            <view class="meeting-name over">
                                {{item.meetingName}}
                            </view>
                            <view class="over" wx:if="{{item.meetingMonogram}}">
                                {{item.meetingMonogram}}
                            </view>
                            <view class="over location">
                                <van-icon name="location" />
                                <text>{{item.meetingAddress}}</text>
                            </view>
                        </view>
                    </view>
                </view>
            </view>
            <view class="box" wx:if="{{meetingList.length>0}}">
                <view class="box-tit">
                    会议室
                </view>
                <view class="flex flex1">
                    <view class="room border-radius-20" wx:for="{{meetingList}}" wx:key="index" bindtap="goRoomFun" data-item="{{item}}">
                        <view class="rooom-name over">
                            {{item.meetingName}}
                        </view>
                        <view class="over home-text-color">
                            <van-icon name="location" />
                            <text>{{item.meetingAddress}}</text>
                        </view>
                        <view class="over home-text-color">
                            <van-icon name="map-marked" />
                            <text>共有{{item.seatNum}}个座位</text>
                        </view>
                        <view class="over home-text-color" wx:if="{{!userInfo.appointmentAuth&&userInfo.serivceAuth&&!userInfo.checkAuth}}">
                          <image class="meeting-img" src="../../static/img/home-num-icon.png" alt="" srcset=""/>
                          <text>今日有{{item.hadMeetingTimes}}场会议</text>
                        </view>
                        
                        <!-- <view class="go-subscribe border-radius-20">
                            去预约
                            <van-icon name="arrow" />
                        </view> -->
                    </view>
                </view>
            </view>
            <view class="more" bindtap="goRoomFun" wx:if="{{meetingList.length>0}}" >
                更多会议室
                <van-icon name="arrow" />
            </view>
        </view>
    </view>
</view>