Fix:2909 【商城小程序】商品价格过长时,商品足迹内商品价格信息显示异常

This commit is contained in:
linxi
2024-12-24 10:50:10 +08:00
parent 420a14f6d9
commit 34ff7c403a
+4 -3
View File
@@ -43,9 +43,9 @@
<view class="v12-primary-text v12-primary-border v12-radius-6 v12-font-18 v12-px-1">{{ historyItem.couponName }}</view>
</view>
<view class="v12-justify-between v12-mt-2 price">
<view class="v12-font-bold v12-primary-text v12-align-center">
<view class="v12-font-bold v12-primary-text" :class="{'v12-align-center': (historyItem.price).toString().length < 5 && (historyItem.otPrice).toString().length < 5 }">
<text class="v12-font-16"></text>
<text class="v12-font-24">{{ historyItem.price }}</text>
<text class="v12-font-24 v12-mr-1">{{ historyItem.price }}</text>
<view class="ot-price v12-font-weight-400">
<text class="v12-font-22"></text>
<text class="v12-font-22">{{ historyItem.otPrice }}</text>
@@ -254,8 +254,9 @@ export default {
padding: 12rpx 12rpx 20rpx 12rpx;
.price {
line-height: 34rpx;
align-items: flex-end;
.ot-price {
margin: 0 0 0 10rpx;
// margin: 0 0 0 10rpx;
color: #CBCBCB;
position: relative;
}