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