【新增】增加首页【弹窗广告】开关,通过后台【商城设置】【平台设置】【特殊开关】开启和关闭。

This commit is contained in:
大灰灰
2022-09-25 20:00:48 +08:00
parent 8dad2e8bad
commit 772a8cebf0
5 changed files with 26 additions and 3 deletions

View File

@@ -584,6 +584,11 @@ namespace CoreCms.Net.Configuration
/// </summary> /// </summary>
public const string ShowCalendar = "showCalendar"; public const string ShowCalendar = "showCalendar";
/// <summary>
/// 显示首页弹窗
/// </summary>
public const string ShowIndexPopupWindow = "showIndexPopupWindow";
//第三方接口============================================================================ //第三方接口============================================================================
/// <summary> /// <summary>

View File

@@ -58,6 +58,8 @@ namespace CoreCms.Net.Configuration
di.Add(SystemSettingConstVars.ShowSolitaire, new DictionaryKeyValues() { sKey = "显示接龙按钮", sValue = "2" }); di.Add(SystemSettingConstVars.ShowSolitaire, new DictionaryKeyValues() { sKey = "显示接龙按钮", sValue = "2" });
di.Add(SystemSettingConstVars.ShowCalendar, 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 = "核心,内容,管理,系统" }); di.Add(SystemSettingConstVars.RecommendKeys, new DictionaryKeyValues() { sKey = "搜索发现关键词", sValue = "核心,内容,管理,系统" });

View File

@@ -47,12 +47,16 @@
shareUrl: this.$globalConstVars.shareUrl, shareUrl: this.$globalConstVars.shareUrl,
isScorll: false, isScorll: false,
homeTitle: '', homeTitle: '',
modalShow: true, modalShow: false
}; };
}, },
updated() { updated() {
this.copy = true; this.copy = true;
}, },
mounted() {
console.log(this.$store.state.config.showIndexPopupWindow);
this.modalShow = this.$store.state.config.showIndexPopupWindow == 1;
},
computed: { computed: {
...mapState({ ...mapState({
hasLogin: state => state.hasLogin, hasLogin: state => state.hasLogin,

View File

@@ -66,10 +66,20 @@
<input type="radio" lay-filter="showStoreBalanceRechargeSwitch" name="showStoreBalanceRechargeSwitch" value="2" title="不开启" {{d.data.configs['showStoreBalanceRechargeSwitch']['sValue']==="2" ? 'checked':''}}> <input type="radio" lay-filter="showStoreBalanceRechargeSwitch" name="showStoreBalanceRechargeSwitch" value="2" title="不开启" {{d.data.configs['showStoreBalanceRechargeSwitch']['sValue']==="2" ? 'checked':''}}>
</div> </div>
</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 class="layui-elem-quote" style="padding-top: 20px;line-height: 30px;">
控制个人中心面板是否显示以下组件按钮 控制个人中心面板是否显示以下组件按钮
</blockquote> </blockquote>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">{{d.data.configs['showVas']['sKey']}}</label> <label class="layui-form-label">{{d.data.configs['showVas']['sKey']}}</label>
<div class="layui-input-inline layui-inline-7"> <div class="layui-input-inline layui-inline-7">

View File

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