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