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',
});
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){
if ( i == pictures.length-1 ){
......@@ -257,6 +263,7 @@ define (['doT', 'text!temp/picture_add_template_tpl.html', 'css!style/home.css',
} else {
if ( data_yetai == '' ){
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