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
7b582720
Commit
7b582720
authored
Jun 04, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
4a733c10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
3 deletions
+35
-3
MallController.cs
Mall.WebApi/Controllers/Mall/MallController.cs
+35
-3
No files found.
Mall.WebApi/Controllers/Mall/MallController.cs
View file @
7b582720
...
...
@@ -85,6 +85,11 @@ namespace Mall.WebApi.Controllers.MallBase
/// </summary>
private
readonly
IntegralModule
integralModule
=
new
IntegralModule
();
/// <summary>
/// 小程序页面处理类
/// </summary>
private
Module
.
User
.
MiniProgramPageModule
programPageModule
=
new
Module
.
User
.
MiniProgramPageModule
();
/// <summary>
/// 小程序首页
/// </summary>
...
...
@@ -111,6 +116,8 @@ namespace Mall.WebApi.Controllers.MallBase
var
setting
=
new
object
();
var
share_setting
=
new
object
();
var
cat_style
=
new
object
();
//授权页面
var
auth_page
=
new
object
();
if
(
MiniAppId
!=
null
&&
!
string
.
IsNullOrEmpty
(
MiniAppId
))
{
//获取小程序信息
...
...
@@ -141,6 +148,30 @@ namespace Mall.WebApi.Controllers.MallBase
key
=
qitem
.
TagLink
==
"/pages/live/index"
?
"live"
:
""
,
}),
};
//授权页面热区
var
hotspotCancel
=
new
object
();
var
hotspotLogin
=
new
object
();
if
(
miniProgram
.
AuthDataList
!=
null
&&
miniProgram
.
AuthDataList
.
Count
>
0
)
{
var
first
=
miniProgram
.
AuthDataList
[
0
];
var
second
=
miniProgram
.
AuthDataList
[
1
];
if
(
first
.
open_type
==
"login"
)
{
hotspotLogin
=
first
;
hotspotCancel
=
second
;
}
else
{
hotspotLogin
=
second
;
hotspotCancel
=
first
;
}
}
auth_page
=
new
{
pic_url
=
miniProgram
.
AuthUrl
,
hotspot
=
hotspotLogin
,
hotspot_cancel
=
hotspotCancel
};
var
selfHomePage
=
miniprogramPageTemplModule
.
GetMiniprogramPageTemplModule
(
new
RB_Miniprogram_Page_Templ_Extend
()
{
...
...
@@ -1508,7 +1539,7 @@ namespace Mall.WebApi.Controllers.MallBase
var
memberModel
=
userModule
.
GetAppletUserCenterStatistics
(
RequestParm
.
OpenId
);
user_info
=
memberModel
;
}
var
miniPageList
=
programPageModule
.
GetMiniprogram_Page_ListExtModule
(
new
RB_MiniProgram_Page_Extend
()
{
MallBaseId
=
RequestParm
.
MallBaseId
});
var
objResult
=
new
{
home_pages
=
homePage
,
...
...
@@ -1516,8 +1547,9 @@ namespace Mall.WebApi.Controllers.MallBase
user_info
,
setting
,
share_setting
,
cat_style
cat_style
,
auth_page
,
//授权页面
bar_title
=
miniPageList
?.
Select
(
qitem
=>
new
{
name
=
qitem
.
PageName
,
value
=
qitem
.
PageUrl
,
new_name
=
qitem
.
SelfPageName
}),
//导航标题
};
return
ApiResult
.
Success
(
data
:
objResult
);
}
...
...
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