Merge branch 'feature/GFRS-2301【需求】健康险渠道国富无忧卡金掌桂开发的需求' into dev

This commit is contained in:
庞兴月
2021-04-06 16:25:55 +08:00

View File

@@ -1,7 +1,7 @@
<!--
* @Author: PangXingYue
* @Date: 2021-04-01 11:00:21
* @LastEditTime: 2021-04-06 11:34:36
* @LastEditTime: 2021-04-06 16:20:17
* @LastEditors: PangXingYue
* @Description:
* @FilePath: \ebiz-h5\src\views\ebiz\cardList\ShowPDF.vue
@@ -10,8 +10,8 @@
<div>
<van-notice-bar wrapable v-if="time > 0" :scrollable="false" :text="'提示:阅读时长需在' + time + '秒以上'" />
<iframe :src="src + pdfUrl" style="width: 100vw; height: calc(100vh - 100px)"></iframe>
<div class="bg-white bottom-btn">
<van-button type="danger" size="large" @click="nextStep" v-no-more-click="1000">下一步</van-button>
<div class="bg-white bottom-btn" v-if="docType === 'shareOpen'">
<van-button type="danger" size="large" @click="nextStep" v-no-more-click="1000">下一步</van-button>
</div>
</div>
</template>
@@ -28,7 +28,8 @@ export default {
timer: null,
time: 5,
cardListPDF: [],
orderDTO: []
orderDTO: [],
docType: ''
}
},
components: {
@@ -36,15 +37,25 @@ export default {
[Button.name]: Button
},
created() {
this.orderDTO = JSON.parse(sessionStorage.orderDetail)
if (sessionStorage.orderDetail) {
this.orderDTO = JSON.parse(sessionStorage.orderDetail)
this.cardListPDF = this.orderDTO.ebizSignDTOS
this.docType = 'shareOpen'
} else {
this.cardListPDF = JSON.parse(localStorage.getItem('cardListPDF'))
}
this.init()
},
mounted() {},
methods: {
init() {
this.cardListPDF = this.orderDTO.ebizSignDTOS
this.pdfUrl = this.cardListPDF[this.index].originalUrl
document.title = this.cardListPDF[this.index].documentName
init() {
if (sessionStorage.orderDetail) {
this.pdfUrl = this.cardListPDF.documentUrl
document.title = this.cardListPDF.title
} else {
this.pdfUrl = this.cardListPDF[this.index].originalUrl
document.title = this.cardListPDF[this.index].documentName
}
this.interval()
},
interval() {
@@ -87,8 +98,7 @@ export default {
})
if (this.index != -1) {
this.init()
}
console.log(this.index, '==============this.index===============')
}
}
} else {
this.cardListPDF[this.index]['documentStatus'] = '0'