实现结算数字自动变化及全选自动勾选的
This commit is contained in:
parent
99dbd2dc19
commit
3be3331fee
@ -95,7 +95,7 @@ mui.plusReady(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isChecks() {
|
function isChecks() {
|
||||||
|
|
||||||
$('.check1').each(function() {
|
$('.check1').each(function() {
|
||||||
var isChecks = 1;
|
var isChecks = 1;
|
||||||
$(this).parent().siblings().children().find('.checks').each(function() {
|
$(this).parent().siblings().children().find('.checks').each(function() {
|
||||||
@ -109,7 +109,12 @@ mui.plusReady(function() {
|
|||||||
$(this).children().removeClass('check_0').addClass('check_1');
|
$(this).children().removeClass('check_0').addClass('check_1');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
if($('.check2 .check_0').length > 0){
|
||||||
|
$(".js .checks").removeClass('check_1').addClass('check_0');
|
||||||
|
}else{
|
||||||
|
$(".js .checks").removeClass('check_0').addClass('check_1');
|
||||||
|
}
|
||||||
|
$(".btn_tj").text("结算("+$(".check2 .check_1").length+")")
|
||||||
}
|
}
|
||||||
mui.ajax(qlgUrl('app/carts/index'), {
|
mui.ajax(qlgUrl('app/carts/index'), {
|
||||||
// mui.ajax(hyhUrl('app/carts/index'), {
|
// mui.ajax(hyhUrl('app/carts/index'), {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user