价格显示调整

This commit is contained in:
2025-03-14 20:23:37 +08:00
parent e93e48f2e3
commit b9036b650e
3 changed files with 10 additions and 7 deletions

View File

@ -131,11 +131,11 @@ bind:enter="enterPageContainer" bind:leave="leavePageContainer" wx:if="{{isShowO
</view> </view>
<view class="kv-item" wx:if="{{preOrder.price_info.coupon_discount_amount}}"> <view class="kv-item" wx:if="{{preOrder.price_info.coupon_discount_amount}}">
<view class="key">优惠券</view> <view class="key">优惠券</view>
<view class="value yellow">- {{preOrder.price_info.coupon_discount_amount}}</view> <view class="value money yellow">{{preOrder.price_info.coupon_discount_amount}}</view>
</view> </view>
<view class="kv-item" wx:if="{{preOrder.used_points}}"> <view class="kv-item" wx:if="{{preOrder.price_info.points_discount_amount}}">
<view class="key">蜂蜜抵</view> <view class="key">蜂蜜抵</view>
<view class="value yellow">- {{preOrder.used_points}}克</view> <view class="value money yellow">{{preOrder.price_info.points_discount_amount}}</view>
</view> </view>
<view class="kv-item"> <view class="kv-item">
<view class="key"> <view class="key">

View File

@ -220,6 +220,9 @@
.pc-content .kv-item .yellow{ .pc-content .kv-item .yellow{
color: #FF8400; color: #FF8400;
} }
.pc-content .kv-item .yellow.money::before{
content: '- ¥ ';
}
.pc-content .kv-item .red{ .pc-content .kv-item .red{
color: #ff0000; color: #ff0000;
} }

View File

@ -161,12 +161,12 @@ Page({
// [`choosedStationList[${itemIndex}]`]:this.data.choosedStationList[itemIndex] // [`choosedStationList[${itemIndex}]`]:this.data.choosedStationList[itemIndex]
// }) // })
//清除焦点 有时候 setdata 会触发获取焦点
this.setData({
[`choosedStationList[${itemIndex}].focus`]:false
})
} }
} }
//清除焦点 有时候 setdata 会触发获取焦点
this.setData({
[`choosedStationList[${itemIndex}].focus`]:false
})
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载