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
81e20c14
Commit
81e20c14
authored
May 21, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
2c449c14
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
40 deletions
+16
-40
ProductController.cs
Mall.WebApi/Controllers/Product/ProductController.cs
+1
-0
TenantController.cs
Mall.WebApi/Controllers/User/TenantController.cs
+15
-40
No files found.
Mall.WebApi/Controllers/Product/ProductController.cs
View file @
81e20c14
...
...
@@ -403,6 +403,7 @@ namespace Mall.WebApi.Controllers.MallBase
return
ApiResult
.
Success
(
""
,
list
);
}
/// <summary>
/// 获取分类详情
/// </summary>
...
...
Mall.WebApi/Controllers/User/TenantController.cs
View file @
81e20c14
...
...
@@ -510,7 +510,10 @@ namespace Mall.WebApi.Controllers.User
name
=
"常用"
,
list
=
normalList
});
productModule
.
GetCategoryListModule
(
new
Model
.
Extend
.
Product
.
RB_Product_Category_Extend
()
{
MallBaseId
=
RequestParm
.
MallBaseId
,
TenantId
=
RequestParm
.
TenantId
,
Tier
=
1
});
var
categoryList
=
productModule
.
GetCategoryListModule
(
new
Model
.
Extend
.
Product
.
RB_Product_Category_Extend
()
{
MallBaseId
=
RequestParm
.
MallBaseId
,
TenantId
=
RequestParm
.
TenantId
,
Tier
=
1
,
IsShow
=
1
,
});
List
<
object
>
catList
=
new
List
<
object
>();
catList
.
Add
(
new
{
...
...
@@ -520,46 +523,18 @@ namespace Mall.WebApi.Controllers.User
is_edit
=
0
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/cat-bg.png"
});
catList
.
Add
(
new
{
key
=
"cat"
,
name
=
"赞羊严选"
,
relation_id
=
9120
,
is_edit
=
0
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/cat-bg.png"
});
catList
.
Add
(
new
foreach
(
var
item
in
categoryList
)
{
key
=
"cat"
,
name
=
"严选旅游"
,
relation_id
=
10235
,
is_edit
=
0
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/cat-bg.png"
});
catList
.
Add
(
new
{
key
=
"cat"
,
name
=
"台湾严选"
,
relation_id
=
10250
,
is_edit
=
0
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/cat-bg.png"
});
catList
.
Add
(
new
{
key
=
"cat"
,
name
=
"日韩严选"
,
relation_id
=
10252
,
is_edit
=
0
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/cat-bg.png"
});
catList
.
Add
(
new
{
key
=
"cat"
,
name
=
"欧洲严选"
,
relation_id
=
10253
,
name
=
item
.
Name
,
relation_id
=
item
.
Id
,
is_edit
=
0
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/cat-bg.png"
});
}
resultList
.
Add
(
new
{
key
=
"cat"
,
...
...
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