下单选择人数条件修改

This commit is contained in:
GaoHao
2024-09-29 13:35:51 +08:00
parent e2881ebd7b
commit 19b6e2fa09
4 changed files with 26 additions and 13 deletions

View File

@@ -534,7 +534,7 @@
if (this.shopId) {params.shopId = this.shopId}
let res = await this.api.productqueryShop(params)
if (res.code == 0) {
if ( !res.data.shopTableInfo.choseCount && this.tableCode && !this.dinersNum ) {
if ( res.data.shopTableInfo && !res.data.shopTableInfo.choseCount) {
uni.pro.navigateTo('/pagesOrder/orderAMeal/index', {
tableCode: this.tableCode,
shopId: res.data.storeInfo.id,
@@ -687,8 +687,8 @@
"shopId": this.shopId,
"note": item.note,
"userId": uni.cache.get('userInfo').id,
"tableId": this.tableCode,
}
if (this.shopInfo.storeInfo.eatModel.indexOf('dine-in') != -1) { params.tableId = this.tableCode;}
this.addCart(params);
},
@@ -951,8 +951,8 @@
"note": item.note,
"shopId": this.shopId,
"userId": uni.cache.get('userInfo').id,
"tableId": this.tableCode,
}
if (this.shopInfo.storeInfo.eatModel.indexOf('dine-in') != -1) { params.tableId = this.tableCode;}
//添加到购物车
this.addCart(params);
} else {