From ba3fbb47d8756b7ce1e53fe4fbd39eca37e9b6f4 Mon Sep 17 00:00:00 2001 From: wangmingzhe Date: Thu, 26 Dec 2019 14:40:05 +0800 Subject: [PATCH] =?UTF-8?q?[FIX]=20=E6=B7=BB=E5=8A=A0=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=A1=B5Loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/common/SelectedProduct.vue | 30 ++++++++++++++--------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/src/views/ebiz/common/SelectedProduct.vue b/src/views/ebiz/common/SelectedProduct.vue index f977c53bf..e51d1c290 100644 --- a/src/views/ebiz/common/SelectedProduct.vue +++ b/src/views/ebiz/common/SelectedProduct.vue @@ -104,6 +104,12 @@ export default { if (saleInsuredPersonInfo && saleInsuredPersonInfo.insuredId) { insuredId = saleInsuredPersonInfo.insuredId } + this.$toast.loading({ + duration: 0, // 持续展示 toast + forbidClick: true, // 禁用背景点击 + loadingType: 'spinner', + message: '加载中……' + }) resultData = await getDetail({ orderNo: localStorage.orderNo, isMerge: '1', @@ -111,6 +117,12 @@ export default { orderDTO: { insuredDTOs: [{ insuredId: insuredId }] } }) } else { + this.$toast.loading({ + duration: 0, // 持续展示 toast + forbidClick: true, // 禁用背景点击 + loadingType: 'spinner', + message: '加载中……' + }) resultData = await orderDetail({ orderNo: localStorage.orderNo, isMerge: '1' }) } if (resultData.result == 0) { @@ -126,27 +138,21 @@ export default { this.total = resultData.orderDTO.orderInfoDTO.orderAmount * 100 //险种数据格式化 riskDTOLst = resultData.orderDTO.insuredDTOs[0].riskDTOLst + if (riskDTOLst.length == 0) { + this.isShow = true + } else { + this.isShow = false + } } if (!riskDTOLst) riskDTOLst = [] this.$utils.intLocalStorage(resultData, isProposal) this.chooseProducts = formatAllRisk(riskDTOLst) - console.log(this.chooseProducts) - if (!isProposal) { - if (this.chooseProducts.length == 0) { - this.isShow = true - } else { - // if (this.chooseProducts[0].riskCode == 'GFRS_M0011') { - // this.isShow = true - // } else { - this.isShow = false - // } - } - } if (riskDTOLst.length > 0) { this.nextStepFlag = false } + this.$toast.clear() } else { this.$toast(resultData.resultMessage) }