Commit 81898104 by 肖康

购物车全选逻辑 修改

parent 5105cfd3
...@@ -54,6 +54,11 @@ define('car', ['tool', 'liexin_pop', 'artTemplate'], function (require, exports, ...@@ -54,6 +54,11 @@ define('car', ['tool', 'liexin_pop', 'artTemplate'], function (require, exports,
} }
}else{ }else{
$(this).toggleClass("act") $(this).toggleClass("act")
if($(".tbody .check-group.act").length==$(".tbody .tr").length){
$(".selectall").addClass("act")
}else{
$(".selectall").removeClass("act")
}
} }
car.priceInit(); car.priceInit();
}) })
......
...@@ -125,7 +125,11 @@ ...@@ -125,7 +125,11 @@
<div class="td w93"> <div class="td w93">
<input type="text" class="valuep" goods_id="{{value.goods_id}}" mult="{{value.mult}}" minNum="{{value.moq}}" maxNum="{{value.max_buy_stock}}" value="{{value.buy_number}}" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}"> <input type="text" class="valuep" goods_id="{{value.goods_id}}" mult="{{value.mult}}" minNum="{{value.moq}}" maxNum="{{value.max_buy_stock}}" value="{{value.buy_number}}" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}">
</div> </div>
<div class="td w110">{{value.stock}}</div> <div class="td w110">
{{value.stock}}<br/>
Min:{{value.moq}}<br/>
Mult:{{value.mult}}
</div>
<div class="td w92">$<span class="rowdj">{{value.buy_price}}</span></div> <div class="td w92">$<span class="rowdj">{{value.buy_price}}</span></div>
<div class="td">$<span class="rowxj">{{value.ext_price}}</span></div> <div class="td">$<span class="rowxj">{{value.ext_price}}</span></div>
</div> </div>
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<div class="contents">{{goods_name}}</div> <div class="contents">{{goods_name}}</div>
</div> </div>
<div class="group-info row"> <div class="group-info row">
<div class="label">Lead Time</div> <div class="label">Delivery date</div>
<div class="contents">{{hk_delivery_time}}</div> <div class="contents">{{hk_delivery_time}}</div>
</div> </div>
{{if pdf}} {{if pdf}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment