Showing
1 changed file
with
12 additions
and
2 deletions
@@ -139,6 +139,9 @@ webpackJsonp([46],{ | @@ -139,6 +139,9 @@ webpackJsonp([46],{ | ||
139 | if($.trim($("#productName").val()) == ""){ | 139 | if($.trim($("#productName").val()) == ""){ |
140 | window.IS_OVER = true; | 140 | window.IS_OVER = true; |
141 | common.util.__tip("商品名称为空", 'warning'); | 141 | common.util.__tip("商品名称为空", 'warning'); |
142 | + } else if ($.trim($("#phrase").val()) != "" && $.trim($("#phrase").val()).length < 60) { | ||
143 | + window.IS_OVER = true; | ||
144 | + common.util.__tip("推荐短语不能少于60个字符", 'warning'); | ||
142 | }else{ | 145 | }else{ |
143 | $("#saveBasicInfo").click(); | 146 | $("#saveBasicInfo").click(); |
144 | $("#fenMainSave").click(); | 147 | $("#fenMainSave").click(); |
@@ -13208,7 +13211,7 @@ webpackJsonp([46],{ | @@ -13208,7 +13211,7 @@ webpackJsonp([46],{ | ||
13208 | 13211 | ||
13209 | var $ = __webpack_require__(1), | 13212 | var $ = __webpack_require__(1), |
13210 | common = __webpack_require__(2); | 13213 | common = __webpack_require__(2); |
13211 | - | 13214 | + util = __webpack_require__(13); |
13212 | var basicInfohtml = '', | 13215 | var basicInfohtml = '', |
13213 | ENUM = { | 13216 | ENUM = { |
13214 | isSuppled: { | 13217 | isSuppled: { |
@@ -13451,6 +13454,13 @@ webpackJsonp([46],{ | @@ -13451,6 +13454,13 @@ webpackJsonp([46],{ | ||
13451 | 13454 | ||
13452 | 13455 | ||
13453 | $('#saveBasicInfo').on('click', function() { | 13456 | $('#saveBasicInfo').on('click', function() { |
13457 | + var phraseValue = common.util.__input('phrase'); | ||
13458 | + | ||
13459 | + if (phraseValue && phraseValue != '' && phraseValue.trim().length < 60) { | ||
13460 | + util.__tip("推荐短语不能少于60个字符", 'warning'); | ||
13461 | + return; | ||
13462 | + } | ||
13463 | + | ||
13454 | common.util.__ajax({ | 13464 | common.util.__ajax({ |
13455 | url:'/goods/product/saveNetSaleBaseInfo', | 13465 | url:'/goods/product/saveNetSaleBaseInfo', |
13456 | data:{ | 13466 | data:{ |
@@ -13458,7 +13468,7 @@ webpackJsonp([46],{ | @@ -13458,7 +13468,7 @@ webpackJsonp([46],{ | ||
13458 | productName:common.util.__input('productName'), | 13468 | productName:common.util.__input('productName'), |
13459 | isNew:common.util.__input('[name=isNew]:checked'), | 13469 | isNew:common.util.__input('[name=isNew]:checked'), |
13460 | sellChannels:common.util.__input('[name=sellChannels]:checked'), | 13470 | sellChannels:common.util.__input('[name=sellChannels]:checked'), |
13461 | - phrase:common.util.__input('phrase'), | 13471 | + phrase:phraseValue, |
13462 | outSaleTime:common.util.__input('outSaleTime'), | 13472 | outSaleTime:common.util.__input('outSaleTime'), |
13463 | shopIds:common.util.__input('[name=shopIds]:checked'), | 13473 | shopIds:common.util.__input('[name=shopIds]:checked'), |
13464 | delayArrivalNotice:common.util.__input('delayArrivalNotice'), | 13474 | delayArrivalNotice:common.util.__input('delayArrivalNotice'), |
-
Please register or login to post a comment