board.wxml 1.44 KB
<!--components/book/board/board.wxml-->
<view class="board flex-cc {{board.status_classname}} {{board.isselect?'border':''}} {{className}}"
      style="width: {{width}}rpx;height: {{height}}rpx; "
        bindtap="boardClick">
    <view class="info">
        <view class="name">{{board.name}}</view>
        <block wx:if="{{roomDemand}}">
            <view class="pnum" wx:if="{{board.max>0}}">最多可坐{{board.max}}人</view>
            <view class="low" wx:if="{{board.low>0}}">
                <view>最低消费</view>
                <view>{{board.low}}元</view>
            </view>
        </block>
        <view class="pnum" wx:else="" style="{{board.reserve_name?'color:#199095;':''}}">
            {{board.reserve_name?board.reserve_name:(board.table_pnum+((board.most_pnum*1>board.table_pnum*1)?'-'+board.most_pnum:'')+'人')}}
        </view>
    </view>
    <view class="tid" wx:if="{{board.tid==2}}">包间</view>
    <view class="tid" wx:if="{{board.tid==3}}">卡座</view>
    <view class="status" wx:if="{{board.status_str}}" style="width: {{width}}rpx;">{{board.status_str}}</view>
    <view class="board-region-name" wx:if="{{hasRegionName}}" style="width: {{width}}rpx;">{{board.region_name}}</view>
    <icon type="success" size="20" color="#199095" class="desk-active" wx:if="{{board.isselect==true}}"/>
</view>
<as items="{{itemList}}"
    id="boardas"
    bindclick="boardClickCallback"><view style="font-size: 30rpx;">{{board.name}}</view></as>