chose-panel-goods-nums
Showing
1 changed file
with
2 additions
and
1 deletions
@@ -112,7 +112,8 @@ class ChosePanel { | @@ -112,7 +112,8 @@ class ChosePanel { | ||
112 | return '加入购物车'; | 112 | return '加入购物车'; |
113 | } | 113 | } |
114 | _defaultBuyNum() { | 114 | _defaultBuyNum() { |
115 | - return this.modes.discount && this.data.discountBuy.num || 1; | 115 | + return (this.modes.discount && this.data.discountBuy.num) || |
116 | + (this.data.cartInfo && this.data.cartInfo.num) || 1; | ||
116 | } | 117 | } |
117 | 118 | ||
118 | /** | 119 | /** |
-
Please register or login to post a comment