Commit afb721d8 authored by 黄奎's avatar 黄奎

页面修改

parent 4de0ff95
...@@ -271,6 +271,7 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -271,6 +271,7 @@ namespace Mall.WebApi.Controllers.MallBase
QIds = templateIds QIds = templateIds
}, IsAnalyzePlus: true); }, IsAnalyzePlus: true);
//解析模板 //解析模板
int index = 0;
foreach (var item in selfHomePage.DetailsList) foreach (var item in selfHomePage.DetailsList)
{ {
var templateData = new var templateData = new
...@@ -290,12 +291,13 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -290,12 +291,13 @@ namespace Mall.WebApi.Controllers.MallBase
var tempObj = new var tempObj = new
{ {
id = item.Id, id = item.Id,
name = item.NavName, name = (index == 0 ? "首页" : item.NavName),
page_id = 0, page_id = 0,
template_id = item.Id, template_id = item.Id,
template = templateData template = templateData
}; };
list.Add(tempObj); list.Add(tempObj);
index++;
} }
homePage = new homePage = new
......
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