代客下单更新

确认订单时购物车数据为空时不请求修改就餐模式
This commit is contained in:
2024-10-11 18:15:08 +08:00
parent ca919a04c3
commit 0ad3080e71

View File

@@ -200,7 +200,7 @@
</view> </view>
</view> </view>
<view class="u-flex u-row-between u-m-t-18 u-p-b-34 border-bottom"> <view class="u-flex u-row-between u-m-t-18 u-p-b-34 border-bottom">
<view> <view>
<text v-if="eatTypes.active=='takeout'">包装费</text> <text v-if="eatTypes.active=='takeout'">包装费</text>
@@ -613,6 +613,9 @@
uni.setStorageSync("useType", useType); uni.setStorageSync("useType", useType);
} }
const tableId = useType == 'takeout' ? undefined : table.value.tableId; const tableId = useType == 'takeout' ? undefined : table.value.tableId;
if(!goods.list.length){
return
}
const res = await Api.$changeUseType({ const res = await Api.$changeUseType({
useType, useType,
tableId, tableId,