moreTable.wxml 2.83 KB
<!--pack-book/pages/reservation/moreTable.wxml-->
<nav id="nav" backgroundColor="#199095" color="#fefefe">选择桌位</nav>
<view class="topWrap" style="top: {{barHeight}}px;">
    <view class="tables">
        <view bind:tap="floorClick" data-item="{{item}}" class="tablesItems {{activeIndex==item.id?'activeLi':''}}" wx:for="{{floorList}}" wx:key="index">
            <view class="names font32r">{{item.name}}</view>
        </view>
    </view>
</view>
<view class="mainCenter">
    <view data-item="{{item}}" data-index="{{index}}" bind:tap="getTapHandler" class="itemsBox {{item.show?'checked':''}} {{(item.reserveLock == '1' || item.lockstitch) ? 'lockstitchBox':''}} {{item.reserveList && item.reserveList.id != opt.id?'orderInfo':''}} {{item.banquetList && item.banquetList.length>0?'banquetsInfo':''}}" wx:for="{{homeList}}" wx:key="{{item.id}}">
        <view class="wordName font32r">{{ item.name }}</view>
        <block wx:if="{{item.reserveList && item.reserveList.id != opt.id}}">
            <view class="information font20r">
                {{item.reserveList.rname}}{{item.reserveList.sex == '1'?'先生':item.reserveList.sex=='2'?'女士':item.reserveList.sex == '3'?'公司':item.reserveList.sex == '4'?'贵宾':''}}{{item.reserveList.actual_pum && item.reserveList.actual_pum>0?'('+item.reserveList.actual_pum+'人)':''}}
            </view>
            <span class="who font20r">{{(item.reserveList.place_order_name?item.reserveList.place_order_name + '订':'')}}</span>
            <view wx:if="{{item.reserveList.reserveCount>0}}" class="reserveInfo font20r">
                第{{item.reserveList.reserveCount}}次到店
            </view>
        </block>
        <block wx:elif="{{item.banquetList && item.banquetList.length>0}}">
            <view class="who font20r">{{ item.banquetList[0].rname }}{{item.banquetList[0].sex == '1'?'先生':item.banquetList[0].sex=='2'?'女士':item.banquetList[0].sex == '3'?'公司':item.banquetList[0].sex == '4'?'贵宾':'' }}</view>
            <view class="reserveInfo font20r">{{ item.banquetList[0].class_name }}</view>
        </block>
        <block wx:elif="{{item.reserveLock == '1' || item.lockstitch}}">
            <view class="tidName font20r">{{item.tid == '1'?'散座':item.tid == '2'?'包间':item.tid == '3'?'卡座':''}}</view>
            <image class="lockedimg" src="https://qn.colorcun.com/Framelock.png" mode="" />
        </block>
        <block wx:else>
            <view class="tidName font20r">{{item.tid == '1'?'散座':item.tid == '2'?'包间':item.tid == '3'?'卡座':''}}</view>
            <view class="dates font20r" wx:if="{{item.table_pnum || item.most_pnum}}">{{item.table_pnum && item.table_pnum!=item.most_pnum?item.table_pnum+'-':''}}{{item.most_pnum}}人</view>
        </block>
    </view>
</view>
<view class="btn">
    <button class="font32r" bind:tap="editTable">确定</button>
</view>