fix delivery fee

This commit is contained in:
Kroytz committed 2026-07-15 23:49:28 +08:00
1 parent 88563423fa
commit be9601ff91
7 files changed
+33 -51

No files matched your search

+1 -7
View File
@@ -263,7 +263,7 @@ import {
} from '@/api/market'
const main = useMainStore()
const { orderType,address, store,location,isLogin } = storeToRefs(main)
const title = ref('食刻点单')
const title = ref('米糖烘焙')
const text = ref('滚动通知')
const keyword = ref('')
@@ -699,12 +699,6 @@ const toPay = () => {
uToast.value.show({message:'本店不支持外卖',type: 'error'});
return;
}
// 判断当前是否在配送范围内(基于用户定位距离粗略判断,最终以下单时收货地址校验为准)
if (orderType.value == 'takeout' && store.value.dis && store.value.distance < (store.value.dis / 1000)) {
uToast.value.show({message:'选中的地址不在配送范围',type: 'error'});
return;
}
uni.showLoading({
title: '加载中'
})