Commit 04bdfa09 authored by 黄奎's avatar 黄奎

页面修改

parent fa3bc33e
......@@ -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>
......
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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment