作者 anyv
1 个管道 的构建 通过 耗费 0 秒

优惠券

... ... @@ -145,7 +145,17 @@
money = $('input[name=tmoney]').val('');
$.post("{:url('Coupons/couptype')}", {}, function(data) {
shuju = JSON.parse(data);
console.log(shuju);
for (var i = 0; i < shuju.length; i++) {
if (shuju[i] == 1) {
$('#zhuce').remove();
}else if (shuju[i] == 2) {
$('#shengri').remove();
}else if (shuju[i] == 3) {
$('#fenxiang').remove();
}else if (shuju[i] == 4) {
$('#dati').remove();
}
}
});
}
... ...