Commit 19b0ffbe by liimin

fix: 延迟隐藏加载状态以避免闪烁

在取消操作和输入快递单号后,立即隐藏加载状态可能导致界面闪烁。通过添加500毫秒延迟来改善用户体验。
1 parent 46c673b5
......@@ -135,7 +135,9 @@ Page({
wx.p.wxApi.showToast("已取消");
})
.finally(() => {
wx.hideLoading();
setTimeout(() => {
wx.hideLoading();
}, 500);
});
},
previewImage(e) {
......
......@@ -64,7 +64,9 @@ Component({
}
})
.finally(() => {
wx.p.wxApi.hideLoading();
setTimeout(() => {
wx.p.wxApi.hideLoading();
}, 500);
});
},
onExpressNoInput(e) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!