更新加载中的异常处理
This commit is contained in:
parent
e76fac7bca
commit
4cb8f15274
@ -119,6 +119,7 @@
|
||||
},
|
||||
// 发送合同
|
||||
async addContract(data) {
|
||||
try{
|
||||
uni.showLoading({
|
||||
title:'合同发送中',
|
||||
mask: true
|
||||
@ -140,6 +141,10 @@
|
||||
uni.hideLoading();
|
||||
Toast('合同已发送');
|
||||
this.naviTo('/subpkg/submit/submit');
|
||||
}catch(e){
|
||||
uni.hideLoading();
|
||||
Toast('发送失败');
|
||||
}
|
||||
},
|
||||
// 发送短信
|
||||
async getPostsms() {
|
||||
|
@ -299,12 +299,13 @@
|
||||
contract_type: data.contract_type,
|
||||
type: data.type
|
||||
})
|
||||
// Toast('合同已生成');
|
||||
this.loadUserDetail();
|
||||
uni.hideLoading();
|
||||
Toast('合同已生成');
|
||||
},
|
||||
// 发送合同
|
||||
async addContract(data) {
|
||||
try{
|
||||
uni.showLoading({
|
||||
title:'合同发送中',
|
||||
mask: true
|
||||
@ -312,7 +313,6 @@
|
||||
let res = await userDraftingcontracts({
|
||||
id: this.userInfo.id
|
||||
});
|
||||
// Toast('合同已发送');
|
||||
this.loadUserDetail();
|
||||
if (this.userInfo.contract.check_status == 3) {
|
||||
this.timerCount = 60;
|
||||
@ -325,7 +325,12 @@
|
||||
}, 1000);
|
||||
}
|
||||
uni.hideLoading();
|
||||
Toast('合同已发送');
|
||||
this.naviTo('/subpkg/submit/submit');
|
||||
}catch(e){
|
||||
uni.hideLoading();
|
||||
Toast('合同发送失败');
|
||||
}
|
||||
},
|
||||
// 发送短信
|
||||
async getPostsms() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user