| | |
| | | return; |
| | | } |
| | | |
| | | var couponCount = $('#couponCount').val(); |
| | | var couponType = $('#couponType').val(); |
| | | if(couponType == 2 && (couponCount == null || couponCount == '')){ |
| | | if(couponType == 2 && ($("input[name=couponCount2]").val() == null || $("input[name=couponCount2]").val() == '')){ |
| | | Feng.info("请填写优惠券限制数量!") |
| | | return; |
| | | } |
| | | |
| | | // if(couponType == 2 && $("input[name=couponCount2]").val() < 1){ |
| | | // Feng.info("新人优惠券限制数量必须大于0!") |
| | | // return; |
| | | // } |
| | | |
| | | //提交信息 |
| | | var ajax = new $ax(Feng.ctxPath + "/tCoupon/add", function(data){ |
| | | if(500 == data.code){ |