feat: toast 问题
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user