[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'] = ``
// config.headers['token'] = `f0003a753d1d492083248f723ab1b6e9`//TEST测试专用
return config
},
error => {

View File

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