mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 16:56:43 +08:00
【关于附加综合意外伤害保险(乐享版)投保流程增加《个人信息使用授权》阅知勾选的申请】订单详情获取pdf路径
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
<div class="bg-white bottom-btn">
|
||||
<van-radio-group v-model="radio" class="pb10 pb20 pl30">
|
||||
<van-radio name="1" @click="click" class="fs14">
|
||||
<van-radio name="1" @click="readClick" class="fs14">
|
||||
<span>本人确认已阅读《个人信息使用授权》 </span>
|
||||
</van-radio>
|
||||
</van-radio-group>
|
||||
@@ -17,9 +17,7 @@
|
||||
import { RadioGroup, Radio, Dialog, NoticeBar } from 'vant'
|
||||
import { saveInformation, getOrderDetail } from '@/api/ebiz/sale/sale'
|
||||
import utils from '@/assets/js/utils/date-utils'
|
||||
|
||||
// import config from '@/config'
|
||||
// import axios from 'axios'
|
||||
import config from '@/config'
|
||||
export default {
|
||||
data() {
|
||||
let isWeixin = this.$utils.device().isWeixin //判断环境
|
||||
@@ -119,6 +117,7 @@ export default {
|
||||
let dateTime
|
||||
dateTime=date.setDate(date.getDate()-1);
|
||||
this.cvalidateStrOneDayOff = utils.formatDate(new Date(dateTime), 'yyyy年MM月dd日');
|
||||
this.getOrderDetail()
|
||||
},
|
||||
timeOut() {
|
||||
let that = this
|
||||
@@ -138,8 +137,34 @@ export default {
|
||||
that.number = `${time}`
|
||||
}, 1000)
|
||||
},
|
||||
// 获取PDF的路径
|
||||
getOrderDetail() {
|
||||
let that = this
|
||||
let data = {
|
||||
orderNo: window.localStorage.getItem('orderNo')
|
||||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
getOrderDetail(data).then(res => {
|
||||
if (res.result == '0') {
|
||||
res.orderDTO.ebizSignDTOS.map(item => {
|
||||
if (item.documentCode == '12') {
|
||||
if (item.signType == '0' || item.signType == '2') {
|
||||
console.log('000000000', item)
|
||||
// that.appntSign = item
|
||||
that.tipsPolicyUrl = item.policyUrl
|
||||
console.log('that.appntSign', item.policyUrl)
|
||||
}
|
||||
}
|
||||
})
|
||||
that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.tipsPolicyUrl}`)
|
||||
console.log(' that.pdfUrl', that.pdfUrl)
|
||||
resolve('success')
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
// 点击阅读时
|
||||
click() {
|
||||
readClick() {
|
||||
let that = this
|
||||
if (that.isOver == false) {
|
||||
Dialog.confirm({
|
||||
|
||||
Reference in New Issue
Block a user