Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
mall.oytour.com
Commits
e5f61628
Commit
e5f61628
authored
May 22, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
c0ae62ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
6 deletions
+76
-6
RB_Miniprogram_Template_Extend.cs
.../Extend/MarketingCenter/RB_Miniprogram_Template_Extend.cs
+8
-5
MallController.cs
Mall.WebApi/Controllers/Mall/MallController.cs
+68
-1
No files found.
Mall.Model/Extend/MarketingCenter/RB_Miniprogram_Template_Extend.cs
View file @
e5f61628
...
...
@@ -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
;
}
}
...
...
Mall.WebApi/Controllers/Mall/MallController.cs
View file @
e5f61628
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment