| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6176e95e"],{"2b97":function(t,a,e){},"986f":function(t,a,e){"use strict";e.r(a);var r=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"article-create"},[e("TopTitle",{attrs:{showBack:!1}},[t._v(" 提现阈值配置 ")]),e("div",{staticClass:"form"},[e("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"140px",size:"small"}},[e("DetailBlock",{attrs:{title:"配置信息"}},[e("el-form-item",{attrs:{label:"自动打款金额",prop:"withdraw_auto_max"}},[e("el-input",{staticClass:"input-w",attrs:{placeholder:"请输入自动打款金额",oninput:"value=value.replace(/[^0-9]/g,'')"},model:{value:t.ruleForm.withdraw_auto_max,callback:function(a){t.$set(t.ruleForm,"withdraw_auto_max","string"===typeof a?a.trim():a)},expression:"ruleForm.withdraw_auto_max"}}),t._v(" (说明:提现金额小于这个阈值,程序会自动转账,请谨慎设置) ")],1),e("el-form-item",{staticClass:"is-required",attrs:{label:"提现订单提醒",prop:"withdraw_tip"}},[e("el-radio-group",{model:{value:t.ruleForm.withdraw_tip,callback:function(a){t.$set(t.ruleForm,"withdraw_tip",a)},expression:"ruleForm.withdraw_tip"}},[e("el-radio",{attrs:{label:"1"}},[t._v("开启提醒")]),e("el-radio",{attrs:{label:"2"}},[t._v("关闭提醒")])],1)],1)],1)],1)],1),e("div",{staticStyle:{padding:"20px 0px 20px 30px"}},[[e("el-button",{attrs:{type:"primary"},on:{click:function(a){return t.onSubmit()}}},[t._v("提交")])]],2)],1)},i=[],o=(e("d3b7"),e("25f0"),e("b8d9")),l=e("9ea4"),s=e("365c"),u=e("61f7"),n={name:"",components:{DetailBlock:o["a"],TopTitle:l["a"]},data:function(){return{ruleForm:{tag:"",withdraw_auto_max:"0",withdraw_tip:"0"},rules:{withdraw_auto_max:[{required:!0,message:"请输入自动打款金额"},{validator:u["d"],message:"请输入数字"}]}}},created:function(){this.getExitData({tag:"withdraw"})},methods:{getExitData:function(t){var a=this;Object(s["o"])(t).then((function(t){200===t.code?(a.ruleForm.withdraw_auto_max=t.data.withdraw_auto_max.toString(),a.ruleForm.withdraw_tip=t.data.withdraw_tip.toString()):a.$message.error(t.message)}))},onSubmit:function(){var t=this;this.$refs.ruleForm.validate((function(a){if(a){var e=JSON.parse(JSON.stringify(t.ruleForm));e.tag="withdraw",Object(s["p"])(e).then((function(a){200===a.code?t.$message.success("修改成功!"):t.$message.error(a.message)}))}}))}}},c=n,d=(e("9b45"),e("2877")),m=Object(d["a"])(c,r,i,!1,null,"0866ffbc",null);a["default"]=m.exports},"9b45":function(t,a,e){"use strict";var r=e("2b97"),i=e.n(r);i.a}}]);
|