321
This commit is contained in:
parent
c87c47bda5
commit
09ee9bdaea
|
|
@ -26,6 +26,11 @@ namespace CoreCms.Net.Configuration
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string ShopDesc = "shopDesc";
|
public const string ShopDesc = "shopDesc";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 首页公告栏
|
||||||
|
/// </summary>
|
||||||
|
public const string HomeAnnouncement = "homeAnnouncement";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 平台地址
|
/// 平台地址
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -461,6 +466,31 @@ namespace CoreCms.Net.Configuration
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string ShareDesc = "shareDesc";
|
public const string ShareDesc = "shareDesc";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 首页弹窗是否启用
|
||||||
|
/// </summary>
|
||||||
|
public const string PopupEnabled = "popupEnabled";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 首页弹窗图片
|
||||||
|
/// </summary>
|
||||||
|
public const string PopupImage = "popupImage";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 首页悬浮球是否启用
|
||||||
|
/// </summary>
|
||||||
|
public const string FloatEnabled = "floatEnabled";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 首页悬浮球图片
|
||||||
|
/// </summary>
|
||||||
|
public const string FloatImage = "floatImage";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 首页悬浮球弹窗图片
|
||||||
|
/// </summary>
|
||||||
|
public const string FloatPopupImage = "floatPopupImage";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 关于我们文章
|
/// 关于我们文章
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ namespace CoreCms.Net.Configuration
|
||||||
//平台设置
|
//平台设置
|
||||||
di.Add(SystemSettingConstVars.ShopName, new DictionaryKeyValues() { sKey = "平台名称", sValue = "核心内容管理系统" });
|
di.Add(SystemSettingConstVars.ShopName, new DictionaryKeyValues() { sKey = "平台名称", sValue = "核心内容管理系统" });
|
||||||
di.Add(SystemSettingConstVars.ShopDesc, new DictionaryKeyValues() { sKey = "平台描述", sValue = "平台描述会展示在前台及微信分享描述" });
|
di.Add(SystemSettingConstVars.ShopDesc, new DictionaryKeyValues() { sKey = "平台描述", sValue = "平台描述会展示在前台及微信分享描述" });
|
||||||
|
di.Add(SystemSettingConstVars.HomeAnnouncement, new DictionaryKeyValues() { sKey = "首页公告栏", sValue = "" });
|
||||||
di.Add(SystemSettingConstVars.ShopAddress, new DictionaryKeyValues() { sKey = "平台地址", sValue = "我的平台地址" });
|
di.Add(SystemSettingConstVars.ShopAddress, new DictionaryKeyValues() { sKey = "平台地址", sValue = "我的平台地址" });
|
||||||
di.Add(SystemSettingConstVars.ShopBeiAn, new DictionaryKeyValues() { sKey = "备案信息", sValue = "网站备案信息" });
|
di.Add(SystemSettingConstVars.ShopBeiAn, new DictionaryKeyValues() { sKey = "备案信息", sValue = "网站备案信息" });
|
||||||
di.Add(SystemSettingConstVars.ShopLogo, new DictionaryKeyValues() { sKey = "平台logo", sValue = "" });
|
di.Add(SystemSettingConstVars.ShopLogo, new DictionaryKeyValues() { sKey = "平台logo", sValue = "" });
|
||||||
|
|
@ -55,6 +56,13 @@ namespace CoreCms.Net.Configuration
|
||||||
di.Add(SystemSettingConstVars.ShareImage, new DictionaryKeyValues() { sKey = "分享图片", sValue = "" });
|
di.Add(SystemSettingConstVars.ShareImage, new DictionaryKeyValues() { sKey = "分享图片", sValue = "" });
|
||||||
di.Add(SystemSettingConstVars.ShareTitle, new DictionaryKeyValues() { sKey = "分享标题", sValue = "优质好店邀您共享" });
|
di.Add(SystemSettingConstVars.ShareTitle, new DictionaryKeyValues() { sKey = "分享标题", sValue = "优质好店邀您共享" });
|
||||||
di.Add(SystemSettingConstVars.ShareDesc, new DictionaryKeyValues() { sKey = "分享描述", sValue = "" });
|
di.Add(SystemSettingConstVars.ShareDesc, new DictionaryKeyValues() { sKey = "分享描述", sValue = "" });
|
||||||
|
//首页弹窗设置
|
||||||
|
di.Add(SystemSettingConstVars.PopupEnabled, new DictionaryKeyValues() { sKey = "首页弹窗启用", sValue = "0" });
|
||||||
|
di.Add(SystemSettingConstVars.PopupImage, new DictionaryKeyValues() { sKey = "首页弹窗图片", sValue = "" });
|
||||||
|
//首页悬浮球设置
|
||||||
|
di.Add(SystemSettingConstVars.FloatEnabled, new DictionaryKeyValues() { sKey = "首页悬浮球启用", sValue = "0" });
|
||||||
|
di.Add(SystemSettingConstVars.FloatImage, new DictionaryKeyValues() { sKey = "首页悬浮球图片", sValue = "" });
|
||||||
|
di.Add(SystemSettingConstVars.FloatPopupImage, new DictionaryKeyValues() { sKey = "首页悬浮球弹窗图片", sValue = "" });
|
||||||
//会员设置
|
//会员设置
|
||||||
di.Add(SystemSettingConstVars.ShopMobile, new DictionaryKeyValues() { sKey = "商家手机号", sValue = "" });
|
di.Add(SystemSettingConstVars.ShopMobile, new DictionaryKeyValues() { sKey = "商家手机号", sValue = "" });
|
||||||
//1绑定,2不绑定-第三方的登陆的时候,是否需要绑定手机号码,强烈建议用户开启,除非只在微信小程序内使用
|
//1绑定,2不绑定-第三方的登陆的时候,是否需要绑定手机号码,强烈建议用户开启,除非只在微信小程序内使用
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,8 @@
|
||||||
|
|
||||||
<li lay-id="platform">平台设置</li>
|
<li lay-id="platform">平台设置</li>
|
||||||
<li lay-id="share">分享设置</li>
|
<li lay-id="share">分享设置</li>
|
||||||
|
<li lay-id="popup">首页弹窗配置</li>
|
||||||
|
<li lay-id="float">首页悬浮球配置</li>
|
||||||
<li lay-id="users">会员设置</li>
|
<li lay-id="users">会员设置</li>
|
||||||
|
|
||||||
<li lay-id="cash">提现设置</li>
|
<li lay-id="cash">提现设置</li>
|
||||||
|
|
@ -87,6 +89,13 @@
|
||||||
<textarea name="shopDesc" class="layui-textarea">{{d.data.configs['shopDesc']['sValue']}}</textarea>
|
<textarea name="shopDesc" class="layui-textarea">{{d.data.configs['shopDesc']['sValue']}}</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">{{d.data.configs['homeAnnouncement']['sKey']}}:</label>
|
||||||
|
<div class="layui-input-inline layui-inline-5" style="margin-bottom: 10px">
|
||||||
|
<textarea name="homeAnnouncement" class="layui-textarea" placeholder="请输入首页公告栏内容">{{d.data.configs['homeAnnouncement']['sValue']}}</textarea>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-mid layui-word-aux">首页公告栏内容,可为空</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<label class="layui-form-label">{{d.data.configs['shopLogo']['sKey']}}:</label>
|
<label class="layui-form-label">{{d.data.configs['shopLogo']['sKey']}}:</label>
|
||||||
|
|
@ -205,6 +214,84 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="layui-tab-item">
|
||||||
|
<div class="layui-form coreshop-form">
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">{{d.data.configs['popupEnabled']['sKey']}}:</label>
|
||||||
|
<div class="layui-input-inline layui-inline-4">
|
||||||
|
<input type="radio" name="popupEnabled" value="1" title="启用" {{d.data.configs['popupEnabled']['sValue']==="1" ? 'checked':''}}>
|
||||||
|
<input type="radio" name="popupEnabled" value="0" title="不启用" {{d.data.configs['popupEnabled']['sValue']==="0" ? 'checked':''}}>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-mid layui-word-aux">是否在首页显示弹窗广告</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">{{d.data.configs['popupImage']['sKey']}}:</label>
|
||||||
|
<div class="layui-input-inline layui-inline-6">
|
||||||
|
<input type="hidden" name="popupImage" id="popupImage" value="{{d.data.configs['popupImage']['sValue']}}" lay-verify="title" autocomplete="off" placeholder="" class="layui-input">
|
||||||
|
<div class="layui-upload">
|
||||||
|
<button type="button" class="layui-btn" id="upPopupImageBtn">上传图片</button>
|
||||||
|
<div class="layui-upload-list">
|
||||||
|
<img class="layui-upload-img" id="viewPopupImgBox" src="{{d.data.configs['popupImage']['sValue'] ? d.data.configs['popupImage']['sValue']:'/static/images/common/empty.png'}}">
|
||||||
|
<p id="viewPopupTextBox"></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-mid layui-word-aux">首页弹窗显示的图片</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label"> </label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<button class="layui-btn" lay-submit="" lay-filter="save">保存更改</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-tab-item">
|
||||||
|
<div class="layui-form coreshop-form">
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">{{d.data.configs['floatEnabled']['sKey']}}:</label>
|
||||||
|
<div class="layui-input-inline layui-inline-4">
|
||||||
|
<input type="radio" name="floatEnabled" value="1" title="启用" {{d.data.configs['floatEnabled']['sValue']==="1" ? 'checked':''}}>
|
||||||
|
<input type="radio" name="floatEnabled" value="0" title="不启用" {{d.data.configs['floatEnabled']['sValue']==="0" ? 'checked':''}}>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-mid layui-word-aux">是否在首页显示悬浮球</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">{{d.data.configs['floatImage']['sKey']}}:</label>
|
||||||
|
<div class="layui-input-inline layui-inline-6">
|
||||||
|
<input type="hidden" name="floatImage" id="floatImage" value="{{d.data.configs['floatImage']['sValue']}}" lay-verify="title" autocomplete="off" placeholder="" class="layui-input">
|
||||||
|
<div class="layui-upload">
|
||||||
|
<button type="button" class="layui-btn" id="upFloatImageBtn">上传图片</button>
|
||||||
|
<div class="layui-upload-list">
|
||||||
|
<img class="layui-upload-img" id="viewFloatImgBox" src="{{d.data.configs['floatImage']['sValue'] ? d.data.configs['floatImage']['sValue']:'/static/images/common/empty.png'}}">
|
||||||
|
<p id="viewFloatTextBox"></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-mid layui-word-aux">首页悬浮球显示的图片</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">{{d.data.configs['floatPopupImage']['sKey']}}:</label>
|
||||||
|
<div class="layui-input-inline layui-inline-6">
|
||||||
|
<input type="hidden" name="floatPopupImage" id="floatPopupImage" value="{{d.data.configs['floatPopupImage']['sValue']}}" lay-verify="title" autocomplete="off" placeholder="" class="layui-input">
|
||||||
|
<div class="layui-upload">
|
||||||
|
<button type="button" class="layui-btn" id="upFloatPopupImageBtn">上传图片</button>
|
||||||
|
<div class="layui-upload-list">
|
||||||
|
<img class="layui-upload-img" id="viewFloatPopupImgBox" src="{{d.data.configs['floatPopupImage']['sValue'] ? d.data.configs['floatPopupImage']['sValue']:'/static/images/common/empty.png'}}">
|
||||||
|
<p id="viewFloatPopupTextBox"></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-mid layui-word-aux">点击悬浮球后显示的弹窗图片</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label"> </label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<button class="layui-btn" lay-submit="" lay-filter="save">保存更改</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="layui-tab-item">
|
<div class="layui-tab-item">
|
||||||
<div class="layui-form coreshop-form">
|
<div class="layui-form coreshop-form">
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
|
|
@ -552,6 +639,69 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
//弹窗图片
|
||||||
|
$('#upPopupImageBtn').click(function () {
|
||||||
|
cropperImg.cropImg({
|
||||||
|
aspectRatio: 1 / 1,
|
||||||
|
imgSrc: $('#viewPopupImgBox').attr('src'),
|
||||||
|
onCrop: function (data) {
|
||||||
|
var loadIndex = layer.load(2);
|
||||||
|
coreHelper.Post("api/Tools/UploadFilesFByBase64", { base64: data }, function (res) {
|
||||||
|
if (0 === res.code) {
|
||||||
|
$('#viewPopupImgBox').attr('src', res.data.fileUrl);
|
||||||
|
$("#popupImage").val(res.data.fileUrl);
|
||||||
|
layer.msg(res.msg);
|
||||||
|
layer.close(loadIndex);
|
||||||
|
} else {
|
||||||
|
layer.close(loadIndex);
|
||||||
|
layer.msg(res.msg, { icon: 2, anim: 6 });
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
//悬浮球图片
|
||||||
|
$('#upFloatImageBtn').click(function () {
|
||||||
|
cropperImg.cropImg({
|
||||||
|
aspectRatio: 1 / 1,
|
||||||
|
imgSrc: $('#viewFloatImgBox').attr('src'),
|
||||||
|
onCrop: function (data) {
|
||||||
|
var loadIndex = layer.load(2);
|
||||||
|
coreHelper.Post("api/Tools/UploadFilesFByBase64", { base64: data }, function (res) {
|
||||||
|
if (0 === res.code) {
|
||||||
|
$('#viewFloatImgBox').attr('src', res.data.fileUrl);
|
||||||
|
$("#floatImage").val(res.data.fileUrl);
|
||||||
|
layer.msg(res.msg);
|
||||||
|
layer.close(loadIndex);
|
||||||
|
} else {
|
||||||
|
layer.close(loadIndex);
|
||||||
|
layer.msg(res.msg, { icon: 2, anim: 6 });
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
//悬浮球弹窗图片
|
||||||
|
$('#upFloatPopupImageBtn').click(function () {
|
||||||
|
cropperImg.cropImg({
|
||||||
|
aspectRatio: 1 / 1,
|
||||||
|
imgSrc: $('#viewFloatPopupImgBox').attr('src'),
|
||||||
|
onCrop: function (data) {
|
||||||
|
var loadIndex = layer.load(2);
|
||||||
|
coreHelper.Post("api/Tools/UploadFilesFByBase64", { base64: data }, function (res) {
|
||||||
|
if (0 === res.code) {
|
||||||
|
$('#viewFloatPopupImgBox').attr('src', res.data.fileUrl);
|
||||||
|
$("#floatPopupImage").val(res.data.fileUrl);
|
||||||
|
layer.msg(res.msg);
|
||||||
|
layer.close(loadIndex);
|
||||||
|
} else {
|
||||||
|
layer.close(loadIndex);
|
||||||
|
layer.msg(res.msg, { icon: 2, anim: 6 });
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
//退货区域显示处理
|
//退货区域显示处理
|
||||||
var reshipAreaId = 0;
|
var reshipAreaId = 0;
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@ namespace CoreCms.Net.Web.WebApi.Controllers
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 返回配置数据文件V2.0===============================================================
|
#region 返回配置数据文件==============================================================
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 返回配置数据文件V2.0
|
/// 返回配置数据文件V2.0
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -130,6 +130,24 @@ namespace CoreCms.Net.Web.WebApi.Controllers
|
||||||
//var entId = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.EntId); //客服ID
|
//var entId = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.EntId); //客服ID
|
||||||
var userAgreementId = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.UserAgreementId).ObjectToInt(3); //用户协议
|
var userAgreementId = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.UserAgreementId).ObjectToInt(3); //用户协议
|
||||||
var privacyPolicyId = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.PrivacyPolicyId).ObjectToInt(4); //隐私政策
|
var privacyPolicyId = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.PrivacyPolicyId).ObjectToInt(4); //隐私政策
|
||||||
|
|
||||||
|
//首页公告栏
|
||||||
|
var homeAnnouncement = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.HomeAnnouncement);
|
||||||
|
|
||||||
|
//首页弹窗配置
|
||||||
|
var popupConfig = new
|
||||||
|
{
|
||||||
|
enabled = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.PopupEnabled).ObjectToInt(0) == 1,
|
||||||
|
image = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.PopupImage)
|
||||||
|
};
|
||||||
|
|
||||||
|
//首页悬浮球配置
|
||||||
|
var floatConfig = new
|
||||||
|
{
|
||||||
|
enabled = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.FloatEnabled).ObjectToInt(0) == 1,
|
||||||
|
image = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.FloatImage),
|
||||||
|
popupImage = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.FloatPopupImage)
|
||||||
|
};
|
||||||
List<object> templateList = new List<object>();
|
List<object> templateList = new List<object>();
|
||||||
var template = await _coreCmsUserWeChatMsgTemplateServices.GetListAsync();
|
var template = await _coreCmsUserWeChatMsgTemplateServices.GetListAsync();
|
||||||
if (template != null)
|
if (template != null)
|
||||||
|
|
@ -172,6 +190,9 @@ namespace CoreCms.Net.Web.WebApi.Controllers
|
||||||
aboutArticleId,
|
aboutArticleId,
|
||||||
userAgreementId,
|
userAgreementId,
|
||||||
privacyPolicyId,
|
privacyPolicyId,
|
||||||
|
homeAnnouncement,
|
||||||
|
popupConfig,
|
||||||
|
floatConfig,
|
||||||
playingMethodOptions = options,
|
playingMethodOptions = options,
|
||||||
subscribeMessage = templateList
|
subscribeMessage = templateList
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user