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
5a27b015
Commit
5a27b015
authored
May 20, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
99b06360
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
193 additions
and
2 deletions
+193
-2
TenantController.cs
Mall.WebApi/Controllers/User/TenantController.cs
+193
-2
No files found.
Mall.WebApi/Controllers/User/TenantController.cs
View file @
5a27b015
...
...
@@ -416,6 +416,193 @@ namespace Mall.WebApi.Controllers.User
return
ApiResult
.
Success
(
data
:
pageModel
);
}
/// <summary>
/// 默认小程序首页配置
/// </summary>
/// <returns></returns>
public
ApiResult
GetMiniProgramMallIndex
()
{
List
<
object
>
resultList
=
new
List
<
object
>();
List
<
object
>
normalList
=
new
List
<
object
>();
normalList
.
Add
(
new
{
key
=
"search"
,
name
=
"搜索框"
,
relation_id
=
0
,
is_edit
=
0
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/search-bg.png"
});
normalList
.
Add
(
new
{
key
=
"banner"
,
name
=
"轮播图"
,
relation_id
=
0
,
is_edit
=
0
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/banner-bg.png"
});
normalList
.
Add
(
new
{
key
=
"home_nav"
,
name
=
"导航图标"
,
relation_id
=
0
,
is_edit
=
1
,
row_num
=
4
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/home-nav-bg.png"
});
normalList
.
Add
(
new
{
key
=
"video"
,
name
=
"视频"
,
relation_id
=
0
,
is_edit
=
1
,
permission_key
=
"video"
,
video_url
=
""
,
video_pic_url
=
""
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/video-bg.png"
});
normalList
.
Add
(
new
{
key
=
"notice"
,
name
=
"公告"
,
relation_id
=
0
,
is_edit
=
1
,
notice_url
=
""
,
notice_bg_color
=
"#ED7E78"
,
notice_text_color
=
"#FFFFFF"
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/notice-bg.png"
});
normalList
.
Add
(
new
{
key
=
"topic"
,
name
=
"专题"
,
relation_id
=
0
,
is_edit
=
1
,
permission_key
=
"topic"
,
topic_num
=
1
,
topic_url
=
""
,
topic_url_2
=
""
,
label_url
=
""
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/topic-bg.png"
});
normalList
.
Add
(
new
{
key
=
"coupon"
,
name
=
"领券中心"
,
relation_id
=
0
,
is_edit
=
1
,
permission_key
=
"coupon"
,
coupon_url
=
""
,
coupon_not_url
=
""
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/coupon-bg.png"
});
resultList
.
Add
(
new
{
key
=
"normal"
,
name
=
"常用"
,
list
=
normalList
});
List
<
object
>
catList
=
new
List
<
object
>();
catList
.
Add
(
new
{
key
=
"cat"
,
name
=
"所有分类"
,
relation_id
=
0
,
is_edit
=
0
});
catList
.
Add
(
new
{
key
=
"cat"
,
name
=
"赞羊严选"
,
relation_id
=
9120
,
is_edit
=
0
});
catList
.
Add
(
new
{
key
=
"cat"
,
name
=
"严选旅游"
,
relation_id
=
10235
,
is_edit
=
0
});
catList
.
Add
(
new
{
key
=
"cat"
,
name
=
"台湾严选"
,
relation_id
=
10250
,
is_edit
=
0
});
catList
.
Add
(
new
{
key
=
"cat"
,
name
=
"日韩严选"
,
relation_id
=
10252
,
is_edit
=
0
});
catList
.
Add
(
new
{
key
=
"cat"
,
name
=
"欧洲严选"
,
relation_id
=
10253
,
is_edit
=
0
});
resultList
.
Add
(
new
{
key
=
"cat"
,
name
=
"商品分类"
,
list
=
catList
});
List
<
object
>
blockList
=
new
List
<
object
>();
resultList
.
Add
(
new
{
key
=
"block"
,
name
=
"图片魔方"
,
list
=
blockList
});
List
<
object
>
pluginList
=
new
List
<
object
>();
pluginList
.
Add
(
new
{
key
=
"booking"
,
name
=
"预约"
,
relation_id
=
0
,
is_edit
=
0
,
permission_key
=
"booking"
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/yuyue-bg.png"
});
pluginList
.
Add
(
new
{
key
=
"pintuan"
,
name
=
"拼团"
,
relation_id
=
0
,
is_edit
=
0
,
permission_key
=
"pintuan"
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/yuyue-bg.png"
});
pluginList
.
Add
(
new
{
key
=
"advance"
,
name
=
"预售"
,
relation_id
=
0
,
is_edit
=
0
,
permission_key
=
"advance"
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/yushou-bg.png"
});
resultList
.
Add
(
new
{
key
=
"plugin"
,
name
=
"插件"
,
list
=
pluginList
});
return
ApiResult
.
Success
(
data
:
resultList
);
}
#
region
设置可跳转小程序
OR
是否开启直播
/// <summary>
...
...
@@ -459,7 +646,7 @@ namespace Mall.WebApi.Controllers.User
var
query
=
JsonConvert
.
DeserializeObject
<
RB_MiniProgram_Extend
>(
RequestParm
.
msg
.
ToString
());
query
.
MallBaseId
=
parms
.
MallBaseId
;
query
.
TenantId
=
UserInfo
.
TenantId
;
bool
result
=
programModule
.
UpdateLivePlayerPlugin
(
query
);
if
(
result
)
{
...
...
@@ -577,7 +764,7 @@ namespace Mall.WebApi.Controllers.User
var
roleList
=
employeeModule
.
GetRoleListExtModule
(
new
RB_Role_Extend
()
{
EmpId
=
RequestParm
.
EmpId
});
if
(
roleList
!=
null
&&
roleList
.
Count
>
0
)
{
list
=
menuModule
.
GetMenuListModule
(
new
RB_Menu_Extend
()
{
QMenuIds
=
roleList
?.
FirstOrDefault
()?.
RoleAuth
});
list
=
menuModule
.
GetMenuListModule
(
new
RB_Menu_Extend
()
{
QMenuIds
=
roleList
?.
FirstOrDefault
()?.
RoleAuth
});
}
}
else
...
...
@@ -932,6 +1119,8 @@ namespace Mall.WebApi.Controllers.User
}
#
endregion
#
region
插件列表
/// <summary>
/// 获取插件列表
/// </summary>
...
...
@@ -955,6 +1144,8 @@ namespace Mall.WebApi.Controllers.User
return
ApiResult
.
Success
(
data
:
resultList
);
}
#
endregion
#
region
轮播图
/// <summary>
...
...
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