Commit ab147afac5e34b5a60130de903a122aca7413b34

Authored by vking
1 parent 8de2f913

online

... ... @@ -16,6 +16,7 @@ Page({
currentView:1,
hasOnlineReserve:false,
activeTab:'detail',
hasFullHouse:false,//满房
},
/**
... ... @@ -93,6 +94,11 @@ Page({
*/
onShow: function () {
this.selectComponent('#getpos').getPos();
if(this.data.reserveDate){//后退进入等情况刷新时段
this.setData({
reserveDate:this.data.reserveDate
})
}
},
/**
... ... @@ -269,6 +275,11 @@ Page({
},
selecttime(e){//时间改变
console.log(e);
if(!e.detail.time){//满房
this.setData({
hasFullHouse:true,
})
}
this.reserve.time=e.detail.time;
if(e.detail.action=='click'){
this.reserve.sid=this.options.id
... ...
... ... @@ -197,8 +197,10 @@
<view hidden="{{activeTab!='reserve'}}" wx:if="{{seller.id}}">
<view class="olreserve">
<calendar seller="{{seller}}" bindselectdate="selectdate"></calendar>
<people seller="{{seller}}" bindselectpeople="selectpeople"></people>
<people seller="{{seller}}" bindselectpeople="selectpeople" hidden="{{!hasFullHouse}}"></people>
<view class="reserve-time Semibold">可订时间</view>
<dur seller="{{seller}}" date="{{reserveDate}}" bindselecttime="selecttime"></dur>
<dur seller="{{seller}}" hidden="{{!hasFullHouse}}"
date="{{reserveDate}}" bindselecttime="selecttime"></dur>
<view class="hasFullHouse Semibold flex-vc" wx:if="{{hasFullHouse}}">今日所有包间已订满</view>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -512,3 +512,12 @@
padding: 44rpx 0 38rpx 30rpx;
font-size: 32rpx;
}
.hasFullHouse{
height: 100rpx;
font-size: 30rpx;
color: #FFFFFF;
background-color: #999999;
line-height: 100rpx;
width: calc(100% - 60rpx);
margin: 0 auto;
}
... ...