Fix:4778 【商城小程序】产品故事苹果手机字体单独调整,字体加大2个字号
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
<image :src="product.image" class="pro-cover-image" mode="widthFix|heightFix" />
|
||||
</view>
|
||||
<view class="good-story"
|
||||
:class="{'ios-story': isIOS}"
|
||||
v-if="product.productStory && item.isShowProductStory"
|
||||
:style="{
|
||||
right: (item.productStoryX*2 || 0) + 'rpx',
|
||||
@@ -82,6 +83,11 @@ export default {
|
||||
currentIndex: this.index
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
isIOS() {
|
||||
return uni.getSystemInfoSync().osName === 'ios'
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
index(val) {
|
||||
this.currentIndex = val
|
||||
@@ -205,4 +211,7 @@ export default {
|
||||
font-size: 24rpx;
|
||||
line-height: 36rpx;
|
||||
}
|
||||
.good-story.ios-story{
|
||||
font-size: 26rpx;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
</view>
|
||||
<view
|
||||
class="good-story"
|
||||
:class="{'ios-story': isIOS}"
|
||||
v-if="card.isBlind !== 1 && card.giftProducts[0].productStory && card.isShowProductStory"
|
||||
:style="{
|
||||
right: (card.productStoryX*2 || 0) + 'rpx',
|
||||
@@ -158,6 +159,9 @@ export default {
|
||||
const isReceiveNum = this.card.giftProducts && this.card.giftProducts.filter(e => e.isReceive === 1).length
|
||||
return gitfNum === isReceiveNum
|
||||
},
|
||||
isIOS() {
|
||||
return uni.getSystemInfoSync().osName === 'ios'
|
||||
},
|
||||
isLogin() {
|
||||
return !!cookie.get('login_status');
|
||||
},
|
||||
@@ -462,4 +466,7 @@ export default {
|
||||
font-size: 24rpx;
|
||||
line-height: 36rpx;
|
||||
}
|
||||
.good-story.ios-story {
|
||||
font-size: 26rpx;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user