...
|
...
|
@@ -87,7 +87,8 @@ var Bll={ |
|
|
},
|
|
|
__render:function(selecter,templater,data){
|
|
|
$(selecter).html(common.util.__template2($("#"+templater).html(),data) );
|
|
|
}
|
|
|
},
|
|
|
Tags:[]
|
|
|
}
|
|
|
//获取品牌
|
|
|
Bll.getBrands();
|
...
|
...
|
@@ -121,12 +122,14 @@ $(document).on("click","#addUrl",function(){ |
|
|
|
|
|
$(document).on("click","#TagsSelectBtn",function(){
|
|
|
common.dialog.confirm("选择标签","<div id='gird'></div>",function(){
|
|
|
|
|
|
$("#taglist").html(common.util.__template2($("#template4").html(),{tags:g.selected}));
|
|
|
});
|
|
|
g.init('/guang/tags/getList');
|
|
|
});
|
|
|
$(document).on("click",".tag a",function(){
|
|
|
g.selected.splice($(this).data("index"),1);
|
|
|
|
|
|
$("#taglist").html(common.util.__template2($("#template4").html(),{tags:g.selected}));
|
|
|
return false;
|
|
|
});
|
...
|
...
|
@@ -372,6 +375,10 @@ $(document).on("click","#submit",function(){ |
|
|
console.log("Bll.contentDatas",Bll.Brdata);
|
|
|
option.data.contentData=JSON.stringify(option.data.contentData);
|
|
|
option.data.brands=JSON.stringify(Bll.Brdata);
|
|
|
g.selected.forEach(function(item,index){
|
|
|
Bll.Tags.push(item.id);
|
|
|
});
|
|
|
option.data.tag=Bll.Tags.join(',');
|
|
|
|
|
|
console.log("submit",option.data);
|
|
|
});
|
...
|
...
|
|