b_setting.wxml 3.64 KB
<!--pages/book/b_setting.wxml-->
<nav id="nav">桌位</nav>
<view class="page">
    <view class="search-easy flex-lr">
        <formids class="block flex-vc" bindtap="calendarShow">
        <view class="flex-vc">
            <view class="green-font font34r font-bold flex-cc">{{dateStr}}</view>
        </view>
        </formids>
        <view class="block section flex-vc">
            <view class="tab flex-cc">
                <formids class="item {{time==0?'checked':''}} flex-cc"
                         wx:if="{{timePickerArray[0].length>0}}"
                      bindtap="selectedValue" data-key="time" data-value="0">早市</formids>
                <formids class="item {{time==1?'checked':''}} flex-cc"
                         wx:if="{{timePickerArray[1].length>0}}"
                      bindtap="selectedValue" data-key="time" data-value="1">午市</formids>
                <formids class="item {{time==2?'checked':''}} flex-cc"
                         wx:if="{{timePickerArray[2].length>0}}"
                      bindtap="selectedValue" data-key="time" data-value="2">晚市</formids>
            </view>
        </view>
    </view>
    <view class="line-ccc"></view>
    <view class="flex-lr disks">
        <view class="menus Medium" style="height: {{height}}px;">
            <view class="menu flex-cc {{regions_active==item.name?'active':''}}"
                  wx:for="{{regions}}" wx:key="regions.key"
                  bindtap="chooseRegion" data-name="{{item.name}}">
                <view class="menu-text">{{item.name}}</view>
                <view class="last-num {{item.list_num>0?'':'full'}}">{{item.list_num>0?'余'+item.list_num:'满座'}}</view>
            </view>
        </view>
        <view class="items" style="height: {{height}}px;">
            <block wx:for="{{regions}}" wx:key="regions.key">
                <view class="items-disks flex-ll" style="flex-wrap: wrap"
                      wx:if="{{regions_active==item.name}}">
                    <board width="160" height="180" board="{{item}}"
                           ddate="{{rdate}}"
                           style="margin: 20rpx 0 0 20rpx"
                           bindboardEvent="boardEvent"
                           event="boardOpt"
                           wx:for="{{item.list}}" wx:key="item.key" ></board>
                </view>
            </block>
        </view>
    </view>
</view>
<tabBar></tabBar>
<view class="calendar-mask" bindtap="calendarClose"
      style="height:{{calendarMask?'100%':0}};" wx:if="{{calendarMaskLoad}}">
    <view style="width: 100%; height:{{calendarMask?'100%':0}};overflow: hidden;position: relative;">
        <calendar catchtap="catchtap"
                  isTodaybtn="{{true}}" todaybtn_txt="回到今天"
                  custom="{{false}}"
                  switchover="{{['上一月','下个月']}}"
                  active-coloro="active-coloro"
                  active-colort="active-colort"
                  speciallist="{{speciallist}}"
                  txt_style="txt-style"
                  calendar-style="calendar"
                  header-style="calendar-header"
                  weektitle-style="weektitle-style"
                  restcolor-style="restcolor-style"
                  txt_type="cn-d"

                  datefont-style="datefont-style"
                  todaybtn-style="todaybtn-style"

                  bindnextMonth="nextMonth"
                  bindprevMonth="prevMonth"
                  bindselectDate="dateChange"
                  bindgotoday="gotoday"

                  prev="{{true||calendar.nextNum>0}}"
                  circle_show="{{false}}"
                  closelaststyle="{{true}}"
        ></calendar>
    </view>
</view>