Authored by uedxwg

'修复购物车数据不能呢点击'

@@ -316,6 +316,7 @@ $yohoPage.on('touchstart', '.btn-minus', function() { @@ -316,6 +316,7 @@ $yohoPage.on('touchstart', '.btn-minus', function() {
316 return; 316 return;
317 } 317 }
318 318
  319 +
319 //TODO status change 320 //TODO status change
320 if ($('#chose-btn-sure').html() === '已售罄') { 321 if ($('#chose-btn-sure').html() === '已售罄') {
321 return; 322 return;
@@ -327,7 +328,10 @@ $yohoPage.on('touchstart', '.btn-minus', function() { @@ -327,7 +328,10 @@ $yohoPage.on('touchstart', '.btn-minus', function() {
327 tip.show('您选择的数量超过了最大库存量~'); 328 tip.show('您选择的数量超过了最大库存量~');
328 return; 329 return;
329 } 330 }
330 - 331 + if (num < 0) {
  332 + tip.show('您选择的数量小于一件~');
  333 + return;
  334 + }
331 $chosed = $('.block-list>ul>li.chosed'); 335 $chosed = $('.block-list>ul>li.chosed');
332 336
333 if (2 === $chosed.length && 0 === $chosed.closest('.zero-stock').length) { 337 if (2 === $chosed.length && 0 === $chosed.closest('.zero-stock').length) {
@@ -118,8 +118,7 @@ @@ -118,8 +118,7 @@
118 118
119 {{#cartInfo}} 119 {{#cartInfo}}
120 <div class="cart-bar"> 120 <div class="cart-bar">
121 - <span class="num-tag hide"></span>  
122 - <a href="{{cartUrl}}" class="num-incart iconfont">&#xe62c;</a> 121 + <a href="{{cartUrl}}" class="num-incart iconfont"><span class="num-tag hide"></span>&#xe62c;</a>
123 122
124 {{#if addToCartUrl}} 123 {{#if addToCartUrl}}
125 <!-- <a id="addtoCart" href="{{addToCartUrl}}" class="addto-cart">加入购物车</a> --> 124 <!-- <a id="addtoCart" href="{{addToCartUrl}}" class="addto-cart">加入购物车</a> -->