mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 20:03:26 +08:00
【新增】增加首页【弹窗广告】开关,通过后台【商城设置】【平台设置】【特殊开关】开启和关闭。
This commit is contained in:
@@ -584,6 +584,11 @@ namespace CoreCms.Net.Configuration
|
||||
/// </summary>
|
||||
public const string ShowCalendar = "showCalendar";
|
||||
|
||||
/// <summary>
|
||||
/// 显示首页弹窗
|
||||
/// </summary>
|
||||
public const string ShowIndexPopupWindow = "showIndexPopupWindow";
|
||||
|
||||
|
||||
//第三方接口============================================================================
|
||||
/// <summary>
|
||||
|
||||
@@ -58,6 +58,8 @@ namespace CoreCms.Net.Configuration
|
||||
di.Add(SystemSettingConstVars.ShowSolitaire, new DictionaryKeyValues() { sKey = "显示接龙按钮", sValue = "2" });
|
||||
di.Add(SystemSettingConstVars.ShowCalendar, new DictionaryKeyValues() { sKey = "显示签到按钮", sValue = "2" });
|
||||
|
||||
di.Add(SystemSettingConstVars.ShowIndexPopupWindow, new DictionaryKeyValues() { sKey = "显示首页弹窗", sValue = "2" });
|
||||
|
||||
|
||||
//搜索发现关键字
|
||||
di.Add(SystemSettingConstVars.RecommendKeys, new DictionaryKeyValues() { sKey = "搜索发现关键词", sValue = "核心,内容,管理,系统" });
|
||||
|
||||
@@ -47,12 +47,16 @@
|
||||
shareUrl: this.$globalConstVars.shareUrl,
|
||||
isScorll: false,
|
||||
homeTitle: '',
|
||||
modalShow: true,
|
||||
modalShow: false
|
||||
};
|
||||
},
|
||||
updated() {
|
||||
this.copy = true;
|
||||
},
|
||||
mounted() {
|
||||
console.log(this.$store.state.config.showIndexPopupWindow);
|
||||
this.modalShow = this.$store.state.config.showIndexPopupWindow == 1;
|
||||
},
|
||||
computed: {
|
||||
...mapState({
|
||||
hasLogin: state => state.hasLogin,
|
||||
|
||||
@@ -66,10 +66,20 @@
|
||||
<input type="radio" lay-filter="showStoreBalanceRechargeSwitch" name="showStoreBalanceRechargeSwitch" value="2" title="不开启" {{d.data.configs['showStoreBalanceRechargeSwitch']['sValue']==="2" ? 'checked':''}}>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<blockquote class="layui-elem-quote" style="padding-top: 20px;line-height: 30px;">
|
||||
控制首页是否弹出弹窗广告
|
||||
</blockquote>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">{{d.data.configs['showIndexPopupWindow']['sKey']}}:</label>
|
||||
<div class="layui-input-inline layui-inline-7">
|
||||
<input type="radio" lay-filter="showIndexPopupWindow" name="showIndexPopupWindow" value="1" title="开启" {{d.data.configs['showIndexPopupWindow']['sValue']==="1" ? 'checked':''}}>
|
||||
<input type="radio" lay-filter="showIndexPopupWindow" name="showIndexPopupWindow" value="2" title="不开启" {{d.data.configs['showIndexPopupWindow']['sValue']==="2" ? 'checked':''}}>
|
||||
</div>
|
||||
</div>
|
||||
<blockquote class="layui-elem-quote" style="padding-top: 20px;line-height: 30px;">
|
||||
控制个人中心面板是否显示以下组件按钮
|
||||
</blockquote>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">{{d.data.configs['showVas']['sKey']}}:</label>
|
||||
<div class="layui-input-inline layui-inline-7">
|
||||
|
||||
@@ -109,6 +109,7 @@ 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 imageMax = 5; //前端上传图片最多几张
|
||||
var storeSwitch = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.StoreSwitch).ObjectToInt(); //开启门店自提状态
|
||||
@@ -239,7 +240,8 @@ namespace CoreCms.Net.Web.WebApi.Controllers
|
||||
showSeckill,
|
||||
showGroupBuying,
|
||||
showSolitaire,
|
||||
showCalendar
|
||||
showCalendar,
|
||||
showIndexPopupWindow
|
||||
};
|
||||
jm.data = model;
|
||||
return jm;
|
||||
|
||||
Reference in New Issue
Block a user