Commit 317931d2 authored by agping's avatar agping

后台 商铺图片 优化

parent 5f7fd9a8
...@@ -74,6 +74,12 @@ define (['doT', 'text!temp/picture_add_template_tpl.html', 'css!style/home.css', ...@@ -74,6 +74,12 @@ define (['doT', 'text!temp/picture_add_template_tpl.html', 'css!style/home.css',
}); });
var pictures = $('#modal').find('.img_area').find('.pictures'); var pictures = $('#modal').find('.img_area').find('.pictures');
console.log(pictures.length - 0 > 0 );
if ( !(pictures.length - 0 > 0) ){
alert("请选择图片");
return false ;
}
//有几张图片就保存几次 //有几张图片就保存几次
$('#modal').find('.img_area').find('.pictures').each(function(i,event){ $('#modal').find('.img_area').find('.pictures').each(function(i,event){
if ( i == pictures.length-1 ){ if ( i == pictures.length-1 ){
...@@ -256,7 +262,8 @@ define (['doT', 'text!temp/picture_add_template_tpl.html', 'css!style/home.css', ...@@ -256,7 +262,8 @@ define (['doT', 'text!temp/picture_add_template_tpl.html', 'css!style/home.css',
yetai = ''; yetai = '';
} else { } else {
if ( data_yetai == '' ){ if ( data_yetai == '' ){
alert("请选择业态"); alert("请选择业态");
return;
} }
} }
......
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 to comment