Commit a002fe43 by 肖康

询价信息修改

parent 5f689c5a
...@@ -129,18 +129,17 @@ define('mallUi', ['tool', 'liexin_pop'], function (require, exports, module) { ...@@ -129,18 +129,17 @@ define('mallUi', ['tool', 'liexin_pop'], function (require, exports, module) {
var goods_name = $(this).find(".inquiry_goods_namexs").val(); var goods_name = $(this).find(".inquiry_goods_namexs").val();
var num_ = $(this).find(".inquiry_numxs").val(); var num_ = $(this).find(".inquiry_numxs").val();
var brand = $(this).find(".inquiry_brandxs").val(); var brand = $(this).find(".inquiry_brandxs").val();
if (goods_name || num_) { if (!goods_name) {
if (!goods_name) { liexin_pop.Tip({ title: "Part No CANNOT BE EMPTY" });
liexin_pop.Tip({ title: "Part No CANNOT BE EMPTY" }); arr_ = [];
arr_ = []; return false;
return false;
}
if (!num_) {
liexin_pop.Tip({ title: "Quantity CANNOT BE EMPTY" });
arr_ = [];
return false;
}
} }
if (!num_) {
liexin_pop.Tip({ title: "Quantity CANNOT BE EMPTY" });
arr_ = [];
return false;
}
if (goods_name && num_) { if (goods_name && num_) {
arr_.push({ arr_.push({
goods_name: goods_name, goods_name: goods_name,
...@@ -150,8 +149,8 @@ define('mallUi', ['tool', 'liexin_pop'], function (require, exports, module) { ...@@ -150,8 +149,8 @@ define('mallUi', ['tool', 'liexin_pop'], function (require, exports, module) {
} }
}) })
if (arr_.length == 0) { if (arr_.length == 0) {
liexin_pop.Tip({ title: "Part No CANNOT BE EMPTY" })
return return
} }
$.liexin_ajax('/api/inquiry/add', 'POST', { $.liexin_ajax('/api/inquiry/add', 'POST', {
......
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
</div> </div>
<div class="tikup"> <div class="tikup">
<span>*</span> <span>*</span>
By clicking "Register", you acknowledge that you have read and agreed to SEMOUR’s Terms By clicking "Submit", you acknowledge that you have read and agreed to SEMOUR’s Terms
and Conditions and Privacy Policy Statement. and Conditions and Privacy Policy Statement.
</div> </div>
<div class="tips"></div> <div class="tips"></div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment