Commit 14b9fb7d by cen

fix: loading取消

1 parent 37745a5a
...@@ -399,31 +399,36 @@ export default { ...@@ -399,31 +399,36 @@ export default {
}) })
.then(async res => { .then(async res => {
console.log('res:', res) console.log('res:', res)
if (!res.false) { if (res.data.code == 0) {
that.$refs.signAgreementPopup.open().then(() => { uni.hideLoading()
uni.$api.evaluationApi.sendCustodyAgreement({ ...that.signAgreementObj, evalOrderNo: e.evalOrderNo }).then(res => { if (!res.data.data.false) {
if (res.data.code == 0) { that.$refs.signAgreementPopup.open().then(() => {
uni.hideLoading() uni.showLoading()
uni.showToast({ uni.$api.evaluationApi.sendCustodyAgreement({ ...that.signAgreementObj, evalOrderNo: e.evalOrderNo }).then(res => {
title: '代保管协议已发送', console.log(res, 'res')
icon: 'none' if (res.data.code == 0) {
}) uni.hideLoading()
that.currentPage = 1 uni.showToast({
that.search() title: '代保管协议已发送',
} icon: 'none'
})
that.currentPage = 1
that.search()
}
})
}) })
}) } else {
} else { uni.showLoading()
uni.showLoading() const res = await uni.$api.evaluationApi.signAgreement({
const res = await uni.$api.evaluationApi.signAgreement({ evalOrderNo: e.evalOrderNo
evalOrderNo: e.evalOrderNo
})
if (res.data.code == 0) {
uni.hideLoading()
uni.showToast({
title: e.status == 40 && e.paymentType == 1 ? '尾款款项已申请,完成代保管协议电子签约后将安排支付尾款' : '全款款项已申请,完成代保管协议电子签约后将安排支付全款',
icon: 'none'
}) })
if (res.data.code == 0) {
uni.hideLoading()
uni.showToast({
title: e.status == 40 && e.paymentType == 1 ? '尾款款项已申请,完成代保管协议电子签约后将安排支付尾款' : '全款款项已申请,完成代保管协议电子签约后将安排支付全款',
icon: 'none'
})
}
} }
} }
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!