(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2d0e2915"],{"7ef7":function(e,t,a){"use strict";a.r(t);var l=a("6b2d");var r={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,l.a.post("/ArticleRed/set",e)).then(e=>{1==e.code?(this.$message.success("保存成功!"),this.loadAllData()):this.$message.error("保存失败!")})},loadAllData(){var e;l.a.get("/ArticleRed/list",{params:e}).then(e=>{this.form=e.data})}},mounted(){this.loadAllData()}},i=a("2877"),o=Object(i.a)(r,(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_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)],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=o.exports}}]);