(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7363ff86"],{"34d4":function(t,e,i){"use strict";i("8c105")},"526e":function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-content setting-coupon-wrap"},[i("el-form",{ref:"form",staticClass:"demo-form",attrs:{model:t.form,rules:t.rules,"label-width":"140px"}},[i("el-form-item",{attrs:{label:"是否启用",prop:"name"}},[i("el-switch",{attrs:{"active-value":"1","inactive-value":"0"},model:{value:t.form.switch,callback:function(e){t.$set(t.form,"switch",e)},expression:"form.switch"}})],1),i("el-form-item",{attrs:{label:"新客户送",prop:"name"}},[i("div",{staticClass:"flex-center flex-wrap"},[i("el-input",{staticStyle:{width:"60px"},model:{value:t.form.amount,callback:function(e){t.$set(t.form,"amount",e)},expression:"form.amount"}}),i("div",{staticClass:"prompt-text"},[t._v("元优惠券，满")]),i("el-input",{staticStyle:{width:"60px"},model:{value:t.form.miniCost,callback:function(e){t.$set(t.form,"miniCost",e)},expression:"form.miniCost"}}),i("div",{staticClass:"prompt-text"},[t._v("元可用，领取后")]),i("el-input",{staticStyle:{width:"60px"},model:{value:t.form.duration,callback:function(e){t.$set(t.form,"duration",e)},expression:"form.duration"}}),i("div",{staticClass:"prompt-text"},[t._v("天内有效。")])],1)]),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("form")}}},[t._v("保存")])],1)],1)],1)},s=[],n=(i("7d55"),i("f597"),i("5502"),{name:"setting-freight",data:function(){return{form:{switch:1,amount:0,miniCost:0,duration:0},rules:{}}},mounted:function(){this.init()},methods:{init:function(){var t=this;this.$service.coupon.assetDet().then((function(e){t.$util.isEmpty(e)||Object.keys(t.form).forEach((function(i,o){t.form[i]=e[i]}))}))},_updateFn:function(){var t=this;this.$service.coupon.assetUpdate(this.form).then((function(e){t.$store.dispatch("shopInfo"),t.$message.success("更新成功！")}))},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return console.log("error submit!!"),!1;e._updateFn()}))},resetForm:function(t){this.$refs[t].resetFields()}}}),r=n,a=(i("34d4"),i("5d22")),c=Object(a["a"])(r,o,s,!1,null,"57ce9292",null);e["default"]=c.exports},"8c105":function(t,e,i){}}]);