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
77124b0a
Commit
77124b0a
authored
Feb 26, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
7ad755af
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
22 deletions
+63
-22
RB_MiniProgram.cs
Mall.Model/Entity/User/RB_MiniProgram.cs
+6
-0
MiniProgramModule.cs
Mall.Module.User/MiniProgramModule.cs
+26
-8
MallController.cs
Mall.WebApi/Controllers/Mall/MallController.cs
+17
-14
TenantController.cs
Mall.WebApi/Controllers/User/TenantController.cs
+14
-0
No files found.
Mall.Model/Entity/User/RB_MiniProgram.cs
View file @
77124b0a
...
@@ -468,6 +468,12 @@ namespace Mall.Model.Entity.User
...
@@ -468,6 +468,12 @@ namespace Mall.Model.Entity.User
/// 普通用户会员Vip购买图片
/// 普通用户会员Vip购买图片
/// </summary>
/// </summary>
public
string
MemberBuyVipImg
{
get
;
set
;
}
public
string
MemberBuyVipImg
{
get
;
set
;
}
/// <summary>
/// 1-大图,2-小图
/// </summary>
public
int
ActivityStyle
{
get
;
set
;
}
}
}
...
...
Mall.Module.User/MiniProgramModule.cs
View file @
77124b0a
...
@@ -790,7 +790,8 @@ namespace Mall.Module.User
...
@@ -790,7 +790,8 @@ namespace Mall.Module.User
})
})
}));
}));
}
}
else
{
else
{
extModel
.
MenuNavJson
=
"[]"
;
extModel
.
MenuNavJson
=
"[]"
;
}
}
#
endregion
#
endregion
...
@@ -942,7 +943,24 @@ namespace Mall.Module.User
...
@@ -942,7 +943,24 @@ namespace Mall.Module.User
return
flag
;
return
flag
;
}
}
/// <summary>
/// 修改相亲小程序活动样式
/// </summary>
/// <param name="extModel"></param>
/// <returns></returns>
public
bool
SetMiniProgramActivityStyleModule
(
RB_MiniProgram_Extend
extModel
)
{
bool
flag
=
false
;
if
(
extModel
.
MallBaseId
>
0
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_MiniProgram_Extend
.
ActivityStyle
),
extModel
.
ActivityStyle
},
};
flag
=
programRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_MiniProgram_Extend
.
MallBaseId
),
extModel
.
MallBaseId
));
}
return
flag
;
}
#
endregion
#
endregion
...
@@ -1964,9 +1982,9 @@ namespace Mall.Module.User
...
@@ -1964,9 +1982,9 @@ namespace Mall.Module.User
{
{
return
liveHouseRepository
.
GetLiveHouseExtensionPageList
(
pageIndex
,
pageSize
,
out
rowCount
,
query
);
return
liveHouseRepository
.
GetLiveHouseExtensionPageList
(
pageIndex
,
pageSize
,
out
rowCount
,
query
);
}
}
public
List
<
RB_Live_HouseExtension_Extend
>
GetLiveHousePageList
(
RB_Live_HouseExtension_Extend
query
)
public
List
<
RB_Live_HouseExtension_Extend
>
GetLiveHousePageList
(
RB_Live_HouseExtension_Extend
query
)
{
{
return
liveHouseRepository
.
GetLiveHousePageList
(
query
);
return
liveHouseRepository
.
GetLiveHousePageList
(
query
);
}
}
...
@@ -2225,9 +2243,9 @@ namespace Mall.Module.User
...
@@ -2225,9 +2243,9 @@ namespace Mall.Module.User
/// </summary>
/// </summary>
/// <param name="query"></param>
/// <param name="query"></param>
/// <returns></returns>
/// <returns></returns>
public
object
MallDistributorDayStatisticsModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
StatisticsQuery
query
)
public
object
MallDistributorDayStatisticsModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
StatisticsQuery
query
)
{
{
return
mallStatisticsRepository
.
MallDistributorDayStatisticsRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
return
mallStatisticsRepository
.
MallDistributorDayStatisticsRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
}
}
#
region
直播配置
#
region
直播配置
...
...
Mall.WebApi/Controllers/Mall/MallController.cs
View file @
77124b0a
...
@@ -92,12 +92,12 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -92,12 +92,12 @@ namespace Mall.WebApi.Controllers.MallBase
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
Common
.
Plugin
.
LogHelper
.
Write
(
ex
,
"MallController_GetHome"
);
Common
.
Plugin
.
LogHelper
.
Write
(
ex
,
"MallController_GetHome"
);
}
}
int
page_id
=
parms
.
GetInt
(
"page_id"
);
int
page_id
=
parms
.
GetInt
(
"page_id"
);
//是否开启校园版【1-是】
//是否开启校园版【1-是】
int
isOpenSchool
=
parms
.
GetInt
(
"open_school"
,
0
);
int
isOpenSchool
=
parms
.
GetInt
(
"open_school"
,
0
);
//店铺id
//店铺id
int
storeId
=
parms
.
GetInt
(
"StoreId"
,
0
);
int
storeId
=
parms
.
GetInt
(
"StoreId"
,
0
);
...
@@ -150,7 +150,7 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -150,7 +150,7 @@ namespace Mall.WebApi.Controllers.MallBase
MallBaseId
=
miniProgram
.
MallBaseId
,
MallBaseId
=
miniProgram
.
MallBaseId
,
TenantId
=
miniProgram
.
TenantId
,
TenantId
=
miniProgram
.
TenantId
,
Id
=
page_id
Id
=
page_id
},
isGetHome
:
false
,
isGetSchoolPage
:
false
);
},
isGetHome
:
false
,
isGetSchoolPage
:
false
);
List
<
object
>
list
=
new
List
<
object
>();
List
<
object
>
list
=
new
List
<
object
>();
//自定义首页
//自定义首页
if
(
targetPage
!=
null
&&
targetPage
.
Id
>
0
)
if
(
targetPage
!=
null
&&
targetPage
.
Id
>
0
)
...
@@ -212,10 +212,10 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -212,10 +212,10 @@ namespace Mall.WebApi.Controllers.MallBase
{
{
MallBaseId
=
miniProgram
.
MallBaseId
,
MallBaseId
=
miniProgram
.
MallBaseId
,
TenantId
=
miniProgram
.
TenantId
,
TenantId
=
miniProgram
.
TenantId
,
},
isGetHome
:
false
,
isGetSchoolPage
:
true
);
},
isGetHome
:
false
,
isGetSchoolPage
:
true
);
}
}
//判断是否存在校园版首页
//判断是否存在校园版首页
if
(
selfHomePage
==
null
||(
selfHomePage
!=
null
&&
selfHomePage
.
Id
<=
0
))
if
(
selfHomePage
==
null
||
(
selfHomePage
!=
null
&&
selfHomePage
.
Id
<=
0
))
{
{
selfHomePage
=
miniprogramPageTemplModule
.
GetMiniprogramPageTemplModule
(
new
RB_Miniprogram_Page_Templ_Extend
()
selfHomePage
=
miniprogramPageTemplModule
.
GetMiniprogramPageTemplModule
(
new
RB_Miniprogram_Page_Templ_Extend
()
{
{
...
@@ -569,7 +569,8 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -569,7 +569,8 @@ namespace Mall.WebApi.Controllers.MallBase
is_foot_bar_status
=
(
miniProgram
.
IsShowFavorite
==
0
?
1
:
0
),
is_foot_bar_status
=
(
miniProgram
.
IsShowFavorite
==
0
?
1
:
0
),
//是否显示约课
//是否显示约课
is_point_status
=
miniProgram
.
PointStatus
,
is_point_status
=
miniProgram
.
PointStatus
,
is_ppenmiai
=
miniProgram
.
IsOpenMiAi
,
is_ppenmiai
=
miniProgram
.
IsOpenMiAi
,
is_activitystyle
=
miniProgram
.
ActivityStyle
==
0
?
1
:
miniProgram
.
ActivityStyle
,
//菜单样式
//菜单样式
menu_style
=
(
miniProgram
.
MenuNavStyle
==
0
?
1
:
2
),
menu_style
=
(
miniProgram
.
MenuNavStyle
==
0
?
1
:
2
),
//头像样式
//头像样式
...
@@ -602,12 +603,14 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -602,12 +603,14 @@ namespace Mall.WebApi.Controllers.MallBase
open_type
=
"navigate"
,
open_type
=
"navigate"
,
@params
=
""
,
@params
=
""
,
}),
}),
nar_menus
=
miniProgram
?.
NavMoreList
?.
Select
(
x
=>
new
{
nar_menus
=
miniProgram
?.
NavMoreList
?.
Select
(
x
=>
new
{
x
.
Sort
,
x
.
Sort
,
x
.
MenuNavTitle
,
x
.
MenuNavTitle
,
x
.
TitleStyle
,
x
.
TitleStyle
,
x
.
MenuNavStyle
,
x
.
MenuNavStyle
,
MeunList
=
x
.
MeunList
.
OrderBy
(
qitem
=>
qitem
.
PageSort
).
Select
(
qitem
=>
new
{
MeunList
=
x
.
MeunList
.
OrderBy
(
qitem
=>
qitem
.
PageSort
).
Select
(
qitem
=>
new
{
icon_url
=
qitem
.
MenuIcon
,
icon_url
=
qitem
.
MenuIcon
,
name
=
qitem
.
MenuName
,
name
=
qitem
.
MenuName
,
link_url
=
qitem
.
MenuUrl
.
Trim
(),
link_url
=
qitem
.
MenuUrl
.
Trim
(),
...
@@ -646,7 +649,7 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -646,7 +649,7 @@ namespace Mall.WebApi.Controllers.MallBase
{
{
pic_url
=
miniProgram
.
CopyRightImg
,
pic_url
=
miniProgram
.
CopyRightImg
,
description
=
miniProgram
.
CopyRightWord
,
description
=
miniProgram
.
CopyRightWord
,
link_url
=
!
string
.
IsNullOrWhiteSpace
(
miniProgram
.
CopyRightLink
)
?
miniProgram
.
CopyRightLink
.
Trim
():
""
,
link_url
=
!
string
.
IsNullOrWhiteSpace
(
miniProgram
.
CopyRightLink
)
?
miniProgram
.
CopyRightLink
.
Trim
()
:
""
,
}
}
}
}
};
};
...
@@ -771,8 +774,8 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -771,8 +774,8 @@ namespace Mall.WebApi.Controllers.MallBase
int
goodsId
=
parms
.
GetInt
(
"goodsId"
);
int
goodsId
=
parms
.
GetInt
(
"goodsId"
);
string
path
=
parms
.
GetStringValue
(
"path"
);
string
path
=
parms
.
GetStringValue
(
"path"
);
//HK 2020-09-22新增【是否开启校园版分享-(1-开启)】
//HK 2020-09-22新增【是否开启校园版分享-(1-开启)】
int
IsOpenSchool
=
parms
.
GetInt
(
"IsOpenSchool"
,
0
);
int
IsOpenSchool
=
parms
.
GetInt
(
"IsOpenSchool"
,
0
);
var
obj
=
productModule
.
GetAppletGoodsShareInfo
(
goodsId
,
RequestParm
.
UserId
,
path
,
(
miniProgram
?.
MallBaseId
??
0
),
IsOpenSchool
:
IsOpenSchool
);
var
obj
=
productModule
.
GetAppletGoodsShareInfo
(
goodsId
,
RequestParm
.
UserId
,
path
,
(
miniProgram
?.
MallBaseId
??
0
),
IsOpenSchool
:
IsOpenSchool
);
return
ApiResult
.
Success
(
data
:
obj
);
return
ApiResult
.
Success
(
data
:
obj
);
}
}
}
}
...
...
Mall.WebApi/Controllers/User/TenantController.cs
View file @
77124b0a
...
@@ -442,6 +442,20 @@ namespace Mall.WebApi.Controllers.User
...
@@ -442,6 +442,20 @@ namespace Mall.WebApi.Controllers.User
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
}
/// <summary>
/// 修改微信相亲小程序活动样式信息
/// </summary>
/// <returns></returns>
public
ApiResult
SetMiniProgramActivityStyleModule
()
{
var
extModel
=
JsonConvert
.
DeserializeObject
<
RB_MiniProgram_Extend
>(
RequestParm
.
msg
.
ToString
());
extModel
.
MallBaseId
=
RequestParm
.
MallBaseId
;
extModel
.
TenantId
=
RequestParm
.
TenantId
;
var
flag
=
programModule
.
SetMiniProgramActivityStyleModule
(
extModel
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// <summary>
/// 修改微信小程序分销订阅配置信息
/// 修改微信小程序分销订阅配置信息
/// </summary>
/// </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