This commit is contained in:
1173117610@qq.com 2026-05-11 09:51:36 +08:00
parent a0f1c45d40
commit 42f26ce588
1 changed files with 2 additions and 6 deletions

View File

@ -147,10 +147,6 @@
<!-- 图文详情 --> <!-- 图文详情 -->
<view class="detail-images" :class="{ 'collapsed': !isExpanded }"> <view class="detail-images" :class="{ 'collapsed': !isExpanded }">
<image v-for="(img, index) in product.detailImages" :key="index" :src="img" mode="widthFix" class="detail-img"></image> <image v-for="(img, index) in product.detailImages" :key="index" :src="img" mode="widthFix" class="detail-img"></image>
<view class="expand-mask" v-if="!isExpanded" @click="isExpanded = true">
<text class="mask-text">点击展开查看图文详情</text>
<view class="mask-arrow"></view>
</view>
</view> </view>
<!-- 同类型产品推荐 (1:1 还原) --> <!-- 同类型产品推荐 (1:1 还原) -->
@ -256,7 +252,7 @@
navOpacity: 0, navOpacity: 0,
bgOpacity: 0.4, bgOpacity: 0.4,
iconColor: '#ffffff', iconColor: '#ffffff',
isExpanded: false, isExpanded: true,
similarProducts: [] similarProducts: []
} }
}, },
@ -1200,7 +1196,7 @@
} }
.detail-images.collapsed { .detail-images.collapsed {
max-height: 1200rpx; max-height: 0;
} }
.detail-img { .detail-img {