Browse Source

修复产品详情页输入数量后递增异常bug

yangc 8 years ago
parent
commit
b3e2c017c8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      components/store/CommodityInfo.vue

+ 1 - 0
components/store/CommodityInfo.vue

@@ -244,6 +244,7 @@ export default {
       let pack = this.commodity.perQty || this.commodity.minPackQty
       let buy = this.commodity.minBuyQty
       let reserve = this.commodity.reserve
+      newNum = parseInt(newNum)
       if (newNum < buy) {
         this.$message.error('该商品最少购买' + buy + '件')
         this.fragment.num = buy