(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-74c58364"],{7705:function(e,t,r){"use strict";var i=r("df50"),l=r.n(i);l.a},b17e:function(e,t,r){"use strict";r.r(t);var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-content reward-set-wrap"},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"150px"}},[r("el-form-item",{attrs:{label:"开启状态",prop:"name"}},[r("el-switch",{attrs:{"active-value":"1","inactive-value":"0"},model:{value:e.ruleForm.switch,callback:function(t){e.$set(e.ruleForm,"switch",t)},expression:"ruleForm.switch"}})],1),r("el-form-item",{attrs:{label:"邀请成功下单奖励",prop:"resource"}},[r("el-input",{model:{value:e.ruleForm.prize,callback:function(t){e.$set(e.ruleForm,"prize",t)},expression:"ruleForm.prize"}})],1),r("el-form-item",{attrs:{label:"新人可领取",prop:"name"}},[r("div",{staticClass:"flex-center flex-wrap"},[r("el-input",{staticStyle:{width:"150px"},model:{value:e.ruleForm.amount,callback:function(t){e.$set(e.ruleForm,"amount",t)},expression:"ruleForm.amount"}}),r("div",{staticClass:"prompt-text"},[e._v("元优惠券，满")]),r("el-input",{staticStyle:{width:"150px"},model:{value:e.ruleForm.miniCost,callback:function(t){e.$set(e.ruleForm,"miniCost",t)},expression:"ruleForm.miniCost"}}),r("div",{staticClass:"prompt-text"},[e._v("元可以使用，领取后")]),r("el-input",{staticStyle:{width:"150px"},model:{value:e.ruleForm.duration,callback:function(t){e.$set(e.ruleForm,"duration",t)},expression:"ruleForm.duration"}}),r("div",{staticClass:"prompt-text"},[e._v("天内有效。")])],1)]),r("el-form-item",[r("div",{staticClass:"app-color-3"},[e._v(" 提示：奖励额度可以比新人领券高一此，这样可以吸引老客户邀请新人，新人也更愿意到店消费。 ")])]),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)},l=[],s=(r("fdc1"),r("4f5b"),r("b287"),{name:"reward-set",data:function(){return{ruleForm:{switch:"0",prize:"",amount:"",miniCost:"",duration:""},rules:{}}},created:function(){this._getDet()},methods:{_getDet:function(){var e=this;this.$service.invite.assetDetail().then((function(t){e.$util.isEmpty(t)||Object.keys(e.ruleForm).forEach((function(r,i){e.ruleForm[r]=t[r]}))}))},submitForm:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return console.log("error submit!!"),!1;t.$service.invite.assetDetail(t.ruleForm).then((function(e){t.$message.success("设置成功!")}))}))},resetForm:function(e){this.$refs[e].resetFields()}}}),o=s,n=(r("7705"),r("5511")),a=Object(n["a"])(o,i,l,!1,null,null,null);t["default"]=a.exports},df50:function(e,t,r){}}]);