feat: toast 问题

This commit is contained in:
2026-04-12 12:30:17 +08:00
parent 349e2a8f3d
commit 15687566ab

View File

@@ -2,7 +2,7 @@
<view class="booking h-screen flex flex-col">
<TopNavBar
titleAlign="center"
:backgroundColor="$theme - color - 100"
:backgroundColor="$theme-color-100"
backIconColor="#000"
:shadow="false"
>
@@ -313,18 +313,6 @@ const handlePayClick = ThrottleUtils.createThrottle(async (goodsData) => {
uni.showToast({ title: "支付失败,请重试", icon: "none" });
},
});
// try {
// } catch (error) {
// console.error(error);
// uni.hideLoading(); // 提前关闭 loading确保 toast 能在安卓正常弹出
// setTimeout(() => {
// uni.showToast({ title: "请求出错,请重试", icon: "none" });
// }, 100);
// } finally {
// // 最终兜底关闭 loading
// uni.hideLoading();
// }
}, 1000);
</script>