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
04bdfa09
Commit
04bdfa09
authored
Aug 31, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
fa3bc33e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
2 deletions
+28
-2
RB_Custom_Form_Extend.cs
Mall.Model/Extend/TradePavilion/RB_Custom_Form_Extend.cs
+3
-0
CustomFormModule.cs
Mall.Module.TradePavilion/CustomFormModule.cs
+25
-2
No files found.
Mall.Model/Extend/TradePavilion/RB_Custom_Form_Extend.cs
View file @
04bdfa09
...
...
@@ -11,6 +11,9 @@ namespace Mall.Model.Extend.TradePavilion
/// </summary>
public
class
RB_Custom_Form_Extend
:
RB_Custom_Form
{
/// <summary>
/// 表单类型名称
/// </summary>
public
string
FormTypeStr
{
get
{
return
this
.
FormType
.
GetEnumName
();
}
}
/// <summary>
...
...
Mall.Module.TradePavilion/CustomFormModule.cs
View file @
04bdfa09
using
Mall.Model.Extend.TradePavilion
;
using
Mall.Repository.TradePavilion
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
VT.FW.AOP.CustomerAttribute
;
using
Mall.Common.Enum
;
using
VT.FW.DB
;
using
Newtonsoft.Json.Linq
;
using
Mall.Common.Plugin
;
using
System.Linq
;
namespace
Mall.Module.TradePavilion
{
...
...
@@ -44,6 +43,30 @@ namespace Mall.Module.TradePavilion
return
custom_FormRepository
.
GetCustomFormListRepository
(
query
);
}
/// <summary>
/// 小程序获取榜单表单
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
object
AppGetCustomFormModule
(
RB_Custom_Form_Extend
query
)
{
object
result
=
new
object
();
var
model
=
GetCustomFormListModule
(
query
)?.
FirstOrDefault
();
if
(
model
!=
null
)
{
var
dataList
=
AnalyzeFormComponent
(
model
.
FormData
,
isGetAnswer
:
false
);
result
=
new
{
model
.
Id
,
model
.
FormName
,
model
.
FormType
,
model
.
FormTypeStr
,
FormData
=
dataList
};
}
return
result
;
}
/// <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