mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 06:16:44 +08:00
[FIX]【商品商城】pdf预览路径调整
This commit is contained in:
@@ -12,7 +12,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-if="isWeixin">
|
<div v-if="isWeixin">
|
||||||
<van-popup v-model="pdfPop" closeable position="bottom">
|
<van-popup v-model="pdfPop" closeable position="bottom">
|
||||||
<iframe :src="src + detail.pdfUrl" class="iframe"></iframe>
|
<div style="margin-top:4vh">
|
||||||
|
<iframe :src="src + pdfUrl" class="iframe"></iframe>
|
||||||
|
</div>
|
||||||
</van-popup>
|
</van-popup>
|
||||||
<van-radio-group v-model="radio" class="pb10 pt20 pl30 fs14">
|
<van-radio-group v-model="radio" class="pb10 pt20 pl30 fs14">
|
||||||
<van-radio name="1">
|
<van-radio name="1">
|
||||||
@@ -82,11 +84,11 @@ export default {
|
|||||||
aname: '',
|
aname: '',
|
||||||
password: ''
|
password: ''
|
||||||
},
|
},
|
||||||
|
pdfUrl: '', //pdf地址
|
||||||
detail: {
|
detail: {
|
||||||
topImgUrl: '', //商城简介图片地址
|
topImgUrl: '', //商城简介图片地址
|
||||||
middleImgUrl: '', //商城简介图片地址
|
middleImgUrl: '', //商城简介图片地址
|
||||||
footerImgUrl: '', //商城简介图片地址
|
footerImgUrl: '', //商城简介图片地址
|
||||||
pdfUrl: '', //pdf地址
|
|
||||||
linkUrl: '', //商城外链地址
|
linkUrl: '', //商城外链地址
|
||||||
name: '', //商城名称
|
name: '', //商城名称
|
||||||
color: '' //背景色
|
color: '' //背景色
|
||||||
@@ -131,6 +133,7 @@ export default {
|
|||||||
if (!res) return
|
if (!res) return
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
this.detail = res.content[0]
|
this.detail = res.content[0]
|
||||||
|
this.pdfUrl = this.$assetsUrl + res.content[0].pdfUrl
|
||||||
this.loaded = true
|
this.loaded = true
|
||||||
this.isCanCheck2 = true
|
this.isCanCheck2 = true
|
||||||
} else {
|
} else {
|
||||||
@@ -215,6 +218,7 @@ export default {
|
|||||||
.iframe {
|
.iframe {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 90vh;
|
height: 90vh;
|
||||||
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user