update:提示
This commit is contained in:
parent
030e545dff
commit
fb23abcb6d
@ -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();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@ -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' });
|
||||
});
|
||||
}
|
||||
|
||||
@ -170,7 +170,7 @@ Page({
|
||||
});
|
||||
},
|
||||
fail: () => {
|
||||
wx.hideLoading();
|
||||
// wx.hideLoading();
|
||||
wx.showToast({ title: '下载失败', icon: 'none' });
|
||||
}
|
||||
});
|
||||
|
||||
@ -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();
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
@ -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();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@ -208,7 +208,7 @@ function request({
|
||||
}
|
||||
|
||||
// ── 404 资源不存在 ───────────────────────────────────────────
|
||||
if (statusCode === 404) {
|
||||
if (statusCode == 404) {
|
||||
wx.showToast({ title: errors || '请求资源不存在', icon: 'none' });
|
||||
reject(new Error(errors));
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user