Selaa lähdekoodia

Update goodsList.vue

lex 2 vuotta sitten
vanhempi
commit
d2ab7a2a83
1 muutettua tiedostoa jossa 11 lisäystä ja 7 poistoa
  1. 11 7
      src/views/shopMall/model/goodsList.vue

+ 11 - 7
src/views/shopMall/model/goodsList.vue

@@ -45,7 +45,7 @@
       >
         <van-cell-group>
           <van-cell
-            style="align-items: flex-start;"
+            style="align-items: flex-start"
             v-for="(item, index) in dataList"
             :key="index"
             class="input-cell"
@@ -66,25 +66,29 @@
             </template>
             <template slot="title">
               <div
-                style="display: flex;align-items: center;justify-content: space-between;"
+                style="
+                  display: flex;
+                  align-items: center;
+                  justify-content: space-between;
+                "
               >
                 {{ item.name }}
               </div>
-              <van-tag plain color="#C2A076" style="margin: .04rem 0;"
+              <van-tag plain color="#C2A076" style="margin: 0.04rem 0"
                 >品牌:{{ item.brandName }}</van-tag
               >
-              <p style="padding: .02rem 0;font-size: .14rem; color: #808080;">
+              <p style="padding: 0.02rem 0; font-size: 0.14rem; color: #808080">
                 型号:{{ item.productSn }}
               </p>
               <div class="price-section">
                 <div>
                   <span class="money"
-                    ><span style="font-weight: 400; font-size: .14rem;"
+                    ><span style="font-weight: 400; font-size: 0.14rem"
                       >现价:</span
                     ><i>¥</i>{{ item.price | moneyFormat }}</span
                   ><del>原价:¥{{ item.originalPrice | moneyFormat }}</del>
                 </div>
-                <div style="font-size: .14rem; color: #808080">×1</div>
+                <div style="font-size: 0.14rem; color: #808080">×1</div>
               </div>
             </template>
           </van-cell>
@@ -113,7 +117,7 @@
 </template>
 
 <script>
-import MHeader from "@/components/MHeader";
+import MHeader from "@/components/header";
 import MEmpty from "@/components/MEmpty";
 import Search from "@/components/Search";
 import addGoodsCart from "./addGoodsCart";