Authored by weiqingting

提交

... ... @@ -15,14 +15,17 @@ module.exports=function(app) {
});
/*添加*/
app.get("/guang/article/contentAdd","guang.info.Edit", "common_aggStyle",function (style) {
app.get("/guang/article/contentAdd","guang.info.Edit", ["common_aggStyle"],function (style,req,res) {
this.$extend = {
action:"/guang/article/addArticle",
moduleName: "文章管理",
pageName: "添加文章"
};
return style.data;
var style=(JSON.parse(style)).data;
style=style.map(function(item){
return {stylename:item.style_name};
});
return {style:style};
});
/*编辑*/
... ... @@ -32,7 +35,11 @@ module.exports=function(app) {
moduleName: "文章管理",
pageName: "修改文章"
};
return style.data;
var style=(JSON.parse(style)).data;
style=style.map(function(item){
return {stylename:item.style_name};
});
return {style:style};
});
/*资讯管理列表数据*/
... ...
... ... @@ -42,8 +42,8 @@ var Iaccount = {
var apiCofig = {
//root:__dirname,
EnvConst:{
domain:"http://192.168.102.210:8088/platform",
// domain:"http://172.16.6.200:8088/platform",
// domain:"http://192.168.102.210:8088/platform",
domain:"http://172.16.6.200:8088/platform",
yohoSearch: 'http://192.168.102.216:8080/yohosearch',
system:Iaccount
},
... ...
... ... @@ -554,8 +554,7 @@ $(document).on("keyup", "#brandsearch", function () {
*/
var Bll2 = {
colors:[],//颜色
styles :[{id: 1, stylename: "街头"}, {id: 2, stylename: "趣味"}, {id: 3, stylename: "运动"}, {id: 4, stylename: "美式"},
{id: 5, stylename: "简约"}, {id: 5, stylename: "潮流"}],//风格
styles :window.ViewModel.style,//风格
genders :[{id: 1, gendername: "男"}, {id: 2, gendername: "女"}, {id: 3, gendername: "通用"}],//性别
sorts:[],
/**
... ... @@ -656,7 +655,7 @@ var goodsgird = new common.grid({
query: common.util.__input('skns'),
price: price,
color: Bll2.getIds(Bll.sorts[0].list),
//style: getIds(Bll.sorts[1].list),//风格先不管
style: getIds(Bll.sorts[1].list),//风格先不管
msort: Bll2.getIds(Bll.sorts[2].list),
brand: Bll2.getIds(Bll.sorts[3].list),
gender: Bll2.getIds(Bll.sorts[4].list)
... ...
... ... @@ -15,14 +15,17 @@ module.exports=function(app) {
});
/*添加*/
app.get("/guang/article/contentAdd","guang.info.Edit", "common_aggStyle",function (style) {
app.get("/guang/article/contentAdd","guang.info.Edit", ["common_aggStyle","common_aggStyle"],function (style,req,res) {
this.$extend = {
action:"/guang/article/addArticle",
moduleName: "文章管理",
pageName: "添加文章"
};
return style.data;
var style=(JSON.parse(style)).data;
style=style.map(function(item){
return {stylename:item.style_name};
});
return {style:style};
});
/*编辑*/
... ... @@ -32,7 +35,11 @@ module.exports=function(app) {
moduleName: "文章管理",
pageName: "修改文章"
};
return style.data;
var style=(JSON.parse(style)).data;
style=style.map(function(item){
return {stylename:item.style_name};
});
return {style:style};
});
/*资讯管理列表数据*/
... ...