瀏覽代碼

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

yangc 9 年之前
父節點
當前提交
b3e2c017c8
共有 1 個文件被更改,包括 1 次插入 和 0 次删除
  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 pack = this.commodity.perQty || this.commodity.minPackQty
       let buy = this.commodity.minBuyQty
       let buy = this.commodity.minBuyQty
       let reserve = this.commodity.reserve
       let reserve = this.commodity.reserve
+      newNum = parseInt(newNum)
       if (newNum < buy) {
       if (newNum < buy) {
         this.$message.error('该商品最少购买' + buy + '件')
         this.$message.error('该商品最少购买' + buy + '件')
         this.fragment.num = buy
         this.fragment.num = buy