Task:产品故事
This commit is contained in:
@@ -27,12 +27,13 @@
|
|||||||
<image :src="product.image" class="pro-cover-image" mode="widthFix|heightFix" />
|
<image :src="product.image" class="pro-cover-image" mode="widthFix|heightFix" />
|
||||||
</view>
|
</view>
|
||||||
<view class="good-story"
|
<view class="good-story"
|
||||||
|
v-if="product.productStory"
|
||||||
:style="{
|
:style="{
|
||||||
right: (item.productStoryX*2 || 0) + 'rpx',
|
right: (item.productStoryX*2 || 0) + 'rpx',
|
||||||
top: (item.productStoryY*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>
|
</view>
|
||||||
<image :src="item.cover" class="cover-image" mode="widthFix" />
|
<image :src="item.cover" class="cover-image" mode="widthFix" />
|
||||||
<!-- <view class="message-text" :style="{top: currentIndex !== index ? '260rpx' : '220rpx'}">{{ message }}</view> -->
|
<!-- <view class="message-text" :style="{top: currentIndex !== index ? '260rpx' : '220rpx'}">{{ message }}</view> -->
|
||||||
|
|||||||
@@ -15,13 +15,13 @@
|
|||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
class="good-story"
|
class="good-story"
|
||||||
v-if="card.isBlind !== 1"
|
v-if="card.isBlind !== 1 && card.giftProducts[0].productStory"
|
||||||
:style="{
|
:style="{
|
||||||
right: (card.productStoryX*2 || 0) + 'rpx',
|
right: (card.productStoryX*2 || 0) + 'rpx',
|
||||||
top: (card.productStoryY*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>
|
||||||
<view class="wrap-box">
|
<view class="wrap-box">
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user