Browse Source

Merge remote-tracking branch 'origin/feature/productdetail-0907' into release-20170915

suntg 8 years ago
parent
commit
5b4bda23ec
1 changed files with 3 additions and 3 deletions
  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)
     },