Commit 28a772b8 by 岑成威

fix: 长图比例修改

1 parent ec8c74ec
......@@ -26,6 +26,7 @@
<image
:key="viewKey"
class="content"
:mode="isLongImage ? 'widthFix' : undefined"
:src="views[customerInfo.carModelId] || require('@/assets/images/media/nothing.webp')"
/>
</template>
......@@ -34,6 +35,7 @@
<image
v-if="views.detailUrl"
class="content"
:mode="isLongImage ? 'widthFix' : undefined"
:src="views.detailUrl"
/>
<!-- <image
......@@ -59,7 +61,8 @@ export default {
madiaId: Number,
isByd: Boolean,
show: Boolean,
hasCarBrand: Boolean
hasCarBrand: Boolean,
isLongImage: Boolean
},
components: {
PageTitle
......@@ -90,6 +93,7 @@ export default {
.layout {
width: 100%;
height: 100%;
overflow: hidden;
&-content {
height: 100%;
position: relative;
......
......@@ -63,6 +63,7 @@
</view>
<image
class="content-image"
:mode="isLongImage ? 'widthFix' : undefined"
:src="contentUrl()"
/>
</view>
......@@ -88,7 +89,8 @@ export default {
title: String,
views: [Array, Object],
aitoCarModelIds: Array,
isByd: Boolean
isByd: Boolean,
isLongImage: Boolean
},
name: 'Reception',
data () {
......@@ -215,7 +217,7 @@ export default {
.layout {
width: 100%;
height: 100%;
overflow: hidden;
background-size: 100%;
&-content {
position: relative;
......
......@@ -40,8 +40,9 @@
<template v-if="detail.viewActiveIndex.includes(activeIndex)">
<image
:key="imgKey"
:class="direction"
:class="[direction, { 'content-image-long': isLongImage }]"
class="content-image"
:mode="isLongImage ? 'widthFix' : undefined"
:src="viewsImg()"
/>
......@@ -58,8 +59,9 @@
<template v-else>
<image
:key="imgKey"
:class="direction"
:class="[direction, { 'content-image-long': isLongImage }]"
class="content-image"
:mode="isLongImage ? 'widthFix' : undefined"
:src="viewsImg()"
/>
</template>
......@@ -79,6 +81,7 @@ export default {
title: String,
madiaId: Number,
detail: Object,
isLongImage: Boolean,
},
name: 'MediaComponent',
data () {
......@@ -133,6 +136,7 @@ export default {
.layout {
width: 100%;
height: 100%;
overflow: hidden;
position: relative;
// background-image: url('@/assets/images/media/media-bg.webp');
background-size: 100%;
......@@ -221,6 +225,9 @@ export default {
width: toRpx(1778);
height: toRpx(1192);
}
.content-image-long {
height: auto;
}
}
.icon-car {
position: absolute;
......
......@@ -62,6 +62,7 @@
:isPreview="isPreview"
:isByd="isByd"
:hasCarBrand="item.hasCarBrand"
:isLongImage="isLongImageItem(item)"
:aitoCarModelIds="aitoCarModelIds"
@brandPopupChange="brandPopupVisible = $event"
/>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!