Quellcode durchsuchen

产品详情页最小包装数量根据和可拆包状态判断

yangc vor 8 Jahren
Ursprung
Commit
bc193df78e
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      components/store/CommodityInfo.vue

+ 3 - 3
components/store/CommodityInfo.vue

@@ -214,7 +214,7 @@ export default {
       }
     },
     changeNum: function (newNum) {
-      let pack = this.commodity.minPackQty
+      let pack = this.commodity.perQty
       let buy = this.commodity.minBuyQty
       let reserve = this.commodity.reserve
       if (newNum < buy) {
@@ -258,12 +258,12 @@ export default {
       }
     },
     subNum () {
-      let newNum = this.fragment.num - this.commodity.minPackQty
+      let newNum = this.fragment.num - this.commodity.perQty
       this.changeNum(newNum)
       getFragment(this.commodity, this.fragment)
     },
     addNum () {
-      let newNum = this.fragment.num + this.commodity.minPackQty
+      let newNum = this.fragment.num + this.commodity.perQty
       this.changeNum(newNum)
       getFragment(this.commodity, this.fragment)
     },