Authored by liuyue

限购码限制

... ... @@ -81,19 +81,21 @@ e.init();
var submit = function(callback) {
e.submit($("#basicForm").attr("action"), function(option) {
option.success = function(res) {
res = res.data;
if (res.code == "200") {
e.$tip('提交成功', function() {
location.href = "/market/limitcode/index";
}, 'growl-success');
} else {
e.$tip(res.message);
}
return false;
},
option.error = function(res) {
e.$tip("提交失败");
}
res = res.data;
if (res.code == "200") {
e.$tip('提交成功', function() {
location.href = "/market/limitcode/index";
}, 'growl-success');
} else {
e.$tip(res.message);
};
$("#save_brand").removeClass('disabled');
return false;
};
option.error = function(res) {
$("#save_brand").removeClass('disabled');
e.$tip("提交失败");
}
console.log(option.data);
callback && callback(option.data);
});
... ... @@ -101,6 +103,7 @@ var submit = function(callback) {
$("#save_brand").click(function() {
$(this).addClass('disabled');
submit(function(data) {
// 限购码状态0:待审核 1:审核通过 2:驳回 3:过期 4:作废
if (+data.status == 1) {
... ...