下单选择人数条件修改
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user