mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-16 14:36:44 +08:00
PDF地址修改
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
<img v-if="type === 'img'" :src="$assetsUrl + img" @click="prevImg" />
|
<img v-if="type === 'img'" :src="$assetsUrl + img" @click="prevImg" />
|
||||||
<iframe v-if="type === 'pdf'" :src="$assetsUrl + img" frameborder="0" class="pdf"></iframe>
|
<iframe v-if="type === 'pdf'" :src="pdfUrl()" frameborder="0" class="pdf"></iframe>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -30,6 +30,9 @@ export default {
|
|||||||
document.title = this.title
|
document.title = this.title
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
pdfUrl() {
|
||||||
|
return location.origin + '/pdfjs/web/viewer.html?file=' + this.$assetsUrl + this.img
|
||||||
|
},
|
||||||
prevImg() {
|
prevImg() {
|
||||||
ImagePreview([this.$assetsUrl + this.img])
|
ImagePreview([this.$assetsUrl + this.img])
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user