Przeglądaj źródła

优化:显示会员折扣价(订单结算页)

Yahoo 4 lat temu
rodzic
commit
3d83042ffe
2 zmienionych plików z 12 dodań i 1 usunięć
  1. 5 1
      pages/checkout/index.vue
  2. 7 0
      pages/checkout/style.scss

+ 5 - 1
pages/checkout/index.vue

@@ -51,7 +51,11 @@
             <!-- 商品数量和单价 -->
             <view class="flow-list-cont dis-flex flex-x-between flex-y-center">
               <text class="small">×{{ item.total_num }}</text>
-              <text class="flow-cont">¥{{ item.goods_price }}</text>
+              <text class="flow-cont" :class="[item.is_user_grade ? 'price-delete' : '']">¥{{ item.goods_price }}</text>
+            </view>
+            <!-- 会员折扣价 -->
+            <view v-if="item.is_user_grade" class="grade-price">
+              <text>会员折扣价:¥{{ item.grade_goods_price }}</text>
             </view>
           </view>
         </view>

+ 7 - 0
pages/checkout/style.scss

@@ -67,6 +67,13 @@
     }
   }
 
+  .grade-price {
+    padding-top: 8rpx;
+    font-size: 28rpx;
+    color: #ff495e;
+    text-align: right;
+  }
+
   .goods-name{
     font-size: 28rpx;
     color: #333;