Task:产品故事

This commit is contained in:
LinCyJang
2025-12-28 20:00:42 +08:00
parent 5ba8a653a7
commit d70440b948
2 changed files with 4 additions and 3 deletions
@@ -27,12 +27,13 @@
<image :src="product.image" class="pro-cover-image" mode="widthFix|heightFix" />
</view>
<view class="good-story"
v-if="product.productStory"
:style="{
right: (item.productStoryX*2 || 0) + 'rpx',
top: (item.productStoryY*2 || 0) + 'rpx'
}"
>
<view v-for="(line, j) in product.productStory ? product.productStory.split('/n') : productStory.split('/n')" :key="j">{{ line }}</view>
<view v-for="(line, j) in product.productStory.split('/n')" :key="j">{{ line }}</view>
</view>
<image :src="item.cover" class="cover-image" mode="widthFix" />
<!-- <view class="message-text" :style="{top: currentIndex !== index ? '260rpx' : '220rpx'}">{{ message }}</view> -->
+2 -2
View File
@@ -15,13 +15,13 @@
</view>
<view
class="good-story"
v-if="card.isBlind !== 1"
v-if="card.isBlind !== 1 && card.giftProducts[0].productStory"
:style="{
right: (card.productStoryX*2 || 0) + 'rpx',
top: (card.productStoryY*2 || 0) + 'rpx'
}"
>
<view v-for="(line, j) in card.productStory ? card.productStory.split('/n') : productStory.split('/n')" :key="j">{{ line }}</view>
<view v-for="(line, j) in card.giftProducts[0].productStory.split('/n')" :key="j">{{ line }}</view>
</view>
<view class="wrap-box">