mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-12 02:06:43 +08:00
[fix] 完成 联系方式变更协议 页面的数据请求
This commit is contained in:
@@ -7,4 +7,12 @@ export function edorChange(data) {
|
|||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function edorSignSave(data) {
|
||||||
|
return request({
|
||||||
|
url: getUrl('/edor/sign/save', 0),
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,7 @@
|
|||||||
// 保全
|
// 保全
|
||||||
|
let mockBaseUrl = 'http://localhost:3001/rest/v1'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
'/edor/item/change': 'https://mockapi.eolinker.com/ScCp8u6b1d5781111d84f7b3fe45a0852e59758cd7a87e5/edor/item/change',
|
'/edor/item/change': mockBaseUrl + '/edor/item/change',
|
||||||
|
'/edor/sign/save': mockBaseUrl + '/edor/sign/save',
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { RadioGroup, Radio, Dialog, NoticeBar } from 'vant'
|
import { RadioGroup, Radio, Dialog, NoticeBar } from 'vant'
|
||||||
|
import { edorSignSave } from '@/api/ebiz/preserve/preserve'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@@ -76,16 +77,49 @@ export default {
|
|||||||
},
|
},
|
||||||
// 下一步
|
// 下一步
|
||||||
goNext() {
|
goNext() {
|
||||||
let path = '/preserve/ContactConfirmation?read=true'
|
let data = {
|
||||||
this.$jump({
|
surrenderDTOList: [
|
||||||
flag: 'h5',
|
{
|
||||||
extra: {
|
surrenderId: '',
|
||||||
url: location.origin + '/#' + path
|
edorapplyNo: '',
|
||||||
},
|
surrenderType: '',
|
||||||
routerInfo: {
|
signDTOList: [
|
||||||
path: path
|
{
|
||||||
}
|
baseEncryp: '',
|
||||||
})
|
surrenderId: '',
|
||||||
|
documentType: '0',
|
||||||
|
policyUrl: '',
|
||||||
|
documentCode: '',
|
||||||
|
documentName: '',
|
||||||
|
documentStatus: '1',
|
||||||
|
signType: '0'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
edorSignSave(data)
|
||||||
|
.then(res => {
|
||||||
|
console.log(res)
|
||||||
|
if (res.result == 0) {
|
||||||
|
let path = '/preserve/ContactConfirmation?read=true'
|
||||||
|
this.$jump({
|
||||||
|
flag: 'h5',
|
||||||
|
extra: {
|
||||||
|
url: location.origin + '/#' + path
|
||||||
|
},
|
||||||
|
routerInfo: {
|
||||||
|
path: path
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$toast(res.resultMessage)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch(err => {
|
||||||
|
console.log(err);
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Field, CellGroup, Checkbox, Popup, Picker, Area, RadioGroup, Radio, Dialog } from 'vant'
|
import { Field, CellGroup, Checkbox, Popup, Picker, Area, RadioGroup, Radio, Dialog } from 'vant'
|
||||||
import getAreaName from '@/assets/js/utils/get-area-name'
|
import getAreaName from '@/assets/js/utils/get-area-name'
|
||||||
import { authCode, changeStatus } from '@/api/ebiz/preserve/preserve'
|
import { authCode } from '@/api/ebiz/preserve/preserve'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'basicConfirmation',
|
name: 'basicConfirmation',
|
||||||
@@ -94,16 +94,16 @@ export default {
|
|||||||
[Area.name]: Area,
|
[Area.name]: Area,
|
||||||
[RadioGroup.name]: RadioGroup,
|
[RadioGroup.name]: RadioGroup,
|
||||||
[Radio.name]: Radio,
|
[Radio.name]: Radio,
|
||||||
[Dialog.name]: name,
|
[Dialog.name]: name
|
||||||
},
|
},
|
||||||
filters: {
|
filters: {
|
||||||
Mask: function (value) {
|
Mask: function(value) {
|
||||||
if (value) {
|
if (value) {
|
||||||
return value.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')
|
return value.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')
|
||||||
} else {
|
} else {
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -121,7 +121,7 @@ export default {
|
|||||||
signInvalid: '',
|
signInvalid: '',
|
||||||
customerMobile: '',
|
customerMobile: '',
|
||||||
submitForbidden: false,
|
submitForbidden: false,
|
||||||
read: false,
|
read: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
@@ -156,11 +156,11 @@ export default {
|
|||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + '/#' + path,
|
url: location.origin + '/#' + path
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: path,
|
path: path
|
||||||
},
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 获取短信验证码
|
// 获取短信验证码
|
||||||
@@ -182,8 +182,8 @@ export default {
|
|||||||
validateCode: '',
|
validateCode: '',
|
||||||
operateCode: this.customerMobile,
|
operateCode: this.customerMobile,
|
||||||
system: '',
|
system: '',
|
||||||
operateCodeType: '0',
|
operateCodeType: '0'
|
||||||
}).then((res) => {
|
}).then(res => {
|
||||||
if (res.result == 0) {
|
if (res.result == 0) {
|
||||||
this.sessionId = res.sessionId
|
this.sessionId = res.sessionId
|
||||||
} else {
|
} else {
|
||||||
@@ -229,21 +229,21 @@ export default {
|
|||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + `/#/preserve/submitResult`,
|
url: location.origin + `/#/preserve/submitResult`,
|
||||||
backToFirst: '1',
|
backToFirst: '1'
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: `/preserve/submitResult`,
|
path: `/preserve/submitResult`
|
||||||
},
|
}
|
||||||
})
|
})
|
||||||
// } else {
|
// } else {
|
||||||
// this.$toast(res.resultMessage)
|
// this.$toast(res.resultMessage)
|
||||||
// }
|
// }
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
//清理计时器
|
//清理计时器
|
||||||
this.clearTimer()
|
this.clearTimer()
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ export default {
|
|||||||
this.jumpNextPage(this.path)
|
this.jumpNextPage(this.path)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
// eslint-disable-next-line no-undef
|
||||||
EWebBridge.webCallAppInJs('webview_toast', '人脸检测失败')
|
EWebBridge.webCallAppInJs('webview_toast', '人脸检测失败')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user