6
0
Fork 0

会员积分抵扣优化

develop
Jing Li 2023-10-22 12:46:09 +08:00
parent 5e34afaca8
commit c7cb4b68ec
2 changed files with 9 additions and 3 deletions

View File

@ -74,7 +74,7 @@
<view class="text-bgSubtitle">-{{ orderInfo.bargain_amount }}</view> <view class="text-bgSubtitle">-{{ orderInfo.bargain_amount }}</view>
</view> </view>
<view v-if="orderInfo.total_amount > 0" class="flex items-center justify-between py-base text-lg border-t border-txBorder font-bold"> <view v-if="orderInfo.total_amount > 0" class="flex items-center justify-between py-base text-lg border-t border-txBorder font-bold">
<view>会员积分抵扣<block v-if="hasRemainingPoints">({{ orderInfo.remaining_points }})</block></view> <view>会员积分抵扣<block v-if="hasRemainingPoints">{{ orderInfo.remaining_points }}</block></view>
<view v-if="hasRemainingPoints" class="flex items-center" @tap="openPointDiscountDrawer"> <view v-if="hasRemainingPoints" class="flex items-center" @tap="openPointDiscountDrawer">
<view v-if="pointDiscount.amount > 0" class="text-bgSubtitle">-{{ pointDiscount.amount }}</view> <view v-if="pointDiscount.amount > 0" class="text-bgSubtitle">-{{ pointDiscount.amount }}</view>
<view v-else></view> <view v-else></view>
@ -323,6 +323,9 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.border-t {
border-top: 1rpx solid #E5E5E5;
}
.listChid:last-child { .listChid:last-child {
border: 0; border: 0;
} }

View File

@ -117,8 +117,8 @@
<view>砍价优惠</view> <view>砍价优惠</view>
<view class="text-bgSubtitle">-{{ orderInfo.bargain_amount }}</view> <view class="text-bgSubtitle">-{{ orderInfo.bargain_amount }}</view>
</view> </view>
<view v-if="orderInfo.total_amount > 0" class="flex items-center justify-between py-base text-lg border-t border-txBorder font-bold"> <view v-if="orderInfo.total_amount > 0" class="flex items-center justify-between py-base text-lg border-t border-txBorder font-medium">
<view>会员积分抵扣<block v-if="hasRemainingPoints">({{ orderInfo.remaining_points }})</block></view> <view>会员积分抵扣<block v-if="hasRemainingPoints">{{ orderInfo.remaining_points }}</block></view>
<view v-if="hasRemainingPoints" class="flex items-center" @tap="openPointDiscountDrawer"> <view v-if="hasRemainingPoints" class="flex items-center" @tap="openPointDiscountDrawer">
<view v-if="pointDiscount.amount > 0" class="text-bgSubtitle">-{{ pointDiscount.amount }}</view> <view v-if="pointDiscount.amount > 0" class="text-bgSubtitle">-{{ pointDiscount.amount }}</view>
<view v-else></view> <view v-else></view>
@ -544,6 +544,9 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.border-t {
border-top: 1rpx solid #E5E5E5;
}
.listChid:last-child { .listChid:last-child {
border: 0; border: 0;
} }