Commit e13991aa authored by 黄奎's avatar 黄奎

页面修改

parent 77d012d1
...@@ -256,24 +256,73 @@ namespace Mall.Module.MarketingCenter ...@@ -256,24 +256,73 @@ namespace Mall.Module.MarketingCenter
} }
} }
subData.list.Add(new rubikDetailItem() try
{ {
w = w, var rubikModel = new rubikDetailItem()
h = h2, {
x = x, w = w,
y = y, h = h2,
link = links, x = x,
width = subItem["width"].ToString(), y = y,
height = subItem["height"].ToString(), link = links,
left = subItem["left"].ToString(), zIndex = zIndex,
top = subItem["top"].ToString(), width = "",
pic_url = Common.Config.GetFileUrl(subItem["pic_url"].ToString()) , height = "",
backgroundImage = subItem["backgroundImage"].ToString(), left = "",
backgroundRepeat = subItem["backgroundRepeat"].ToString(), top = "",
backgroundSize = subItem["backgroundSize"].ToString(), pic_url = "",
backgroundPosition = subItem["backgroundPosition"].ToString(), backgroundImage = "",
zIndex = zIndex backgroundRepeat = "",
}); ; backgroundSize = "",
backgroundPosition = "",
backgroundColor = ""
};
if (subItem["width"] != null && !string.IsNullOrWhiteSpace(subItem["width"].ToString()))
{
rubikModel.width = subItem["width"].ToString();
}
if (subItem["height"] != null && !string.IsNullOrWhiteSpace(subItem["height"].ToString()))
{
rubikModel.height = subItem["height"].ToString();
}
if (subItem["left"] != null && !string.IsNullOrWhiteSpace(subItem["left"].ToString()))
{
rubikModel.left = subItem["left"].ToString();
}
if (subItem["top"] != null && !string.IsNullOrWhiteSpace(subItem["top"].ToString()))
{
rubikModel.top = subItem["top"].ToString();
}
if (subItem["pic_url"] != null && !string.IsNullOrWhiteSpace(subItem["pic_url"].ToString()))
{
rubikModel.pic_url = Common.Config.GetFileUrl(subItem["pic_url"].ToString());
}
if (subItem["backgroundImage"] != null && !string.IsNullOrWhiteSpace(subItem["backgroundImage"].ToString()))
{
rubikModel.backgroundImage = Common.Config.GetFileUrl(subItem["backgroundImage"].ToString());
}
if (subItem["backgroundRepeat"] != null && !string.IsNullOrWhiteSpace(subItem["backgroundRepeat"].ToString()))
{
rubikModel.backgroundRepeat = subItem["backgroundRepeat"].ToString();
}
if (subItem["backgroundSize"] != null && !string.IsNullOrWhiteSpace(subItem["backgroundSize"].ToString()))
{
rubikModel.backgroundSize = subItem["backgroundSize"].ToString();
}
if (subItem["backgroundPosition"] != null && !string.IsNullOrWhiteSpace(subItem["backgroundPosition"].ToString()))
{
rubikModel.backgroundPosition = subItem["backgroundPosition"].ToString();
}
if (subItem["backgroundColor"] != null && !string.IsNullOrWhiteSpace(subItem["backgroundColor"].ToString()))
{
rubikModel.backgroundColor = subItem["backgroundColor"].ToString();
}
subData.list.Add(rubikModel);
}
catch
{
}
} }
} }
} }
......
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