From b337b3e90c0a1a5b1c2c71e23a184c7c463d46e4 Mon Sep 17 00:00:00 2001
From: mengxiaolong
Date: Tue, 4 Aug 2020 13:32:23 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=9B=B4=E6=96=B0=E9=97=AE?=
=?UTF-8?q?=E9=A2=98=E4=BB=B6=E8=AF=A6=E6=83=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/router/ebiz/question.js | 2 +-
src/views/ebiz/questions/QuestionsDetail.vue | 51 +++++++++++---------
src/views/ebiz/questions/QuestionsList.vue | 6 +--
src/views/ebiz/questions/Result.vue | 41 +++++++++++++---
4 files changed, 68 insertions(+), 32 deletions(-)
diff --git a/src/router/ebiz/question.js b/src/router/ebiz/question.js
index 0b8975021..6f9713256 100644
--- a/src/router/ebiz/question.js
+++ b/src/router/ebiz/question.js
@@ -20,7 +20,7 @@ export default [
}
},
{
- path: '/questions/result',
+ path: '/questions/result/:result',
name: 'result',
component: g('Result'),
meta: {
diff --git a/src/views/ebiz/questions/QuestionsDetail.vue b/src/views/ebiz/questions/QuestionsDetail.vue
index 1df6c5045..fb703c651 100644
--- a/src/views/ebiz/questions/QuestionsDetail.vue
+++ b/src/views/ebiz/questions/QuestionsDetail.vue
@@ -26,7 +26,7 @@
{{ supplement.descriptionPolicyholder }}
-
+
被投保人亲笔签名:
{{ insurantSigned ? '已签名' : '签名' }}
@@ -176,8 +176,10 @@ export default {
issueType: 0,
// 投保人是否已签名
policyholderSigned: false,
+ policyholderBase64: '',
// 被保人是否已签名
insurantSigned: false,
+ insurantBase64: '',
// 接收验证码手机号码
phoneNum: '',
showConfirm: false,
@@ -194,9 +196,6 @@ export default {
rgssUrl: res.path
})
},
- deleteImg(file, detail) {
- console.log(file, detail)
- },
async insurantUpload(file) {
let res = await this.afterRead(file)
this.supplement.insurantUploadResult.push({
@@ -231,10 +230,12 @@ export default {
let signRes = JSON.parse(res)
// 投保人签名
if (personType === 0 && signRes.state === '1') {
+ this.policyholderBase64 = decodeURI(signRes.sign)
this.policyholderSigned = true
}
// 被保人签名
else if (personType === 1 && signRes.state === '1') {
+ this.insurantBase64 = decodeURI(signRes.sign)
this.insurantSigned = true
}
console.log('签名结果: ', res)
@@ -329,22 +330,17 @@ export default {
// 转账失败问题件不用签名
if (this.issueType !== '818901') {
// 校验签名
- if (this.policyholderSigned && this.insurantSigned) {
- this.dialog = {
- type: 'confirm',
- show: true,
- text: '为确定用户身份,我们将向186xxxx8972此手机号发送验证码'
- }
+ if (this.problemDetail.receiveType === '0') {
+ if (!this.policyholderSigned) return this.$toast('请完成签名后继续操作')
} else {
- this.$toast('请完成全部签名后继续操作')
- }
- } else {
- this.dialog = {
- type: 'confirm',
- show: true,
- text: '为确定用户身份,我们将向186xxxx8972此手机号发送验证码'
+ if (!this.policyholderSigned || !this.insurantSigned) return this.$toast('请完成签名后继续操作')
}
}
+ this.dialog = {
+ type: 'confirm',
+ show: true,
+ text: '为确定用户身份,我们将向186xxxx8972此手机号发送验证码'
+ }
},
async getMessage({ type, data }) {
// 获取dialog信息,type为confirm时为短信框,alert时是确定框
@@ -394,6 +390,17 @@ export default {
}
// 更新
let res = await updateQuestionDetail(problemData)
+ console.dir(res)
+ if (res.result === '0') {
+ this.$jump({
+ flag: 'h5',
+ extra: {
+ forbidSwipeBack: '1',
+ url: location.origin + `/#/questions/result/${res.result}`
+ },
+ routerInfo: { path: `/questions/result/${res.result}` }
+ })
+ }
this.dialog.show = false
}
},
@@ -402,9 +409,9 @@ export default {
id: this.$route.params.id
})
this.problemDetail = rs.content.list[0]
- let problemDetail = rs.content.list[0]
- this.supplement.descriptionInsurant = problemDetail.content
- this.supplement.descriptionPolicyholder = problemDetail.issueContent
+ this.problemDetail.receiveType = JSON.parse(localStorage.getItem('currentProblemItem')).receiveType
+ this.supplement.descriptionInsurant = this.problemDetail.content
+ this.supplement.descriptionPolicyholder = this.problemDetail.issueContent
},
//微信空签
toAirSign(status, keyword, offset, originStatus, personType) {
@@ -591,7 +598,7 @@ export default {
}
}
.autograph {
- padding: 10px;
+ padding: 10px 10px 20px 10px;
font-size: 12px;
.list {
&:first-child {
diff --git a/src/views/ebiz/questions/QuestionsList.vue b/src/views/ebiz/questions/QuestionsList.vue
index 42b0a99a1..04e3bb2c4 100644
--- a/src/views/ebiz/questions/QuestionsList.vue
+++ b/src/views/ebiz/questions/QuestionsList.vue
@@ -44,7 +44,7 @@