Commit e5f61628 authored by 黄奎's avatar 黄奎

页面修改

parent c0ae62ab
......@@ -356,7 +356,7 @@ namespace Mall.Model.Extend.MarketingCenter
/// <summary>
/// 专题样式
/// </summary>
public string normal { get; set; }
public string style { get; set; }
/// <summary>
/// 显示行数
......@@ -407,18 +407,21 @@ namespace Mall.Model.Extend.MarketingCenter
/// <summary>
/// 分类名称
/// </summary>
public int cat_name { get; set; }
public string cat_name { get; set; }
/// <summary>
/// 分类名称
/// </summary>
public int name { get; set; }
public string name { get; set; }
public int custom { get; set; }
public int number { get; set; }
public List<object> children { get; set; }
/// <summary>
/// 专题分类列表
/// </summary>
public List<topicDetailsItem> children { get; set; }
}
/// <summary>
......@@ -447,7 +450,7 @@ namespace Mall.Model.Extend.MarketingCenter
public int layout { get; set; }
/// <summary>
///
/// 专题Id
/// </summary>
public int id { get; set; }
}
......
......@@ -153,11 +153,78 @@ namespace Mall.WebApi.Controllers.MallBase
var mall = new object();
if (miniProgram != null && miniProgram.MallBaseId > 0)
{
var config = new
{
//顶部导航
title_bar = new
{
//顶部背景颜色
background = miniProgram.TopNavBgColor,
//顶部文字颜色
color = miniProgram.TopNavWordColor,
},
//用户中心
user_center = new
{
//是否显示账户栏
is_account_status=(miniProgram.IsShowAccountNav==0?1:0),
//是否显示菜单栏
is_menu_status=(miniProgram.IsShowMenuNav==0?1:0),
//是否显示菜单栏
is_order_bar_status=(miniProgram.IsShowOrderNav==0?1:0),
//是否显示收藏夹
is_foot_bar_status=(miniProgram.IsShowFavorite==0?1:0),
//菜单样式
menu_style=(miniProgram.MenuNavStyle==0?1:2),
//头像样式
top_style=(miniProgram.HeadStyle),
//顶部默认背景图
top_pic_url=miniProgram.DefaultBgImg,
//普通用户背景图
member_pic_url = miniProgram.MemberBgImg,
//会员中心背景图
member_bg_pic_url = miniProgram.VipBgImg,
//头像内嵌背景图
style_bg_pic_url="",
//账户相关菜单
account = miniProgram?.AccountMenuList.Select(qitem => new{
icon_url=qitem.MenuIcon,
name=qitem.MenuName,
is_show=1,
}),
//自定义菜单
menus = miniProgram?.SelfMenuList.Select(qitem => new {
icon_url = qitem.MenuIcon,
name = qitem.MenuName,
link_url =qitem.MenuUrl,
open_type= "navigate",
@params = "",
}),
//订单菜单列表
order_bar= miniProgram?.OrderMenuList.Select(qitem => new {
icon_url = qitem.MenuIcon,
name = qitem.MenuName,
link_url = qitem.MenuUrl,
open_type = "navigate",
text = "",
}),
//收藏足迹
foot_bar= miniProgram?.FavoriteFootMenuList.Select(qitem => new {
icon_url = qitem.MenuIcon,
name = qitem.MenuName,
link_url = qitem.MenuUrl,
open_type = "navigate",
}),
}
};
mall = new
{
id=miniProgram.MallBaseId,
name=miniProgram.MallName,
//配置信息
config
};
}
return ApiResult.Success(data: mall);
......
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