Showing
1 changed file
with
9 additions
and
2 deletions
@@ -251,6 +251,7 @@ $('#saveBasicInfo').on('click', function() { | @@ -251,6 +251,7 @@ $('#saveBasicInfo').on('click', function() { | ||
251 | } | 251 | } |
252 | 252 | ||
253 | var params = { | 253 | var params = { |
254 | + productName:common.util.__input('productName'), | ||
254 | phrase: phraseValue | 255 | phrase: phraseValue |
255 | } | 256 | } |
256 | common.util.__ajax( | 257 | common.util.__ajax( |
@@ -263,8 +264,14 @@ $('#saveBasicInfo').on('click', function() { | @@ -263,8 +264,14 @@ $('#saveBasicInfo').on('click', function() { | ||
263 | function(rs) { | 264 | function(rs) { |
264 | if (rs.data) { | 265 | if (rs.data) { |
265 | var jsonMain = rs.data; | 266 | var jsonMain = rs.data; |
266 | - if(!$.isEmptyObject(jsonMain.phrase)){ | ||
267 | - var tipText = "推荐短语包含违禁词:"+jsonMain.phrase+"!"; | 267 | + if(!$.isEmptyObject(jsonMain.productName) || !$.isEmptyObject(jsonMain.phrase)){ |
268 | + var tipText = ""; | ||
269 | + if (!$.isEmptyObject(jsonMain.productName)) { | ||
270 | + tipText += "商品名称包含违禁词:"+jsonMain.productName+"!"; | ||
271 | + } | ||
272 | + if (!$.isEmptyObject(jsonMain.phrase)) { | ||
273 | + tipText += "推荐短语包含违禁词:"+jsonMain.phrase+"!"; | ||
274 | + } | ||
268 | common.dialog.confirm("温馨提示",tipText + "确定提交吗?",function(){ | 275 | common.dialog.confirm("温馨提示",tipText + "确定提交吗?",function(){ |
269 | submitForm(); | 276 | submitForm(); |
270 | }); | 277 | }); |
-
Please register or login to post a comment