DaMowang 3 gadi atpakaļ
vecāks
revīzija
7b804ead57
2 mainītis faili ar 14 papildinājumiem un 4 dzēšanām
  1. 13 2
      src/pages/product/p_details.vue
  2. 1 2
      src/pages/product/productRetail.vue

+ 13 - 2
src/pages/product/p_details.vue

@@ -10,7 +10,10 @@
                 <span v-if="Number(detail.cha_bao) != 0 && Number(detail.cost_price) != 0">+</span>
                 <span v-if="Number(detail.cha_bao) != 0">{{ detail.cha_bao }}茶宝</span>
             </view>
-            <view v-else class="price" :class="type == 2 ? 'samll' : ''">¥{{ type == 2 ? detail.trade_price : detail.cost_price }}</view>
+            <view v-else class="price" :class="type == 2 ? 'samll' : ''">
+                <text>¥{{ type == 2 ? detail.trade_price : detail.cost_price }}</text>
+                <text v-if="type == 6" class="p_favour">{{detail.original_price}}</text>
+            </view>
             <view class="price_span flex_r flex_ac flex_je">
                 <view class="triangle"></view>
                 <view class="span_conten flex_r flex_ac flex_jc">{{ tidyTpye(goodsDa.type) }}</view>
@@ -341,7 +344,7 @@ page {
 }
 
 .price text {
-    font-size: 24rpx;
+    // font-size: 24rpx;
     color: #fff;
     font-family: "SourceHanSansCN-Medium";
 }
@@ -358,6 +361,14 @@ page {
     color: #fff;
     font-family: "SourceHanSansCN-Medium";
     margin-left: 20rpx;
+    .p_favour{
+        font-size: 28rpx;
+        margin-left: 20rpx;
+        text-decoration: line-through;
+        &:before{
+            content:"¥";
+        }
+    }
 }
 
 .span_conten {

+ 1 - 2
src/pages/product/productRetail.vue

@@ -197,8 +197,7 @@ page {
         margin-right: 10rpx;
         &:before{
             content:"¥";
-            font-size: 20rpx;
-            text-decoration: none;
+            // font-size: 20rpx;
         }
     }