【新增】前端个人中心增加【万能表单】入口,并可以通过后台开启或关闭。

This commit is contained in:
JianWeie
2022-10-13 16:28:22 +08:00
parent 13a416ac2c
commit d8fc647ccb
9 changed files with 169 additions and 6 deletions

View File

@@ -109,7 +109,8 @@ namespace CoreCms.Net.Web.WebApi.Controllers
var showGroupBuying = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.ShowGroupBuying).ObjectToInt(2); //显示团购按钮
var showSolitaire = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.ShowSolitaire).ObjectToInt(2); //显示接龙按钮
var showCalendar = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.ShowCalendar).ObjectToInt(2); //显示签到按钮
var showIndexPopupWindow = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.ShowIndexPopupWindow).ObjectToInt(2); //显示签到按钮
var showIndexPopupWindow = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.ShowIndexPopupWindow).ObjectToInt(2); //显示首页弹窗
var showCustomForm = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.ShowCustomForm).ObjectToInt(2); //显示自定义表单按钮
var imageMax = 5; //前端上传图片最多几张
var storeSwitch = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.StoreSwitch).ObjectToInt(); //开启门店自提状态
@@ -241,7 +242,8 @@ namespace CoreCms.Net.Web.WebApi.Controllers
showGroupBuying,
showSolitaire,
showCalendar,
showIndexPopupWindow
showIndexPopupWindow,
showCustomForm
};
jm.data = model;
return jm;

View File

@@ -42,6 +42,26 @@ namespace CoreCms.Net.Web.WebApi.Controllers
}
#region
/// <summary>
/// 获取表单列表
/// </summary>
/// <returns></returns>
[HttpPost]
public async Task<WebApiCallBack> GetList([FromBody] FMPageByIntId entity)
{
var jm = new WebApiCallBack();
var list = await _formServices.QueryPageAsync(p => p.endDateTime >= DateTime.Now, p => p.sort, OrderByType.Desc, entity.page, entity.limit);
jm.status = true;
jm.data = list;
return jm;
}
#endregion
#region /=============================================================================
/// <summary>
/// 万能表单/获取活动商品详情
@@ -56,7 +76,6 @@ namespace CoreCms.Net.Web.WebApi.Controllers
}
#endregion
#region /=============================================================================
/// <summary>
/// 万能表单/提交表单