Authored by weiqingting

提交

... ... @@ -143,12 +143,7 @@ var Bll = {
__render: function(selecter, templater, data) {
$(selecter).html(common.util.__template2($("#" + templater).html(), data));
var contentDrag = new common.drag("#add-content", Bll.contentDatas, function(data){
console.log(data);
Bll.contentDatas = data;
Bll.__render("#add-content","template_content",{modules:Bll.contentDatas});
});
contentDrag.Initialize();
},
Tags: []
}
... ... @@ -169,17 +164,7 @@ Bll.Tags=ViewModel.tag?ViewModel.tag.split(','):[];
Bll.__render("#taglist","template4",{tags:Bll.Tags});
/*内容渲染->对象转数组*/
// Bll.contentDatas=ENUM.articleContent;
function parseSrc(obj){
for(var key in obj){
if (key=="src") {
obj[key]=obj[key].replace(/\?.*/g,'');
}else{
if({}.toString.call(obj[key])=="object Object"){
parseSrc(obj[key])
}
}
}
}
if(ViewModel.articleContent){
ViewModel.articleContent.forEach(function(item,index){
item.contentData=item.contentData.replace(/(jpg|png)\?[^"]*/g,'$1');
... ... @@ -652,3 +637,10 @@ $(document).on("click","#brandAutoBtn",function(){
});
// var contentDrag = new common.drag("#add-content", Bll.contentDatas, function(data){
// console.log(data);
// Bll.contentDatas = data;
// Bll.__render("#add-content","template_content",{modules:Bll.contentDatas});
// });
// contentDrag.Initialize();
\ No newline at end of file
... ...