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
fe47a71b
Commit
fe47a71b
authored
Oct 22, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sdzq' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
into sdzq-ld
parents
c9c28358
b6a6624a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
5 deletions
+54
-5
RB_Miniprogram_Template_Extend.cs
.../Extend/MarketingCenter/RB_Miniprogram_Template_Extend.cs
+6
-0
AppletSchoolController.cs
Mall.WebApi/Controllers/Education/AppletSchoolController.cs
+37
-0
MallHelper.cs
Mall.WebApi/Controllers/Mall/MallHelper.cs
+11
-5
No files found.
Mall.Model/Extend/MarketingCenter/RB_Miniprogram_Template_Extend.cs
View file @
fe47a71b
...
@@ -2368,6 +2368,12 @@ namespace Mall.Model.Extend.MarketingCenter
...
@@ -2368,6 +2368,12 @@ namespace Mall.Model.Extend.MarketingCenter
public
string
lableName
{
get
;
set
;
}
public
string
lableName
{
get
;
set
;
}
/// <summary>
/// 副标题
/// </summary>
public
List
<
string
>
lableNameList
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 商品图片
/// 商品图片
/// </summary>
/// </summary>
...
...
Mall.WebApi/Controllers/Education/AppletSchoolController.cs
View file @
fe47a71b
...
@@ -13,6 +13,7 @@ using Mall.Model.Extend.User;
...
@@ -13,6 +13,7 @@ using Mall.Model.Extend.User;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
Newtonsoft.Json.Linq
;
using
Newtonsoft.Json.Linq
;
using
Mall.Common.Plugin
;
using
Mall.Common.Plugin
;
using
Google.Protobuf.WellKnownTypes
;
namespace
Mall.WebApi.Controllers.Education
namespace
Mall.WebApi.Controllers.Education
{
{
...
@@ -448,6 +449,42 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -448,6 +449,42 @@ namespace Mall.WebApi.Controllers.Education
return
ApiResult
.
Success
(
""
,
new
{
teacherResult
,
goodsResult
});
return
ApiResult
.
Success
(
""
,
new
{
teacherResult
,
goodsResult
});
}
}
/// <summary>
/// 小程序分页列表(赞羊)
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetTeacherGoodsList
(
object
requestMsg
)
{
var
parms
=
JsonConvert
.
DeserializeObject
<
RequestParm
>(
requestMsg
.
ToString
());
if
(
parms
.
MallBaseId
<=
0
)
{
return
ApiResult
.
ParamIsNull
();
}
ResultPageModel
pagelist
=
JsonConvert
.
DeserializeObject
<
ResultPageModel
>(
parms
.
msg
.
ToString
());
RB_Goods_Extend
demodel
=
JsonConvert
.
DeserializeObject
<
RB_Goods_Extend
>(
parms
.
msg
.
ToString
());
demodel
.
TenantId
=
parms
.
TenantId
;
demodel
.
MallBaseId
=
parms
.
MallBaseId
;
if
(
demodel
.
TeacherId
<=
0
)
{
return
ApiResult
.
Failed
(
"老师编号不能为0"
);
}
var
list
=
educationModule
.
GetListByTeacherId
(
pagelist
.
pageIndex
,
pagelist
.
pageSize
,
out
long
count
,
demodel
);
pagelist
.
count
=
Convert
.
ToInt32
(
count
);
pagelist
.
pageData
=
list
.
Select
(
x
=>
new
{
x
.
CoverImage
,
x
.
Name
,
x
.
CourseNum
,
x
.
Id
});
return
ApiResult
.
Success
(
""
,
pagelist
);
}
#
endregion
#
endregion
}
}
}
}
\ No newline at end of file
Mall.WebApi/Controllers/Mall/MallHelper.cs
View file @
fe47a71b
...
@@ -781,6 +781,10 @@ namespace Mall.WebApi.Controllers
...
@@ -781,6 +781,10 @@ namespace Mall.WebApi.Controllers
lastItem
.
name
=
tempGood
.
Name
;
lastItem
.
name
=
tempGood
.
Name
;
lastItem
.
lableName
=
tempGood
.
LableName
;
lastItem
.
lableName
=
tempGood
.
LableName
;
lastItem
.
picUrl
=
tempGood
.
ArticlePic
;
lastItem
.
picUrl
=
tempGood
.
ArticlePic
;
if
(!
string
.
IsNullOrWhiteSpace
(
lastItem
.
lableName
))
{
lastItem
.
lableNameList
=
JsonConvert
.
DeserializeObject
<
List
<
string
>>(
lastItem
.
lableName
);
}
newGoodsList
.
Add
(
lastItem
);
newGoodsList
.
Add
(
lastItem
);
}
}
}
}
...
@@ -796,7 +800,7 @@ namespace Mall.WebApi.Controllers
...
@@ -796,7 +800,7 @@ namespace Mall.WebApi.Controllers
TenantId
=
TenantId
,
TenantId
=
TenantId
,
MallBaseId
=
MallBaseId
,
MallBaseId
=
MallBaseId
,
ArticleStatus
=
1
,
ArticleStatus
=
1
,
OrderBy
=
1
OrderBy
=
1
});
});
if
(
articleList
!=
null
&&
articleList
.
Count
>
0
)
if
(
articleList
!=
null
&&
articleList
.
Count
>
0
)
{
{
...
@@ -807,8 +811,10 @@ namespace Mall.WebApi.Controllers
...
@@ -807,8 +811,10 @@ namespace Mall.WebApi.Controllers
id
=
gItem
.
ID
,
id
=
gItem
.
ID
,
name
=
gItem
.
Name
,
name
=
gItem
.
Name
,
lableName
=
gItem
.
LableName
,
lableName
=
gItem
.
LableName
,
picUrl
=
gItem
.
ArticlePic
picUrl
=
gItem
.
ArticlePic
,
});
lableNameList
=
string
.
IsNullOrWhiteSpace
(
gItem
.
LableName
)
?
new
List
<
string
>()
:
JsonConvert
.
DeserializeObject
<
List
<
string
>>(
gItem
.
LableName
)
});
;
}
}
}
}
}
}
...
@@ -1997,7 +2003,7 @@ namespace Mall.WebApi.Controllers
...
@@ -1997,7 +2003,7 @@ namespace Mall.WebApi.Controllers
resultMallShopStyle
=
new
ResultMallShopStyle
()
{
main
=
"#ff4544"
,
secondary
=
"#ffdada"
,
IsEducation
=
0
};
resultMallShopStyle
=
new
ResultMallShopStyle
()
{
main
=
"#ff4544"
,
secondary
=
"#ffdada"
,
IsEducation
=
0
};
break
;
break
;
case
MallShopStyleEnum
.
Education
:
case
MallShopStyleEnum
.
Education
:
resultMallShopStyle
=
new
ResultMallShopStyle
()
{
main
=
"#00d6a6"
,
secondary
=
"#ffc86d"
,
IsEducation
=
1
};
resultMallShopStyle
=
new
ResultMallShopStyle
()
{
main
=
"#00d6a6"
,
secondary
=
"#ffc86d"
,
IsEducation
=
1
};
break
;
break
;
}
}
mallStyle
=
new
mallStyle
=
new
...
@@ -2285,7 +2291,7 @@ namespace Mall.WebApi.Controllers
...
@@ -2285,7 +2291,7 @@ namespace Mall.WebApi.Controllers
/// <summary>
/// <summary>
/// 0-商品,1-是
/// 0-商品,1-是
/// </summary>
/// </summary>
public
int
IsEducation
{
get
;
set
;
}
public
int
IsEducation
{
get
;
set
;
}
}
}
...
...
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