Merge branch 'feature/chose-panel' into 'release/5.5'
秒杀商品无可修改数量 See merge request !362
Showing
1 changed file
with
2 additions
and
1 deletions
@@ -155,11 +155,12 @@ setTimeout(() => { | @@ -155,11 +155,12 @@ setTimeout(() => { | ||
155 | 155 | ||
156 | $('#addtoCart').on('touchstart', function() { | 156 | $('#addtoCart').on('touchstart', function() { |
157 | let productCode = $('#limitProductCode').val(); | 157 | let productCode = $('#limitProductCode').val(); |
158 | + let seckill = $('.seckill-time').length; | ||
158 | 159 | ||
159 | $('.cart-bar').hide(); | 160 | $('.cart-bar').hide(); |
160 | chosePanel.show({ | 161 | chosePanel.show({ |
161 | data: data, | 162 | data: data, |
162 | - disableNum: productCode | 163 | + disableNum: productCode || seckill |
163 | }).then(result => { | 164 | }).then(result => { |
164 | $('.cart-bar').show(); | 165 | $('.cart-bar').show(); |
165 | if (result && result.sku) { | 166 | if (result && result.sku) { |
-
Please register or login to post a comment