b_index.wxml 5.03 KB
<nav id="nav">订座</nav>
<a2l bindshow="a2lshow" bindhide="a2lshow" key="BOOK-INDEX" type="black" hitStr="查空房"></a2l>
<view class="page">
<block wx:if="{{isloading==true}}">
        <view class="book-page bg_white">
             <view class="book-search flex-lr">
                 <view class="flex-ll book-search-left">
                     <image src="http://qn.colorcun.com/custom/lite-yd/image/search.png" class="search-icon"></image>
                     <input placeholder="桌位/客户姓名/手机号" placeholder-class="font30r gray-font smooth" class="font30r black-font smooth search-input" value="{{keywords}}" bindinput="searchinput" confirm-type="search" bindconfirm="searchbook"/>
                 </view>
                 <view bindtap="exportFile" class="exportFile flex-vc">
                     <image src="http://qn.colorcun.com/custom/lite-yd/image/export.png" class="search-icon"></image>
                     <view>导出</view>
                 </view>
             </view>
            <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 flex-vc {{form.time==0?'checked':''}}"
                                   wx:if="{{timePickerArray[0].length>0}}"
                                   bindtap="selectedValue" data-key="time" data-value="0">早市</formids>
                          <formids class="item flex-cc {{form.time==1?'checked':''}}"
                                   wx:if="{{timePickerArray[1].length>0}}"
                                   bindtap="selectedValue" data-key="time" data-value="1">午市</formids>
                          <formids class="item flex-cc {{form.time==2?'checked':''}}"
                                   wx:if="{{timePickerArray[2].length>0}}"
                                   bindtap="selectedValue" data-key="time" data-value="2">晚市</formids>
                      </view>
                 </view>
            </view>
        </view>
    <view class="book-list-cut flex-ll font26r black-font">
        <text>已订 {{ReservesTotal}}</text>
        <text wx:for="{{ReservesCountDay}}" wx:if="{{item>-1}}" wx:key="ReservesCountDaykey">{{timeStrLabel[index]}} {{item}}</text>
    </view>
        <block wx:if="{{!bookList}}">
            <nothingBook height="{{listHeight}}"></nothingBook>
        </block>
        <block wx:else>

            <view bindcsroll="onPullDownRefresh" class="bg_white">

                    <view class="book-list-thead flex-lr font34r black-font">
                        <view>桌号</view>
                        <view class="flex-cc">客户姓名</view>
                        <view class="flex-cc" bindtap="timeorder">时间<image src="http://qn.colorcun.com/custom/lite-yd/image/direction.png" class="icon22-26" background-size="cover"></image></view>
                        <view class="flex-rr">操作</view>
                    </view>
                    <view class="book-list" style="padding-bottom:118rpx;">
                         <view class="book-list-body">
                            <block wx:for="{{bookList}}" wx:key="bookListkey">
                                <bookList item="{{item}}" class="orderbook"></bookList>
                            </block>
                         </view>
                    </view>
            </view>
        </block>
</block>
</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="clickMonth"
                  bindprevMonth="clickMonth"
                  bindselectDate="dateChange"
                  bindgotoday="gotoday"

                  colored="#199095"
                  circle_show="{{true}}"
                  mystatus="{{ReservesCountMonth}}"
                  dotcolor-o="dotcolor-o"
                  dotcolor-t="dotcolor-t"
                  allshow="{{true}}"
        ></calendar>
    </view>
</view>