(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-28e41170"],{"6b2d":function(e,t,a){"use strict";var r=a("0613"),l=a("bc3a"),i=a.n(l),s=a("d70b"),o=a("afbc"),m=a("5c96"),n=a("6ddb");const d={baseURL:s.a.baseURL+"/adminapi",headers:{"content-type":"application/json"}},c=(Object(n.g)(()=>(r.a.commit("setToken",""),r.a.commit("setUserInfo",{}),r.a.commit("setPermission",{}),o.b.push("/account/login"),Promise.reject())),i.a.create(d));c.interceptors.request.use(e=>{const t=r.a.getters.token;return t&&(e.headers.token=t),e.headers.version=s.a.version,e},e=>Promise.reject(e)),c.interceptors.response.use(e=>e.data,e=>(Object(m.Message)({type:"error",message:"系统错误，请稍候再试"}),Promise.reject(e))),t.a=c},"7ef7":function(e,t,a){"use strict";a.r(t);var r=a("6b2d");var l={data:()=>({form:{red_open:0,red_pay_mode:0,red_mode:"",red_fee:5,red_day_phone_limit:0,red_day_ID_limit:0,red_day_IP_limit:0,red_receive_allow_ip:""}}),methods:{setRedPacket(){var e;(e=this.form,r.a.post("/ArticleRed/set",e)).then(e=>{1==e.code?this.$message.success("保存成功!"):this.$message.error("保存失败!"),this.loadAllData()})},loadAllData(){var e;r.a.get("/ArticleRed/list",{params:e}).then(e=>{this.form=e.data})}},mounted(){this.loadAllData()}},i=a("2877"),s=Object(i.a)(l,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"ls-card m-t-16"},[a("div",{staticClass:"card-title"},[e._v("帖子红包设置")]),a("div",{staticClass:"card-content m-t-24"},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"160px"}},[a("el-form-item",{attrs:{label:"帖子红包开关:"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭"},model:{value:e.form.red_open,callback:function(t){e.$set(e.form,"red_open",t)},expression:"form.red_open"}})],1),a("el-form-item",{attrs:{label:"付费模式:"}},[a("el-radio-group",{model:{value:e.form.red_pay_mode,callback:function(t){e.$set(e.form,"red_pay_mode",t)},expression:"form.red_pay_mode"}},[a("el-radio",{attrs:{label:0}},[e._v("积分")]),a("el-radio",{attrs:{label:1}},[e._v("余额")])],1),a("span",{staticStyle:{"margin-left":"20px"}})],1),a("el-form-item",{attrs:{label:"【基础】红包规格:"}},[a("el-input",{staticStyle:{width:"280px"},attrs:{rows:"6",type:"textarea"},model:{value:e.form.red_mode,callback:function(t){e.$set(e.form,"red_mode",t)},expression:"form.red_mode"}}),a("span",{staticStyle:{"margin-left":"20px"}},[e._v("请设置红包模式,格式:金额=个数，如: 1=10 3=20 10=100")])],1),a("el-form-item",{attrs:{label:"红包手续费:"}},[a("el-input",{model:{value:e.form.red_fee,callback:function(t){e.$set(e.form,"red_fee",t)},expression:"form.red_fee"}}),a("span",{staticStyle:{"margin-left":"20px"}},[e._v("0-99 发红包时，站长自动抽取此比例的手续费。")])],1),a("el-form-item",{attrs:{label:"【红包】手机号每天限制:"}},[a("el-input",{model:{value:e.form.red_day_phone_limit,callback:function(t){e.$set(e.form,"red_day_phone_limit",t)},expression:"form.red_day_phone_limit"}}),a("span",{staticStyle:{"margin-left":"20px"}},[e._v("每天每个帐号最多可以获得的红包个数，填0不限制。开启此项之前，请开启抢红包绑定手机")])],1),a("el-form-item",{attrs:{label:"【红包】同ID每天限制:"}},[a("el-input",{model:{value:e.form.red_day_ID_limit,callback:function(t){e.$set(e.form,"red_day_ID_limit",t)},expression:"form.red_day_ID_limit"}}),a("span",{staticStyle:{"margin-left":"20px"}},[e._v("每天每个帐号最多可以获得的红包个数，填0不限制。")])],1),a("el-form-item",{attrs:{label:"【红包】同IP每天限制:"}},[a("el-input",{model:{value:e.form.red_day_IP_limit,callback:function(t){e.$set(e.form,"red_day_IP_limit",t)},expression:"form.red_day_IP_limit"}}),a("span",{staticStyle:{"margin-left":"20px"}},[e._v("每天每个ip地址最多可以获得的红包个数，填0不限制。")])],1),a("el-form-item",{attrs:{label:"【红包】允许领取红包IP:"}},[a("el-input",{model:{value:e.form.red_receive_allow_ip,callback:function(t){e.$set(e.form,"red_receive_allow_ip",t)},expression:"form.red_receive_allow_ip"}}),a("span",{staticStyle:{"margin-left":"20px"}},[e._v("请填写省或城市名称，如:广东省,广东,北京市,北京;多个请用英文逗号隔开")])],1)],1)],1)]),a("div",{staticClass:"bg-white ls-fixed-footer"},[a("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[a("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$router.go(-1)}}},[e._v("取消")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.setRedPacket}},[e._v("保存")])],1)])])}),[],!1,null,null,null);t.default=s.exports}}]);