Task:产品故事
This commit is contained in:
@@ -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> -->
|
||||
|
||||
@@ -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">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user