Showing
8 changed files
with
22 additions
and
11 deletions
@@ -4,8 +4,8 @@ | @@ -4,8 +4,8 @@ | ||
4 | <view class="item-detail"> | 4 | <view class="item-detail"> |
5 | <text class="item-title">{{item.productName}}</text> | 5 | <text class="item-title">{{item.productName}}</text> |
6 | <view class="item-price"> | 6 | <view class="item-price"> |
7 | - <text class="price1" style="color:{{item.showOriginPrice ? '#d0021b' : '#444444'}}">¥{{helper.round(item.salePriceStr)}}</text> | ||
8 | - <text class="price2" wx:if="{{item.showOriginPrice}}">¥{{helper.round(item.originPriceStr)}}</text> | 7 | + <text class="price1">¥{{helper.round(item.salesPrice)}}</text> |
8 | + <!--<text class="price2">¥{{helper.round(item.marketPrice)}}</text>--> | ||
9 | </view> | 9 | </view> |
10 | </view> | 10 | </view> |
11 | </view> | 11 | </view> |
@@ -17,11 +17,15 @@ | @@ -17,11 +17,15 @@ | ||
17 | color: #444; | 17 | color: #444; |
18 | width: 322rpx; | 18 | width: 322rpx; |
19 | max-width: 322rpx; | 19 | max-width: 322rpx; |
20 | - letter-spacing: 0.28px; | 20 | + letter-spacing: 0.28rpx; |
21 | +} | ||
22 | + | ||
23 | +.price1.before-market-price { | ||
24 | + color: #d0021b!important; | ||
21 | } | 25 | } |
22 | 26 | ||
23 | .product-item .item-price .price2 { | 27 | .product-item .item-price .price2 { |
24 | - color: #444; | 28 | + color: #b0b0b0; |
25 | margin-left: 10rpx; | 29 | margin-left: 10rpx; |
26 | text-decoration: line-through; | 30 | text-decoration: line-through; |
27 | } | 31 | } |
@@ -71,7 +71,8 @@ Page({ | @@ -71,7 +71,8 @@ Page({ | ||
71 | if (res.code === 200) { | 71 | if (res.code === 200) { |
72 | const keyAdapter = { | 72 | const keyAdapter = { |
73 | skn: 'product_skn', | 73 | skn: 'product_skn', |
74 | - salePriceStr: 'sales_price', | 74 | + salesPrice: 'sales_price', |
75 | + marketPrice: 'market_price', | ||
75 | productName: 'product_name', | 76 | productName: 'product_name', |
76 | defaultImages: 'default_images' | 77 | defaultImages: 'default_images' |
77 | }; | 78 | }; |
@@ -115,7 +115,8 @@ Page({ | @@ -115,7 +115,8 @@ Page({ | ||
115 | if (res.code === 200) { | 115 | if (res.code === 200) { |
116 | const keyAdapter = { | 116 | const keyAdapter = { |
117 | skn: 'product_skn', | 117 | skn: 'product_skn', |
118 | - salePriceStr: 'sales_price', | 118 | + salesPrice: 'sales_price', |
119 | + marketPrice: 'market_price', | ||
119 | productName: 'product_name', | 120 | productName: 'product_name', |
120 | defaultImages: 'default_images' | 121 | defaultImages: 'default_images' |
121 | }; | 122 | }; |
@@ -171,7 +171,8 @@ Page({ | @@ -171,7 +171,8 @@ Page({ | ||
171 | if (res.code === 200) { | 171 | if (res.code === 200) { |
172 | const keyAdapter = { | 172 | const keyAdapter = { |
173 | skn: 'product_skn', | 173 | skn: 'product_skn', |
174 | - salePriceStr: 'sales_price', | 174 | + salesPrice: 'sales_price', |
175 | + marketPrice: 'market_price', | ||
175 | productName: 'product_name', | 176 | productName: 'product_name', |
176 | defaultImages: 'default_images' | 177 | defaultImages: 'default_images' |
177 | }; | 178 | }; |
@@ -199,7 +200,8 @@ Page({ | @@ -199,7 +200,8 @@ Page({ | ||
199 | if (res.code === 200) { | 200 | if (res.code === 200) { |
200 | const keyAdapter = { | 201 | const keyAdapter = { |
201 | skn: 'product_skn', | 202 | skn: 'product_skn', |
202 | - salePriceStr: 'sales_price', | 203 | + salesPrice: 'sales_price', |
204 | + marketPrice: 'market_price', | ||
203 | productName: 'product_name', | 205 | productName: 'product_name', |
204 | defaultImages: 'default_images' | 206 | defaultImages: 'default_images' |
205 | }; | 207 | }; |
@@ -68,7 +68,8 @@ Page({ | @@ -68,7 +68,8 @@ Page({ | ||
68 | if (res.code === 200) { | 68 | if (res.code === 200) { |
69 | const keyAdapter = { | 69 | const keyAdapter = { |
70 | skn: 'product_skn', | 70 | skn: 'product_skn', |
71 | - salePriceStr: 'sales_price', | 71 | + salesPrice: 'sales_price', |
72 | + marketPrice: 'market_price', | ||
72 | productName: 'product_name', | 73 | productName: 'product_name', |
73 | defaultImages: 'default_images' | 74 | defaultImages: 'default_images' |
74 | }; | 75 | }; |
@@ -98,7 +98,8 @@ Page({ | @@ -98,7 +98,8 @@ Page({ | ||
98 | if (res.code === 200) { | 98 | if (res.code === 200) { |
99 | const keyAdapter = { | 99 | const keyAdapter = { |
100 | skn: 'product_skn', | 100 | skn: 'product_skn', |
101 | - salePriceStr: 'sales_price', | 101 | + salesPrice: 'sales_price', |
102 | + marketPrice: 'market_price', | ||
102 | productName: 'product_name', | 103 | productName: 'product_name', |
103 | defaultImages: 'default_images' | 104 | defaultImages: 'default_images' |
104 | }; | 105 | }; |
@@ -95,7 +95,8 @@ Page({ | @@ -95,7 +95,8 @@ Page({ | ||
95 | if (res.code === 200) { | 95 | if (res.code === 200) { |
96 | const keyAdapter = { | 96 | const keyAdapter = { |
97 | skn: 'product_skn', | 97 | skn: 'product_skn', |
98 | - salePriceStr: 'sales_price', | 98 | + salesPrice: 'sales_price', |
99 | + marketPrice: 'market_price', | ||
99 | productName: 'product_name', | 100 | productName: 'product_name', |
100 | defaultImages: 'default_images' | 101 | defaultImages: 'default_images' |
101 | }; | 102 | }; |
-
Please register or login to post a comment