b_index.wxml 3.43 KB
<nav>订座</nav>
<block wx:if="{{isloading==true}}">
        <view class="book-page bg_white">
             <view class="book-search flex-ll">
                  <image src="../image/search.png" class="search-icon"></image>
                  <input placeholder="桌位·预定人姓名·手机号" placeholder-class="font30r gray-font smooth" class="font30r black-font smooth search-input" value="{{form.keywords}}" bindinput="searchinput" confirm-type="search" bindconfirm="searchbook"/>
             </view>
            <view class="search-easy flex-lr">
                 <view class="block flex-vc" bindtap="calendarShow">
                      <view class="green-font font34r font-bold flex-cc">{{dateStr}}</view>
                 </view>
                 <view class="block section flex-vc">
                      <view class="tab flex-cc">
                          <item class="item {{form.time==0?'checked':''}} flex-cc"
                               bindtap="selectedValue" data-key="time" data-value="0">
                               早市
                          </item>
                          <item class="item {{form.time==1?'checked':''}} flex-cc"
                               bindtap="selectedValue" data-key="time" data-value="1">
                               午市
                          </item>
                          <item class="item {{form.time==2?'checked':''}} flex-cc"
                               bindtap="selectedValue" data-key="time" data-value="2">
                               晚市
                          </item>
                      </view>
                 </view>
            </view>
        </view>
        <block wx:if="{{!bookList}}">
              <nothingBook height="{{listHeight}}"></nothingBook>
        </block>
        <block wx:else>
            <view class="book-list-cut flex-ll font26r black-font">
                <text>已定 {{bookList.length}}</text>
            </view>
            <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="../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}}">
                                <bookList item="{{item}}" bind:changeitem="changeitem" id="bookorder"></bookList>
                            </block>
                         </view>
                    </view>
            </view>
        </block>
</block>
<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 weeks-type="cn" catchtap="catchtap"
              start-date="2018-09"
              days-color="{{dayStyle}}"
              binddayClick="dateChange"
              active-type="rounded"
              calendar-style="calendar"
              header-style="calendar-header"
              board-style="calendar-board"></calendar>
    </view>
</view>