Commit 6ac9d2c6 authored by xinyuandu's avatar xinyuandu

商铺图库验证

parent 0144217a
...@@ -24,6 +24,7 @@ define (['doT', 'text!temp/picture_add_template_tpl.html', 'css!style/home.css', ...@@ -24,6 +24,7 @@ define (['doT', 'text!temp/picture_add_template_tpl.html', 'css!style/home.css',
picture.getList (1); picture.getList (1);
}, },
event: function () { event: function () {
$.alert("")
$("#search").click(function () { $("#search").click(function () {
picture.getList(1); picture.getList(1);
}); });
...@@ -249,7 +250,16 @@ define (['doT', 'text!temp/picture_add_template_tpl.html', 'css!style/home.css', ...@@ -249,7 +250,16 @@ define (['doT', 'text!temp/picture_add_template_tpl.html', 'css!style/home.css',
//执行数据保存的操作 //执行数据保存的操作
savePicture : function(data_yetai,pictureName){ savePicture : function(data_yetai,pictureName){
var yetai = $('#modal').find('select#leased option:selected').val() == -1 ? '' : data_yetai; var yetai = $('#modal').find('select#leased option:selected').val() == 2 ? '' : data_yetai;
if ( $('#modal').find('select#leased option:selected').val() == 2 ){ //判断是人群图
yetai = '';
} else {
if ( data_yetai == '' ){
alert("请选择业态");
}
}
var params = { var params = {
'img_type' : $('#modal').find('select#leased option:selected').val() , 'img_type' : $('#modal').find('select#leased option:selected').val() ,
'label' : yetai, 'label' : yetai,
......
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