Commit 28a772b8 by 岑成威

fix: 长图比例修改

1 parent ec8c74ec
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
<image <image
:key="viewKey" :key="viewKey"
class="content" class="content"
:mode="isLongImage ? 'widthFix' : undefined"
:src="views[customerInfo.carModelId] || require('@/assets/images/media/nothing.webp')" :src="views[customerInfo.carModelId] || require('@/assets/images/media/nothing.webp')"
/> />
</template> </template>
...@@ -34,6 +35,7 @@ ...@@ -34,6 +35,7 @@
<image <image
v-if="views.detailUrl" v-if="views.detailUrl"
class="content" class="content"
:mode="isLongImage ? 'widthFix' : undefined"
:src="views.detailUrl" :src="views.detailUrl"
/> />
<!-- <image <!-- <image
...@@ -59,7 +61,8 @@ export default { ...@@ -59,7 +61,8 @@ export default {
madiaId: Number, madiaId: Number,
isByd: Boolean, isByd: Boolean,
show: Boolean, show: Boolean,
hasCarBrand: Boolean hasCarBrand: Boolean,
isLongImage: Boolean
}, },
components: { components: {
PageTitle PageTitle
...@@ -90,6 +93,7 @@ export default { ...@@ -90,6 +93,7 @@ export default {
.layout { .layout {
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow: hidden;
&-content { &-content {
height: 100%; height: 100%;
position: relative; position: relative;
......
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
:isPreview="isPreview" :isPreview="isPreview"
:isByd="isByd" :isByd="isByd"
:hasCarBrand="item.hasCarBrand" :hasCarBrand="item.hasCarBrand"
:isLongImage="isLongImageItem(item)"
:aitoCarModelIds="aitoCarModelIds" :aitoCarModelIds="aitoCarModelIds"
@brandPopupChange="brandPopupVisible = $event" @brandPopupChange="brandPopupVisible = $event"
/> />
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!