Fix:4778 【商城小程序】产品故事苹果手机字体单独调整,字体加大2个字号

This commit is contained in:
LinCyJang
2026-01-04 19:39:03 +08:00
parent e6c7b3d989
commit 1b79ae1678
2 changed files with 16 additions and 0 deletions
@@ -27,6 +27,7 @@
<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"
:class="{'ios-story': isIOS}"
v-if="product.productStory && item.isShowProductStory" v-if="product.productStory && item.isShowProductStory"
:style="{ :style="{
right: (item.productStoryX*2 || 0) + 'rpx', right: (item.productStoryX*2 || 0) + 'rpx',
@@ -82,6 +83,11 @@ export default {
currentIndex: this.index currentIndex: this.index
} }
}, },
computed: {
isIOS() {
return uni.getSystemInfoSync().osName === 'ios'
}
},
watch: { watch: {
index(val) { index(val) {
this.currentIndex = val this.currentIndex = val
@@ -205,4 +211,7 @@ export default {
font-size: 24rpx; font-size: 24rpx;
line-height: 36rpx; line-height: 36rpx;
} }
.good-story.ios-story{
font-size: 26rpx;
}
</style> </style>
@@ -15,6 +15,7 @@
</view> </view>
<view <view
class="good-story" class="good-story"
:class="{'ios-story': isIOS}"
v-if="card.isBlind !== 1 && card.giftProducts[0].productStory && card.isShowProductStory" v-if="card.isBlind !== 1 && card.giftProducts[0].productStory && card.isShowProductStory"
:style="{ :style="{
right: (card.productStoryX*2 || 0) + 'rpx', 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 const isReceiveNum = this.card.giftProducts && this.card.giftProducts.filter(e => e.isReceive === 1).length
return gitfNum === isReceiveNum return gitfNum === isReceiveNum
}, },
isIOS() {
return uni.getSystemInfoSync().osName === 'ios'
},
isLogin() { isLogin() {
return !!cookie.get('login_status'); return !!cookie.get('login_status');
}, },
@@ -462,4 +466,7 @@ export default {
font-size: 24rpx; font-size: 24rpx;
line-height: 36rpx; line-height: 36rpx;
} }
.good-story.ios-story {
font-size: 26rpx;
}
</style> </style>