Authored by 马力

phrase

1 var $ = require('jquery'), 1 var $ = require('jquery'),
2 common = require('../../../../common/common'); 2 common = require('../../../../common/common');
3 - 3 + util = require('../../../../common/util');
4 var basicInfohtml = '', 4 var basicInfohtml = '',
5 ENUM = { 5 ENUM = {
6 isSuppled: { 6 isSuppled: {
@@ -243,6 +243,13 @@ $(document).on("change",":radio[name=isLimited]",function(){ @@ -243,6 +243,13 @@ $(document).on("change",":radio[name=isLimited]",function(){
243 243
244 244
245 $('#saveBasicInfo').on('click', function() { 245 $('#saveBasicInfo').on('click', function() {
  246 + var phraseValue = common.util.__input('phrase');
  247 +
  248 + if (phraseValue && phraseValue != '' && phraseValue.length < 60) {
  249 + util.__tip("推荐短语不少于60字符");
  250 + return;
  251 + }
  252 +
246 common.util.__ajax({ 253 common.util.__ajax({
247 url:'/goods/product/saveNetSaleBaseInfo', 254 url:'/goods/product/saveNetSaleBaseInfo',
248 data:{ 255 data:{
@@ -250,7 +257,7 @@ $('#saveBasicInfo').on('click', function() { @@ -250,7 +257,7 @@ $('#saveBasicInfo').on('click', function() {
250 productName:common.util.__input('productName'), 257 productName:common.util.__input('productName'),
251 isNew:common.util.__input('[name=isNew]:checked'), 258 isNew:common.util.__input('[name=isNew]:checked'),
252 sellChannels:common.util.__input('[name=sellChannels]:checked'), 259 sellChannels:common.util.__input('[name=sellChannels]:checked'),
253 - phrase:common.util.__input('phrase'), 260 + phrase:phraseValue,
254 outSaleTime:common.util.__input('outSaleTime'), 261 outSaleTime:common.util.__input('outSaleTime'),
255 shopIds:common.util.__input('[name=shopIds]:checked'), 262 shopIds:common.util.__input('[name=shopIds]:checked'),
256 delayArrivalNotice:common.util.__input('delayArrivalNotice'), 263 delayArrivalNotice:common.util.__input('delayArrivalNotice'),