feat: ai店铺订单添加修改配送功能

This commit is contained in:
2026-09-24 11:20:36 +08:00
parent 8dee31e18c
commit 31c4aa36a5
11 changed files with 1037 additions and 23 deletions
+33 -15
View File
@@ -343,22 +343,40 @@ const checked = (addressInfo) => {
uni.showToast({ title: '当前门店暂不支持自提', icon: 'none' });
return;
}
uni.$emit('SELECT_PICK_UP_INFO', {
addressInfo,
});
const routerBack = sheep?.$router?.back;
if (typeof routerBack === 'function') {
try {
routerBack.call(sheep.$router);
return;
} catch (e) {
console.error('[checked] sheep.$router.back err', e);
const goBackSafe = () => {
const fallbackBack = () => {
try {
uni.navigateBack({
fail: () => {
try {
const go = sheep?.$router?.go;
if (typeof go === 'function') {
go.call(sheep.$router, '/pages/order/modifyDelivery');
return;
}
} catch (e2) { /* ignore */ }
try { uni.redirectTo({ url: '/pages/order/modifyDelivery' }); } catch (e3) { /* ignore */ }
},
});
} catch (e) {}
};
const routerBack = sheep?.$router?.back;
if (typeof routerBack === 'function') {
try {
routerBack.call(sheep.$router);
return;
} catch (e) {
fallbackBack();
return;
}
}
}
uni.navigateBack();
} catch (e) {
console.error('[checked] top exception', e);
}
fallbackBack();
};
try {
uni.$emit('SELECT_PICK_UP_INFO', { addressInfo });
} catch (e) {}
goBackSafe();
} catch (e) {}
};
const onSelect = (item) => {