From af891829eb5d4cedd4cf14a08bddff85aa23c561 Mon Sep 17 00:00:00 2001 From: hupeng Date: Sun, 27 Apr 2025 17:28:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=8D=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=A4=96=E5=8D=96=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yshop-drink-uniapp-vue3/pages/menu/menu.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yshop-drink-uniapp-vue3/pages/menu/menu.vue b/yshop-drink-uniapp-vue3/pages/menu/menu.vue index e88116e..47068b3 100644 --- a/yshop-drink-uniapp-vue3/pages/menu/menu.vue +++ b/yshop-drink-uniapp-vue3/pages/menu/menu.vue @@ -673,6 +673,10 @@ const toPay = () => { uToast.value.show({message:'不在店铺营业时间内',type: 'error'}); return; } + if(orderType.value == 'takeout' && store.value.distance <= 0){ + uToast.value.show({message:'本店不支持外卖',type: 'error'}); + return; + } // 判断当前是否在配送范围内 if (orderType.value == 'takeout' && store.value.distance < store.value.far) { uToast.value.show({message:'选中的地址不在配送范围',type: 'error'});