【国富人寿】银行卡信息获取详情接口从create中移到mounted中

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-05-23 18:13:32 +08:00
parent 0a12a761a8
commit 035df60bba

View File

@@ -650,7 +650,10 @@ export default {
}) })
} }
}, },
async created() { created() {
},
async mounted() {
this.$store.commit('updateAnswerType', false ) this.$store.commit('updateAnswerType', false )
let res = await getOrderDetail({ orderNo: this.$route.query.orderNo }) let res = await getOrderDetail({ orderNo: this.$route.query.orderNo })
this.$toast.loading({ this.$toast.loading({
@@ -665,25 +668,27 @@ export default {
this.renovate = new Date().getTime() this.renovate = new Date().getTime()
console.log(updateAnswerType,'updateAnswerType'); console.log(updateAnswerType,'updateAnswerType');
if(res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint == '1'&&res.orderDTO.riskEvaluationDTO.totalScore == null){ if(res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint == '1'&&res.orderDTO.riskEvaluationDTO.totalScore == null){
Dialog.alert({ Dialog.alert({
title: '提示', title: '提示',
message: '您当前未完成测评,请完成后再进行后续操作', message: '您当前未完成测评,请完成后再进行后续操作',
theme: 'round-button', theme: 'round-button',
}).then(() => { }).then(() => {
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
url: location.origin + '/#/sale/answerPage', url: location.origin + '/#/sale/answerPage',
}, },
routerInfo: { routerInfo: {
path: '/sale/answerPage' path: '/sale/answerPage'
} }
}) })
// on close // on close
}) })
} }
this.appntDTO = res.orderDTO.appntDTO this.appntDTO = res.orderDTO.appntDTO
this.$set(this.appntDTO,'mobile',res.orderDTO.appntDTO.mobile)
this.orderInfoDTO = res.orderDTO.orderInfoDTO this.orderInfoDTO = res.orderDTO.orderInfoDTO
//如果是从编辑进来的 //如果是从编辑进来的
if (this.$route.query.edit) { if (this.$route.query.edit) {
@@ -742,8 +747,7 @@ export default {
this.isForceRenew = localStorage.isForceRenew == '0' ? true : false this.isForceRenew = localStorage.isForceRenew == '0' ? true : false
this.isChecked = localStorage.isForceRenew == '0' ? true : false this.isChecked = localStorage.isForceRenew == '0' ? true : false
this.$toast.clear() this.$toast.clear()
},
mounted() {
document.body.style.backgroundColor = '#F5F5F5' document.body.style.backgroundColor = '#F5F5F5'
setTimeout(() => { setTimeout(() => {
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef