diff --git a/src/views/ebiz/sale/PersonalInformation.vue b/src/views/ebiz/sale/PersonalInformation.vue
index 2975cde3f..a55e8b0de 100644
--- a/src/views/ebiz/sale/PersonalInformation.vue
+++ b/src/views/ebiz/sale/PersonalInformation.vue
@@ -5,7 +5,7 @@
-
+
本人确认已阅读《个人信息使用授权》
@@ -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({