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
97a54957
Commit
97a54957
authored
Jun 02, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增排序
parent
3d1909ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
RB_MiniProgram_UserCenterMenu.cs
Mall.Model/Entity/User/RB_MiniProgram_UserCenterMenu.cs
+5
-0
MiniProgramModule.cs
Mall.Module.User/MiniProgramModule.cs
+9
-1
No files found.
Mall.Model/Entity/User/RB_MiniProgram_UserCenterMenu.cs
View file @
97a54957
...
...
@@ -65,5 +65,10 @@ namespace Mall.Model.Entity.User
get
;
set
;
}
/// <summary>
/// 排序
/// </summary>
public
int
PageSort
{
get
;
set
;
}
}
}
Mall.Module.User/MiniProgramModule.cs
View file @
97a54957
...
...
@@ -364,8 +364,10 @@ namespace Mall.Module.User
if
(
extModel
.
BottomTagList
!=
null
&&
extModel
.
BottomTagList
.
Count
>
0
)
{
int
tagSort
=
1
;
foreach
(
var
item
in
extModel
.
BottomTagList
)
{
item
.
TagSort
=
tagSort
;
if
(
item
.
TagId
>
0
)
{
Dictionary
<
string
,
object
>
tagfileds
=
new
Dictionary
<
string
,
object
>()
...
...
@@ -376,6 +378,7 @@ namespace Mall.Module.User
{
nameof
(
RB_Miniprogram_Bottomnav_Extend
.
DefaultColor
),
item
.
DefaultColor
},
{
nameof
(
RB_Miniprogram_Bottomnav_Extend
.
CheckedColor
),
item
.
CheckedColor
},
{
nameof
(
RB_Miniprogram_Bottomnav_Extend
.
TagLink
),
item
.
TagLink
},
{
nameof
(
RB_Miniprogram_Bottomnav_Extend
.
TagSort
),
item
.
TagSort
},
};
flag
=
bottomnavRepository
.
Update
(
tagfileds
,
new
WhereHelper
(
nameof
(
RB_Miniprogram_Bottomnav_Extend
.
TagId
),
item
.
TagId
));
}
...
...
@@ -386,6 +389,7 @@ namespace Mall.Module.User
item
.
Status
=
0
;
flag
=
bottomnavRepository
.
Insert
(
item
)
>
0
;
}
tagSort
++;
}
}
}
...
...
@@ -450,7 +454,7 @@ namespace Mall.Module.User
extModel
.
FavoriteFootMenuList
=
menuList
?.
Where
(
qitem
=>
qitem
.
MenuType
==
1
)?.
ToList
();
extModel
.
OrderMenuList
=
menuList
?.
Where
(
qitem
=>
qitem
.
MenuType
==
3
)?.
ToList
();
extModel
.
AccountMenuList
=
menuList
?.
Where
(
qitem
=>
qitem
.
MenuType
==
2
)?.
ToList
();
extModel
.
SelfMenuList
=
menuList
?.
Where
(
qitem
=>
qitem
.
MenuType
==
4
)?.
ToList
();
extModel
.
SelfMenuList
=
menuList
?.
Where
(
qitem
=>
qitem
.
MenuType
==
4
)
.
OrderBy
(
qitem
=>
qitem
.
PageSort
)
?.
ToList
();
}
}
if
(
isGetHomeData
)
...
...
@@ -717,8 +721,10 @@ namespace Mall.Module.User
}
if
(
extModel
.
SelfMenuList
!=
null
&&
extModel
.
SelfMenuList
.
Count
>
0
)
{
int
pageSort
=
1
;
foreach
(
var
item
in
extModel
.
SelfMenuList
)
{
item
.
PageSort
=
pageSort
;
item
.
MallBaseId
=
extModel
.
MallBaseId
;
if
(
item
.
DetailId
>
0
)
{
...
...
@@ -728,6 +734,7 @@ namespace Mall.Module.User
{
nameof
(
RB_MiniProgram_UserCenterMenu_Extend
.
MenuName
),
item
.
MenuName
},
{
nameof
(
RB_MiniProgram_UserCenterMenu_Extend
.
MenuIcon
),
item
.
MenuIcon
},
{
nameof
(
RB_MiniProgram_UserCenterMenu_Extend
.
MenuUrl
),
item
.
MenuUrl
},
{
nameof
(
RB_MiniProgram_UserCenterMenu_Extend
.
PageSort
),
item
.
PageSort
},
};
flag
=
centerMenuRepository
.
Update
(
detailesFileds
,
new
WhereHelper
(
nameof
(
RB_MiniProgram_UserCenterMenu_Extend
.
DetailId
),
item
.
DetailId
));
}
...
...
@@ -735,6 +742,7 @@ namespace Mall.Module.User
{
flag
=
centerMenuRepository
.
Insert
(
item
)
>
0
;
}
pageSort
++;
}
}
flag
=
programRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_MiniProgram_Extend
.
MallBaseId
),
extModel
.
MallBaseId
));
...
...
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