Authored by zhangxiaoru

结算页

@@ -13,6 +13,4 @@ @@ -13,6 +13,4 @@
13 </p> 13 </p>
14 <span class="chose">选择</span> 14 <span class="chose">选择</span>
15 </div> 15 </div>
16 -  
17 -  
18 </div> 16 </div>
@@ -28,6 +28,12 @@ @@ -28,6 +28,12 @@
28 <p class="limit">不支持7天无理由退换货</p> 28 <p class="limit">不支持7天无理由退换货</p>
29 {{/if}} 29 {{/if}}
30 <p class="row price-wrap"> 30 <p class="row price-wrap">
  31 + {{#if isVipPrice}}
  32 + <span class="fill-text">VIP</span>
  33 + {{/if}}
  34 + {{#if isStudebt}}
  35 + <span class="fill-text"></span>
  36 + {{/if}}
31 <span class="price"> 37 <span class="price">
32 ¥{{round price 2}} 38 ¥{{round price 2}}
33 </span> 39 </span>
@@ -429,7 +429,7 @@ @@ -429,7 +429,7 @@
429 429
430 .name { 430 .name {
431 font-size: 32px; 431 font-size: 32px;
432 - max-width: 70%; 432 + max-width: 65%;
433 overflow: hidden; 433 overflow: hidden;
434 text-overflow: ellipsis; 434 text-overflow: ellipsis;
435 display: -webkit-box; 435 display: -webkit-box;
@@ -458,6 +458,16 @@ @@ -458,6 +458,16 @@
458 text-align: right; 458 text-align: right;
459 } 459 }
460 460
  461 + .fill-text {
  462 + padding: 0.05rem 0.3rem;
  463 + color: #fff;
  464 + font-size: 0.625rem;
  465 + line-height: 0.75rem;
  466 + border-radius: 0.75rem;
  467 + display: inline-block;
  468 + background-color: #e01;
  469 + }
  470 +
461 .price { 471 .price {
462 color: #e01; 472 color: #e01;
463 } 473 }
@@ -96,6 +96,7 @@ const formatCartGoods = (goodData, isAdvanceCart, isValid, inValidLow) => { @@ -96,6 +96,7 @@ const formatCartGoods = (goodData, isAdvanceCart, isValid, inValidLow) => {
96 if (typeof inValidLow === 'undefined') { 96 if (typeof inValidLow === 'undefined') {
97 inValidLow = false; 97 inValidLow = false;
98 } 98 }
  99 +
99 let result = { 100 let result = {
100 id: goodData.product_sku, 101 id: goodData.product_sku,
101 skn: goodData.product_skn, 102 skn: goodData.product_skn,
@@ -171,8 +171,10 @@ function tranformPayment(data, orderInfo, cartType, skuList, orderComputeData) { @@ -171,8 +171,10 @@ function tranformPayment(data, orderInfo, cartType, skuList, orderComputeData) {
171 obj.color = good.color_name; 171 obj.color = good.color_name;
172 obj.size = good.size_name; 172 obj.size = good.size_name;
173 obj.count = good.buy_number; 173 obj.count = good.buy_number;
174 - obj.price = good.last_price; 174 + obj.price = good.sales_price;
175 obj.isLimitSkn = good.is_limit_skn === 'Y'; 175 obj.isLimitSkn = good.is_limit_skn === 'Y';
  176 + obj.isVipPrice = good.sales_price !== good.last_vip_price && good.discount_tag === 'V';
  177 + obj.isStudebt = good.sales_price !== good.last_vip_price && good.discount_tag === 'S';
176 178
177 if (good.good_type === 'gift' && good.is_advance === 'Y') { 179 if (good.good_type === 'gift' && good.is_advance === 'Y') {
178 obj.gift = true; 180 obj.gift = true;
@@ -182,6 +184,10 @@ function tranformPayment(data, orderInfo, cartType, skuList, orderComputeData) { @@ -182,6 +184,10 @@ function tranformPayment(data, orderInfo, cartType, skuList, orderComputeData) {
182 obj.price = good.sale_price; 184 obj.price = good.sale_price;
183 } 185 }
184 186
  187 + if (good.goods_type === 'gift' || good.goods_type === 'price_gift') {
  188 + obj.price = good.last_price;
  189 + }
  190 +
185 // Total Price 191 // Total Price
186 goodsPrice += obj.count * obj.price; 192 goodsPrice += obj.count * obj.price;
187 193