webpackJsonp([68],{608:function(t,e,s){function i(t){s(855)}var a=s(66)(s(702),s(942),i,null,null);t.exports=a.exports},702:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s(228);e.default={data:function(){return{loading:!0,count:0,state:!1,imgPath:"",rootId:0,upobj:{type:"image",sessionKey:localStorage.getItem("sessionKey"),appId:this.$store.state.appId},giftInfo:{},friendLinkCtgList:[],rules:{}}},methods:{getMagicConfig:function(){var t=this;i.u().then(function(e){"100"==e.code?(t.loading=!1,t.giftInfo=e.body):(t.loading=!1,t.$message.error(e.message))}).catch(function(e){t.loading=!1,t.$message.error("网络异常")})},setChange:function(t){},updateGiftInfo:function(t){var e=this;this.$refs[t].validate(function(t){if(!t)return!1;var s=e.giftInfo;i.v(s).then(function(t){"100"==t.code?(e.$message.success("修改成功"),setTimeout(function(){e.$router.push({path:"/magiclist"})},1e3)):e.$message.error(t.message)}).catch(function(t){e.$message.error("修改失败")})})},back:function(){this.$router.push({path:"/magiclist",query:{noceStr:Math.round(10*Math.random())}})},resetForm:function(t){this.$refs[t].resetFields()}},created:function(){this.getMagicConfig()},watch:{$route:function(t,e){this.loading=!0,this.getMagicConfig()}}}},769:function(t,e,s){e=t.exports=s(570)(!1),e.push([t.i,"",""])},855:function(t,e,s){var i=s(769);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);s(571)("1ae34220",i,!0)},942:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"forum-module"},[s("div",{staticClass:"forum-header"},[s("span",{staticClass:"forum-name"},[t._v(t._s(t.$route.name))])]),t._v(" "),s("div",{directives:[{name:"loading",rawName:"v-loading.body",value:t.loading,expression:"loading",modifiers:{body:!0}}],staticClass:"table-body table-responsive"},[s("el-form",{ref:"topicInfo",attrs:{rules:t.rules,model:t.giftInfo}},[s("el-form-item",{staticClass:"form-group",attrs:{label:"是否打开道具中心"}},[s("el-col",{attrs:{span:1}},[s("el-switch",{attrs:{"on-text":"开启","off-text":"关闭"},model:{value:t.giftInfo.magicSwitch,callback:function(e){t.$set(t.giftInfo,"magicSwitch",e)},expression:"giftInfo.magicSwitch"}})],1)],1),t._v(" "),s("el-form-item",{staticClass:"form-group",attrs:{label:"道具回收价格折扣",prop:"name"}},[s("el-col",{attrs:{span:6}},[s("el-input",{model:{value:t.giftInfo.magicDiscount,callback:function(e){t.$set(t.giftInfo,"magicDiscount",e)},expression:"giftInfo.magicDiscount"}})],1),t._v(" "),s("el-col",{staticClass:"required",attrs:{span:1}},[t._v(" ")]),t._v(" "),s("el-col",{attrs:{span:6}},[t._v("\n                    设置道具系统回收价格折扣，此值为百分比，例如如果此值为 80，则系统将以道具原价 80% 的价格回收，建议不超过 100，有效防止刷积分。 0 表示不开启道具回收功能\n                ")])],1),t._v(" "),s("el-form-item",{staticClass:"form-group",attrs:{label:"抢沙发台词",prop:"name"}},[s("el-col",{attrs:{span:6}},[s("el-input",{model:{value:t.giftInfo.magicSofaLines,callback:function(e){t.$set(t.giftInfo,"magicSofaLines",e)},expression:"giftInfo.magicSofaLines"}})],1)],1)],1),t._v(" "),s("div",{staticClass:"margin-md"},[s("input",{staticClass:"bbs-submit",attrs:{type:"button",value:"提交"},on:{click:function(e){t.updateGiftInfo("topicInfo")}}}),t._v(" "),s("input",{staticClass:"bbs-reset",attrs:{type:"reset",value:"重置"}})])],1)])},staticRenderFns:[]}}});