[FIX]保全-退保pdf预览调试

This commit is contained in:
yuweiqi
2020-06-09 11:47:16 +08:00
parent 8fe0e9024c
commit 24ef0c5df2
2 changed files with 9 additions and 4 deletions

View File

@@ -93,7 +93,7 @@ service.interceptors.request.use(
} }
config.headers['token'] = window.localStorage.getItem('token') config.headers['token'] = window.localStorage.getItem('token')
// config.headers['token'] = `` // config.headers['token'] = `f0003a753d1d492083248f723ab1b6e9`//TEST测试专用
return config return config
}, },
error => { error => {

View File

@@ -6,7 +6,7 @@
<van-radio-group v-model="radio" class="pb10 pt20 pl30 pr30 fs14"> <van-radio-group v-model="radio" class="pb10 pt20 pl30 pr30 fs14">
<van-radio name="1" @click="click"> <van-radio name="1" @click="click">
本人确认已阅读 本人确认已阅读
<span class="red">{{ pdfList[0].documentName }}</span> <span class="red">{{ documentName }}</span>
</van-radio> </van-radio>
</van-radio-group> </van-radio-group>
<div class="bg-white bottom-btn"> <div class="bg-white bottom-btn">
@@ -34,6 +34,7 @@ export default {
// 按钮是否可以点击 // 按钮是否可以点击
isDisable: true, isDisable: true,
pdfUrl: '', pdfUrl: '',
documentName: '', //文档名称
pdfList: [], pdfList: [],
customerInfo: JSON.parse(localStorage.getItem('preserve-customerInfo')), customerInfo: JSON.parse(localStorage.getItem('preserve-customerInfo')),
policy: JSON.parse(localStorage['preserve-policy']), policy: JSON.parse(localStorage['preserve-policy']),
@@ -46,11 +47,11 @@ export default {
[Dialog.name]: Dialog, [Dialog.name]: Dialog,
[NoticeBar.name]: NoticeBar [NoticeBar.name]: NoticeBar
}, },
mounted() {},
created() { created() {
this.timeOut() this.timeOut()
this.init() this.init()
}, },
mounted() {},
methods: { methods: {
//信息初始化 //信息初始化
init() { init() {
@@ -62,7 +63,11 @@ export default {
res => { res => {
if (res.result == 0) { if (res.result == 0) {
this.pdfList = res.content.surrenderSignList this.pdfList = res.content.surrenderSignList
this.pdfUrl = this.pdfList[0].policyUrl // this.pdfUrl = this.pdfList[0].policyUrl
this.pdfUrl =
'Ra4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoPKPyCLFQ24jT2yrqIbfar6ORGrkmYsocow%0ArEcXnbvgOEa2vHPyBGfGovb0%2F5Q3RP%2BVGLphInLPv0HGtHpZ3OhD' //TEST测试专用
this.documentName = this.pdfList[0].documentName
console.log('1111', this.pdfUrl) //TEST测试专用
resolve() resolve()
} else { } else {
reject(this.$toast(res.resultMessage)) reject(this.$toast(res.resultMessage))