Skip to content

新商盟订烟

🗓️ 更新于:09:11
标签:

新商盟订烟
2021年12月15日
9:07

显示所有可订量
total = $(‘.buy_main_grid_row’);
for (let i = 1; i <= total.length; i**++**) {
let btnId = total[i];
console.log($(btnId).find(‘.buy_main_grid_add’).click());
console.log($(btnId).find(‘.buy_main_grid_add’).mouseout());
console.log($(btnId).find(‘.buy_main_grid_del’).click());
console.log($(btnId).find(‘.buy_main_grid_del’).mouseout());
}

$(“.buy_main_grid_header_col_9”).html(
function(){

if($(this).html()!=0){$(this).parent().css(“background-color”,“#FAB4C8”)}

}

)

var zo=0;

$(“.buy_main_grid_header_col_9”).html(

function(){

if($(this).html()!=“最大可订量”){zo+=parseInt($(this).html())}

}

)

Alert(zo);

to=$(“.buy_main_grid_header_col_9”);
zo=0;
For(i=1;i<=to.length;i++){
if(to[i].html()!=0){zo+=to[i].html()}
}
Alert(zo);

有可订量的烟显示红色
total = $(‘.buy_main_grid_row’);
for (let i = 1; i <= total.length; i**++**) {
let btnId = total[i];
$(btnId).find(‘.buy_main_grid_header_col_7’).html();
$(btnId).find(‘buy_main_grid_header_col_7’).mouseout();
console.log($(btnId).find(‘.buy_main_grid_header_col_9’).();
}