Commit e13991aa authored by 黄奎's avatar 黄奎

页面修改

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