Authored by liuyue

限购码提交多次bug

... ... @@ -55,7 +55,6 @@ e.on("validate", function() {
if (+num > 100000 || +num < 1) {
return "数量(范围:1-100000)";
}
return true;
});
e.on("validate", function() {
... ... @@ -63,7 +62,6 @@ e.on("validate", function() {
if (skn.length > 8) {
return "skn长度不能超过8位";
}
return true;
});
... ... @@ -79,7 +77,9 @@ e.on("validate", function() {
e.init();
var submit = function(callback) {
e.submit($("#basicForm").attr("action"), function(option) {
$("#save_brand").addClass('disabled');
option.success = function(res) {
res = res.data;
if (res.code == "200") {
... ... @@ -88,8 +88,9 @@ var submit = function(callback) {
}, 'growl-success');
} else {
e.$tip(res.message);
$("#save_brand").removeClass('disabled');
};
$("#save_brand").removeClass('disabled');
return false;
};
option.error = function(res) {
... ... @@ -103,7 +104,7 @@ var submit = function(callback) {
$("#save_brand").click(function() {
$(this).addClass('disabled');
submit(function(data) {
// 限购码状态0:待审核 1:审核通过 2:驳回 3:过期 4:作废
if (+data.status == 1) {
... ...