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
f1195cb2
Commit
f1195cb2
authored
Aug 20, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
901927ef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
ProductModule.cs
Mall.Module.Product/ProductModule.cs
+11
-0
MiniProgramModule.cs
Mall.Module.User/MiniProgramModule.cs
+1
-1
ProductController.cs
Mall.WebApi/Controllers/Product/ProductController.cs
+1
-0
No files found.
Mall.Module.Product/ProductModule.cs
View file @
f1195cb2
...
...
@@ -3811,12 +3811,23 @@ namespace Mall.Module.Product
item
.
CategoryList
=
clist
.
Where
(
x
=>
x
.
GoodsId
==
item
.
Id
).
ToList
();
//轮播图
item
.
CoverImage
=
""
;
item
.
CarouselImageList
=
new
List
<
RB_ImageCommonModel
>();
if
(!
string
.
IsNullOrEmpty
(
item
.
CarouselImage
)
&&
item
.
CarouselImage
!=
"[]"
)
{
List
<
string
>
CarouselIdList
=
JsonConvert
.
DeserializeObject
<
List
<
string
>>(
item
.
CarouselImage
);
//封面图
item
.
CoverImage
=
CarouselIdList
[
0
];
//轮播图
//轮播图
foreach
(
var
qitem
in
CarouselIdList
)
{
item
.
CarouselImageList
.
Add
(
new
RB_ImageCommonModel
()
{
Id
=
0
,
Name
=
""
,
Path
=
qitem
});
}
}
item
.
GoodsBuyNum
=
olist
.
Where
(
x
=>
x
.
GoodsId
==
item
.
Id
).
FirstOrDefault
()?.
OrderNum
??
0
;
...
...
Mall.Module.User/MiniProgramModule.cs
View file @
f1195cb2
...
...
@@ -2033,7 +2033,7 @@ namespace Mall.Module.User
{
for
(
var
i
=
0
;
i
<=
23
;
i
++)
{
var
tempSubList
=
list
?.
Where
(
qitem
=>
qitem
.
TimeStr
==
i
.
ToString
()
)?.
ToList
();
var
tempSubList
=
list
?.
Where
(
qitem
=>
Convert
.
ToInt32
(
qitem
.
TimeStr
)
==
i
)?.
ToList
();
subList
.
Add
(
new
MallSalesStatistics
()
{
TimeStr
=
i
.
ToString
(),
...
...
Mall.WebApi/Controllers/Product/ProductController.cs
View file @
f1195cb2
...
...
@@ -1389,6 +1389,7 @@ namespace Mall.WebApi.Controllers.MallBase
x
.
Id
,
x
.
Name
,
x
.
CoverImage
,
x
.
CarouselImageList
,
x
.
SellingPrice
,
x
.
SalesNum
,
CategoryList
=
x
.
CategoryList
.
Select
(
y
=>
new
{
y
.
Id
,
y
.
CategoryName
}),
...
...
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