lion 4 years ago
parent 4308b1a79f
commit a95ac9f0ce

@ -53,7 +53,7 @@
</u-icon> </u-icon>
<view v-else> <view v-else>
<text <text
v-if="item.is_open==1">{{item.remain_count==0?"售罄":"可预约"}}</text> v-if="item.is_open==1">{{item.remain_count==0?"不可预约":"可预约"}}</text>
<text v-else></text> <text v-else></text>
</view> </view>
</view> </view>
@ -91,7 +91,7 @@
<view class="book-box-row-timeitem-txt" v-if="item.remain_count>0"> <view class="book-box-row-timeitem-txt" v-if="item.remain_count>0">
{{item.remain_count}} {{item.remain_count}}
</view> </view>
<view class="book-box-row-timeitem-txt" v-else></view> <view class="book-box-row-timeitem-txt" v-else></view>
</block> </block>
<block v-else> <block v-else>
<view class="book-box-row-timeitem-txt" >不可预约</view> <view class="book-box-row-timeitem-txt" >不可预约</view>
@ -253,7 +253,7 @@
if (date == m.date) { if (date == m.date) {
if (m.is_open == 1) if (m.is_open == 1)
if (m.remain_count == 0) { if (m.remain_count == 0) {
day.bottomInfo = '售罄' day.bottomInfo = '不可预约'
} else { } else {
day.bottomInfo = '可预约' day.bottomInfo = '可预约'
} }
@ -279,7 +279,7 @@
if (cdate.remain_count === 0) { if (cdate.remain_count === 0) {
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
title: "该日期已经售罄" title: "该日期已不可预约"
}) })
return; return;
} }
@ -301,7 +301,7 @@
return false return false
} }
if (mod.remain_count == 0) { if (mod.remain_count == 0) {
this.util.toast("该时段已售罄"); this.util.toast("该时段已不可预约");
return false return false
} }
for (var m of this.currentDate.rules) { for (var m of this.currentDate.rules) {

@ -67,6 +67,9 @@
}, { }, {
name: '已取消', name: '已取消',
idx: "0" idx: "0"
}, {
name: '已过期',
idx: "3"
}], }],
current: 0, current: 0,
isloading: true, isloading: true,

@ -56,6 +56,9 @@
}, { }, {
name: '已完成', name: '已完成',
idx: "2" idx: "2"
} {
name: '已过期',
idx: "3"
}], }],
current: 0, current: 0,
isloading: true, isloading: true,
@ -63,7 +66,8 @@
statusArr: { statusArr: {
0: "已取消", 0: "已取消",
1: "待完成", 1: "待完成",
2: "已完成" 2: "已完成",
3: "已过期"
} }
} }
}, },

@ -62,6 +62,9 @@
}, { }, {
name: '已参观', name: '已参观',
idx: "2" idx: "2"
},{
name: '已过期',
idx: "3"
}], }],
current: 0, current: 0,
isloading: true, isloading: true,

@ -21,7 +21,7 @@
</u-icon> </u-icon>
<view v-else> <view v-else>
<text <text
v-if="item.is_open==1">{{item.remain_count==0?"售罄":"可预约"}}</text> v-if="item.is_open==1">{{item.remain_count==0?"不可预约":"可预约"}}</text>
<text v-else></text> <text v-else></text>
</view> </view>
</view> </view>
@ -57,7 +57,7 @@
<view class="book-box-row-timeitem-txt" v-if="item.remain_count>0"> <view class="book-box-row-timeitem-txt" v-if="item.remain_count>0">
{{item.remain_count}} {{item.remain_count}}
</view> </view>
<view class="book-box-row-timeitem-txt" v-else></view> <view class="book-box-row-timeitem-txt" v-else></view>
</view> </view>
</view> </view>
</view> </view>
@ -846,7 +846,7 @@
if (date == m.date) { if (date == m.date) {
if (m.is_open == 1) { if (m.is_open == 1) {
if (m.remain_count == 0) { if (m.remain_count == 0) {
day.bottomInfo = '售罄' day.bottomInfo = '不可预约'
} else { } else {
day.bottomInfo = '可预约' day.bottomInfo = '可预约'
} }
@ -875,7 +875,7 @@
if (cdate.remain_count === 0) { if (cdate.remain_count === 0) {
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
title: "该日期已经售罄" title: "该日期已不可预约"
}) })
return; return;
} }
@ -894,7 +894,7 @@
handleSelectTime(index) { handleSelectTime(index) {
var mod = this.currentDate.rules[index]; var mod = this.currentDate.rules[index];
if (mod.remain_count == 0) { if (mod.remain_count == 0) {
this.util.toast("该时段已售罄"); this.util.toast("该时段已不可预约");
return false return false
} }
for (var m of this.currentDate.rules) { for (var m of this.currentDate.rules) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 KiB

After

Width:  |  Height:  |  Size: 77 KiB

Loading…
Cancel
Save