1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f72a2ff4"],{"8ba2":function(t,e,a){"use strict";a("94fb")},"94fb":function(t,e,a){},e45e:function(t,e,a){"use strict";a.r(e);a("72dd"),a("edc0");var r=function(){var t=this,e=t._self._c;return e("a-card",{attrs:{bordered:!1}},[e("div",{staticClass:"card-title"},[e("span"),t._v("用户行为指标")]),e("a-form",{attrs:{form:t.form},on:{submit:t.handleSubmit}},[e("a-form-item",{staticClass:"t",attrs:{label:""}},[e("span",[t._v("实付金额:用户购买商品每实付 1 元,增加")]),e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["num",{initialValue:t.growth_value,rules:[{required:!0,message:""}]}],expression:"[ 'num', { initialValue: growth_value , rules: [{ required: true, message: '' }] }]"}],staticClass:"input",on:{change:function(t){t.target.value=t.target.value.replace(/[^\d]|^[0]/g,"")}}}),e("span",[t._v("一个成长值")])],1),e("a-form-item",[e("a-button",{attrs:{type:"primary","html-type":"submit"}},[t._v("提交生效")])],1)],1)],1)},n=[],u=(a("9f29"),a("9b73"),a("b775")),i={growthValue:"/setting/update",getGrowthValue:"/setting/detail"};function o(t){return Object(u["b"])({url:i.growthValue,method:"post",data:t})}function s(t){return Object(u["b"])({url:i.getGrowthValue,method:"get",params:t})}var l={components:{},data:function(){return{isLoading:!1,form:this.$form.createForm(this),growth_value:""}},created:function(){this.getDetail()},methods:{getDetail:function(){var t=this;s({key:"member_growth"}).then((function(e){e.data&&e.data.values&&e.data.values.growth_value&&(t.growth_value=e.data.values.growth_value)})).finally((function(t){}))},onFormSubmitAdd:function(t){var e=this,a={key:"member_growth",form:{growth_value:t.num}};o(a).then((function(t){e.$message.success("提交成功",1.5)})).finally((function(t){}))},handleSubmit:function(t){t.preventDefault();var e=this.form.validateFields,a=this.onFormSubmitAdd;e((function(t,e){!t&&a(e)}))}}},c=l,d=(a("8ba2"),a("829d")),m=Object(d["a"])(c,r,n,!1,null,"468a4f3c",null);e["default"]=m.exports}}]);
|