- {{ supplement.problemDescription }} + {{ supplement.descriptionPolicyholder }}
diff --git a/src/api/ebiz/questions/index.js b/src/api/ebiz/questions/index.js index 6d3094d63..6bffb126b 100644 --- a/src/api/ebiz/questions/index.js +++ b/src/api/ebiz/questions/index.js @@ -18,3 +18,12 @@ export function getQuestionDetail(data = {}) { data }) } + +// 更新 +export function updateQuestionDetail(data = {}) { + return request({ + method: 'post', + url: getUrl('/sale/issue/updatePrtIssue', 1), + data + }) +} diff --git a/src/components/ebiz/question/ShortMessage.vue b/src/components/ebiz/question/ShortMessage.vue index 1c2eeadca..e2dbae9f9 100644 --- a/src/components/ebiz/question/ShortMessage.vue +++ b/src/components/ebiz/question/ShortMessage.vue @@ -37,7 +37,8 @@ export default { data() { return { code: '', - sid: '' + sid: '', + getCaptcha: false } }, watch: { @@ -55,9 +56,13 @@ export default { }, methods: { cancel() { + this.code = '' this.$emit('update:show', false) }, async confirm() { + if (!this.getCaptcha) { + return this.$toast('请先获取验证码') + } if (!this.code.trim()) { return this.$toast('请输入验证码') } @@ -67,21 +72,17 @@ export default { }) console.log(res) if (res.result === '0') { - // - this.$jump({ - flag: 'h5', - extra: { - url: `${window.location.origin}/#/questions/result` - }, - routerInfo: { - path: `/questions/result` - } + this.$emit('getMessage', { + type: 'confirm', + data: true }) } else { this.$toast('验证失败, 请重新获取验证码') } + this.code = '' }, async getMessage() { + this.getCaptcha = true let data = { operateType: 'appntInfoEntry', type: 'H5', diff --git a/src/views/ebiz/questions/QuestionsDetail.vue b/src/views/ebiz/questions/QuestionsDetail.vue index 7cfbf83a5..a4663e764 100644 --- a/src/views/ebiz/questions/QuestionsDetail.vue +++ b/src/views/ebiz/questions/QuestionsDetail.vue @@ -11,22 +11,22 @@
- {{ supplement.problemDescription }} + {{ supplement.descriptionInsurant }}
- {{ supplement.problemDescription }} + {{ supplement.descriptionPolicyholder }}