update:提示

This commit is contained in:
ltx 2026-04-13 23:56:07 +08:00
parent 030e545dff
commit fb23abcb6d
6 changed files with 11 additions and 10 deletions

View File

@ -229,7 +229,7 @@ Page({
wx.showToast({ title: (err && err.message) || '识别失败', icon: 'none' });
} finally {
this.setData({ recognizing: false });
wx.hideLoading();
// wx.hideLoading();
}
},
@ -261,7 +261,7 @@ Page({
})
.finally(() => {
this.setData({ codeSending: false });
wx.hideLoading();
// wx.hideLoading();
});
},
@ -366,7 +366,7 @@ Page({
})
.finally(() => {
this.setData({ submitting: false });
wx.hideLoading();
// wx.hideLoading();
});
}
});

View File

@ -163,14 +163,14 @@ Page({
}
})
.then(() => {
wx.hideLoading();
// wx.hideLoading();
wx.showToast({ title: '退款申请已提交', icon: 'success' });
setTimeout(() => {
wx.navigateBack();
}, 1500);
})
.catch((err) => {
wx.hideLoading();
// wx.hideLoading();
wx.showToast({ title: (err && err.message) || '提交失败,请稍后重试', icon: 'none' });
});
}

View File

@ -170,7 +170,7 @@ Page({
});
},
fail: () => {
wx.hideLoading();
// wx.hideLoading();
wx.showToast({ title: '下载失败', icon: 'none' });
}
});

View File

@ -177,11 +177,12 @@ Page({
}, 400);
})
.catch((err) => {
console.error('登录失败', err);
wx.showToast({ title: err.message || '登录失败', icon: 'none' });
})
.finally(() => {
this.setData({ logging: false });
wx.hideLoading();
// wx.hideLoading();
});
},

View File

@ -82,7 +82,7 @@ Page({
})
.finally(() => {
this.setData({ codeSending: false });
wx.hideLoading();
// wx.hideLoading();
});
},
@ -153,7 +153,7 @@ Page({
})
.finally(() => {
this.setData({ submitting: false });
wx.hideLoading();
// wx.hideLoading();
});
}
});

View File

@ -208,7 +208,7 @@ function request({
}
// ── 404 资源不存在 ───────────────────────────────────────────
if (statusCode === 404) {
if (statusCode == 404) {
wx.showToast({ title: errors || '请求资源不存在', icon: 'none' });
reject(new Error(errors));
return;