|
|
@@ -7,7 +7,9 @@
|
|
|
|
|
|
</view>
|
|
|
<template v-if="info.id">
|
|
|
- <view class="pdf-box"> pdf展示 </view>
|
|
|
+ <view class="pdf-box">
|
|
|
+ <image v-for="item in imgList" :mode="item.mode" :src="`data:image/png;base64,${item}`"></image>
|
|
|
+ </view>
|
|
|
<!-- -->
|
|
|
<!-- <web-view class="dljt-pdf-view" :src="pdfUrl1" v-if="show"
|
|
|
webview-styles="height: 50vh;margin-top: 75px"></web-view> -->
|
|
|
@@ -48,6 +50,7 @@
|
|
|
const info = ref({})
|
|
|
const show = ref(false)
|
|
|
const popupRef = ref(null)
|
|
|
+ const imgList = ref([])
|
|
|
|
|
|
function goUpPage() {
|
|
|
uni.navigateBack()
|
|
|
@@ -67,9 +70,10 @@
|
|
|
|
|
|
httpApi.getHetongLast({id}).then(res => {
|
|
|
info.value = res.data;
|
|
|
- pdfUrl1.value = `/hybrid/html/web/viewer.html?file=${encodeURIComponent(res.data.pdfUrl)}`;
|
|
|
+ // pdfUrl1.value = `/hybrid/html/web/viewer.html?file=${encodeURIComponent(res.data.pdfUrl)}`;
|
|
|
// let pdfUrl2 = `https://mozilla.github.io/pdf.js/web/viewer.html?file=${encodeURIComponent(res.data.pdfUrl)}`
|
|
|
- console.log('info', info.value)
|
|
|
+ // console.log('info', info.value)
|
|
|
+ imgList.value = res.data.base64List;
|
|
|
setTimeout(() => {
|
|
|
console.log('xianshi')
|
|
|
show.value = true;
|