shish 6 лет назад
Родитель
Сommit
76e8727bb8
1 измененных файлов с 5 добавлено и 11 удалено
  1. 5 11
      mall/src/pages/order/buy.vue

+ 5 - 11
mall/src/pages/order/buy.vue

@@ -78,13 +78,13 @@
     </form>
     <!-- 弹窗 -->
     <alert-module :show="showAlert" @click="hideAlert" @cancel="hideAlert">
-      <div class="alt-content" v-if="!$util.isEmpty(this.orderShop)">
-        <div>{{ `${this.orderShop.freight.first}公里内免运费` }}</div>
+      <div class="alt-content" v-if="!$util.isEmpty(orderShop)">
+        <div>{{ `${orderShop.freight.first}公里内免运费` }}</div>
         <div>
           <span>超过</span>
-          <span class="app-price">{{ `${this.orderShop.freight.first}公里` }}</span>
+          <span class="app-price">{{ `${orderShop.freight.first}公里` }}</span>
           <span>每增加1公里</span>
-          <span class="app-price">{{ `+${this.orderShop.freight.add}元` }}</span>
+          <span class="app-price">{{ `+${orderShop.freight.add}元` }}</span>
         </div>
       </div>
     </alert-module>
@@ -148,13 +148,7 @@ export default {
       discountArr: false,
       // 运费
       freightPrice: 0,
-	  goodsNum: 1,
-	  orderShop:{
-		  freight:{
-			  add:2,
-			  first:5
-		  }
-	  }
+	  goodsNum: 1
     };
   },
   mounted() {},