From 0ab8c82c603f14cf69396b54b0471112b9de947b Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期三, 11 九月 2024 10:32:14 +0800
Subject: [PATCH] update 会员优惠券等
---
sub_pages/customer/trade/list.vue | 56 ++++++++++++++++++++++++++++++++++----------------------
1 files changed, 34 insertions(+), 22 deletions(-)
diff --git a/sub_pages/customer/trade/list.vue b/sub_pages/customer/trade/list.vue
index 77af631..0909deb 100644
--- a/sub_pages/customer/trade/list.vue
+++ b/sub_pages/customer/trade/list.vue
@@ -73,9 +73,21 @@
<view @click.stop="toDetail(item)">
<view class="title">
{{item.name||'-'}}
- <view class="price">
- ¥{{item.price||0}}元/扎
- </view>
+
+ <!-- #ifdef PUB_CUSTOMER_DEV -->
+ <view class="price component-price-new">
+ <span class="tip">会员价</span>¥<span class="p">{{item.priceMember||item.price}}</span>/扎
+ <view class="component-price-old">
+ ¥{{item.price}}/扎
+ </view>
+ </view>
+ <!-- #endif -->
+ <!-- #ifndef PUB_CUSTOMER_DEV -->
+ <view class="price">
+ ¥{{item.price||0}}元/扎
+ </view>
+ <!-- #endif -->
+
</view>
<view class="tags" v-if="item.tags">
<!-- <view class="tag red">限时抢购</view>
@@ -91,7 +103,7 @@
</view>
<view class="other-info flex">
<view class="m-r-15">
- 已售:{{item.sales||0}}
+ 已售:{{ ((item.sales||0) +(item.realSales||0)) ||0}}
</view>
<view class="m-r-15">
剩余:{{item.stock||0}}
@@ -525,24 +537,24 @@
margin-top: 12rpx;
display: flex;
- .tag {
- min-width: 80rpx;
- padding-left: 20rpx;
- padding-right: 20rpx;
- line-height: 36rpx;
- background: #FEE6E6;
- border-radius: 21rpx;
- font-size: 24rpx;
- color: #CD1212;
- margin-right: 12rpx;
- text-align: center;
- }
-
- .tag.green {
- color: rgba(110, 159, 102, 1);
- background: rgba(202, 229, 214, 1);
- border-radius: 21rpx;
- // opacity: 0.57;
+ .tag {
+ // min-width: 60rpx;
+ padding-left: 10rpx;
+ padding-right: 10rpx;
+ line-height: 30rpx;
+ background: #FEE6E6;
+ border-radius: 10rpx;
+ font-size: 18rpx;
+ color: #CD1212;
+ margin-right: 6rpx;
+ text-align: center;
+ }
+
+ .tag.green {
+ color: rgba(110, 159, 102, 1);
+ background: rgba(202, 229, 214, 1);
+ border-radius: 10rpx;
+ // opacity: 0.57;
}
}
--
Gitblit v1.9.3