Commit 48fe2e40 authored by 黄奎's avatar 黄奎

页面修改

parent b70a9f50
...@@ -208,14 +208,37 @@ namespace Mall.Module.MarketingCenter ...@@ -208,14 +208,37 @@ namespace Mall.Module.MarketingCenter
{ {
foreach (var linkItem in linkArray) foreach (var linkItem in linkArray)
{ {
links.Add(new rubikLinkItem() var linkModel = new rubikLinkItem() { IsParameter = 0 };
if (linkItem["name"] != null && !string.IsNullOrWhiteSpace(linkItem["name"].ToString()))
{ {
PageName = linkItem["name"].ToString(), linkModel.PageName = linkItem["name"].ToString();
PageUrl = linkItem["value"].ToString(), }
new_link_url = linkItem["new_link_url"].ToString(), if (string.IsNullOrWhiteSpace(linkModel.PageName))
IsParameter = 0, {
ParameterValue = linkItem["name"].ToString(), linkModel.PageName = linkItem["PageName"].ToString();
}); }
if (linkItem["value"] != null && !string.IsNullOrWhiteSpace(linkItem["value"].ToString()))
{
linkModel.PageUrl = linkItem["value"].ToString();
}
if (string.IsNullOrWhiteSpace(linkModel.PageUrl))
{
linkModel.PageUrl = linkItem["PageUrl"].ToString();
}
if (linkItem["new_link_url"] != null && !string.IsNullOrWhiteSpace(linkItem["new_link_url"].ToString()))
{
linkModel.new_link_url = linkItem["new_link_url"].ToString();
}
if (linkItem["name"] != null && !string.IsNullOrWhiteSpace(linkItem["name"].ToString()))
{
linkModel.ParameterValue = linkItem["name"].ToString();
}
if (string.IsNullOrWhiteSpace(linkModel.ParameterValue))
{
linkModel.ParameterValue = linkItem["ParameterValue"].ToString();
}
links.Add(linkModel);
} }
} }
} }
......
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