mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 14:36:43 +08:00
[fix] 完成 联系方式变更协议 页面的数据请求
This commit is contained in:
@@ -7,4 +7,12 @@ export function edorChange(data) {
|
||||
method: 'post',
|
||||
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 {
|
||||
'/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>
|
||||
<script>
|
||||
import { RadioGroup, Radio, Dialog, NoticeBar } from 'vant'
|
||||
import { edorSignSave } from '@/api/ebiz/preserve/preserve'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -76,16 +77,49 @@ export default {
|
||||
},
|
||||
// 下一步
|
||||
goNext() {
|
||||
let path = '/preserve/ContactConfirmation?read=true'
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#' + path
|
||||
},
|
||||
routerInfo: {
|
||||
path: path
|
||||
}
|
||||
})
|
||||
let data = {
|
||||
surrenderDTOList: [
|
||||
{
|
||||
surrenderId: '',
|
||||
edorapplyNo: '',
|
||||
surrenderType: '',
|
||||
signDTOList: [
|
||||
{
|
||||
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: {
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
<script>
|
||||
import { Field, CellGroup, Checkbox, Popup, Picker, Area, RadioGroup, Radio, Dialog } from 'vant'
|
||||
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 {
|
||||
name: 'basicConfirmation',
|
||||
@@ -94,16 +94,16 @@ export default {
|
||||
[Area.name]: Area,
|
||||
[RadioGroup.name]: RadioGroup,
|
||||
[Radio.name]: Radio,
|
||||
[Dialog.name]: name,
|
||||
[Dialog.name]: name
|
||||
},
|
||||
filters: {
|
||||
Mask: function (value) {
|
||||
Mask: function(value) {
|
||||
if (value) {
|
||||
return value.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')
|
||||
} else {
|
||||
return ''
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -121,7 +121,7 @@ export default {
|
||||
signInvalid: '',
|
||||
customerMobile: '',
|
||||
submitForbidden: false,
|
||||
read: false,
|
||||
read: false
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
@@ -156,11 +156,11 @@ export default {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#' + path,
|
||||
url: location.origin + '/#' + path
|
||||
},
|
||||
routerInfo: {
|
||||
path: path,
|
||||
},
|
||||
path: path
|
||||
}
|
||||
})
|
||||
},
|
||||
// 获取短信验证码
|
||||
@@ -182,8 +182,8 @@ export default {
|
||||
validateCode: '',
|
||||
operateCode: this.customerMobile,
|
||||
system: '',
|
||||
operateCodeType: '0',
|
||||
}).then((res) => {
|
||||
operateCodeType: '0'
|
||||
}).then(res => {
|
||||
if (res.result == 0) {
|
||||
this.sessionId = res.sessionId
|
||||
} else {
|
||||
@@ -229,21 +229,21 @@ export default {
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + `/#/preserve/submitResult`,
|
||||
backToFirst: '1',
|
||||
backToFirst: '1'
|
||||
},
|
||||
routerInfo: {
|
||||
path: `/preserve/submitResult`,
|
||||
},
|
||||
path: `/preserve/submitResult`
|
||||
}
|
||||
})
|
||||
// } else {
|
||||
// this.$toast(res.resultMessage)
|
||||
// }
|
||||
},
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
//清理计时器
|
||||
this.clearTimer()
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -93,6 +93,7 @@ export default {
|
||||
this.jumpNextPage(this.path)
|
||||
}
|
||||
} else {
|
||||
// eslint-disable-next-line no-undef
|
||||
EWebBridge.webCallAppInJs('webview_toast', '人脸检测失败')
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user