Commit d8ece10213aa57a87aa18880e88100dae270272e

Authored by vking
1 parent 5f773c6d

桌位显示区域名称

... ... @@ -36,6 +36,7 @@ Component({
type:Boolean,
value:false
},
hasRegionName:Boolean,
},
/**
... ...
... ... @@ -18,6 +18,7 @@
<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}}"
... ...
... ... @@ -37,6 +37,21 @@
border-radius: 0 0 10rpx 10rpx;
border: 2rpx solid #777777;
}
.board-region-name{
position: absolute;
bottom:-2rpx;
left: -2rpx;
height: 36rpx;
text-align: center;
line-height: 36rpx;
font-size: 26rpx;
background-color:rgba(137,192,183,1);
font-family:PingFangSC-Semibold,PingFang SC;
font-weight:600;
color:rgba(254,254,254,1);
border-radius: 0 0 10rpx 10rpx;
border: 2rpx solid rgba(137,192,183,1);
}
.board .info{
text-align: center;
margin: -10rpx 10% 0;
... ...
... ... @@ -51,7 +51,7 @@
<view class="advice-desk-detail flex-rr" wx:if="{{tables.length>0}}">
<block wx:for="{{tablesed||tables}}" wx:key="tableskey">
<board width="160" height="180" board="{{item}}"
style="margin: 20rpx 0 0 20rpx"
style="margin: 20rpx 0 0 20rpx" hasRegionName
event="boardChoose" className="noBottom"
data-value="{{index}}"
bindtap="selectedValue"
... ...