feat: toast 问题
This commit is contained in:
@@ -313,18 +313,6 @@ const handlePayClick = ThrottleUtils.createThrottle(async (goodsData) => {
|
|||||||
uni.showToast({ title: "支付失败,请重试", icon: "none" });
|
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);
|
}, 1000);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user