mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 04:36:44 +08:00
[FIX] 修改背景填充
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<div v-if="isWeixin">
|
||||
<van-notice-bar wrapable :scrollable="false" text="温馨提示:您即将离开本站,访问的链接来源于第三方网站,可能存在风险,请谨慎操作!" />
|
||||
</div>
|
||||
<div class="img-store clearfix">
|
||||
<div class="img-store clearfix" ref="imgContainer">
|
||||
<div v-if="!isWeixin"><img v-if="loaded" :src="$assetsUrl + detail.topImgUrl" alt="" width="100%" /></div>
|
||||
<div v-if="!isWeixin">
|
||||
<img v-if="loaded" @load="imageLoaded($event)" :src="$assetsUrl + detail.middleImgUrl" alt="" width="100%" />
|
||||
@@ -201,8 +201,9 @@ export default {
|
||||
},
|
||||
imageLoaded(e) {
|
||||
const screeVH = window.innerHeight,
|
||||
detailVH = e.path[3].offsetHeight
|
||||
detailVH = this.$refs.imgContainer.offsetHeight
|
||||
this.$nextTick(() => {
|
||||
console.log(screeVH - detailVH)
|
||||
screeVH - detailVH > 0 ? (this.$refs.fillContent.style.height = screeVH - detailVH + 'px') : '0px'
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user