Commit 19b0ffbe by liimin

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

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