(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0bce85"],{"2a77":function(t,a,e){"use strict";e.r(a);var n,o=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-container",[e("v-form",{directives:[{name:"loading",rawName:"v-loading",value:t.tload,expression:"tload"}],staticStyle:{"max-width":"600px",margin:"auto"}},[e("v-text-field",{attrs:{label:"多少积分可以兑换1元"},model:{value:t.formData.exchange,callback:function(a){t.$set(t.formData,"exchange",a)},expression:"formData.exchange"}}),e("v-text-field",{attrs:{label:"消费1元获得多少积分"},model:{value:t.formData.getInteral,callback:function(a){t.$set(t.formData,"getInteral",a)},expression:"formData.getInteral"}}),e("v-text-field",{attrs:{label:"最多可抵扣订单金额的百分之多少(填写<1的数值)"},model:{value:t.formData.max_exchange,callback:function(a){t.$set(t.formData,"max_exchange",a)},expression:"formData.max_exchange"}}),e("v-btn",{staticClass:"mt-3 dark",attrs:{loading:t.tload},on:{click:function(a){return t.submit()}}},[t._v("保存")])],1)],1)},i=[],l={props:{load:{type:Boolean,default:!1}},data:function(){return{formData:{exchange:"",getInteral:"",max_exchange:""},pageLoad:this.load,tload:!1}},watch:{load:function(t){t&&(this.pageLoad=t)},pageLoad:function(t){t&&this.getConfig()}},mounted:function(){n=this},methods:{getConfig:function(){n.tload=!0,this.$post("config/get",{config_key:"interal"},function(t){n.tload=!1,0==t.errno&&t.data.config_content&&(n.formData=JSON.parse(t.data.config_content))})},submit:function(){this.tload=!0,this.$post("config/update",{config_key:"interal",config_content:JSON.stringify(this.formData)},function(t){n.tload=!1,0===t.errno&&n.$message({showClose:!0,message:t.errmsg,type:"success"})})}}},c=l,s=e("6691"),r=Object(s["a"])(c,o,i,!1,null,null,null);a["default"]=r.exports}}]);
//# sourceMappingURL=chunk-2d0bce85.4936762c.js.map