|
@@ -135,9 +135,7 @@ Component({
|
|
|
}
|
|
}
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
// 请求失败时恢复按钮状态
|
|
// 请求失败时恢复按钮状态
|
|
|
- if (submitBtn) {
|
|
|
|
|
- submitBtn.resetState();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ this.resetSubmitState(false);
|
|
|
getTickleContext.call(this).showErrorMessage(error.errMsg);
|
|
getTickleContext.call(this).showErrorMessage(error.errMsg);
|
|
|
} finally {
|
|
} finally {
|
|
|
this.setData({ submitting: false });
|
|
this.setData({ submitting: false });
|