(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0bd1a9"],{"2b25":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"app-form margin-top"},[i("div",{staticClass:"app-form-group"},[i("div",{staticClass:"app-form-ti"},[t._v("基础配置")]),i("form-generator",{ref:"basicForm",attrs:{"form-config":t.formConfig,"show-footer":!0,showCancel:!0,cancelText:"返回"},on:{submit:t.handleBasicSubmit,cancel:t.handleCancel},model:{value:t.formData,callback:function(e){t.formData=e},expression:"formData"}})],1)])])},n=[],o=i("7f70"),s=(i("e8d6"),i("8327")),r={name:"incentiveadConfigSet",data:function(){return{formData:{status:1}}},computed:Object(o["a"])(Object(o["a"])({},Object(s["b"])(["config"])),{},{formConfig:function(){var t=[{type:"radio",label:"状态",prop:"status",required:!0,width:"400px",tip:"此插件仅微信小程序端显示",options:[{label:"启用",value:1},{label:"禁用",value:0}]}];return 1==this.formData.status&&t.push({type:"input",label:"广告id",prop:"ad_id",required:!0,width:"400px"},{type:"integer",label:"广告展示次数",prop:"view_count",width:"400px"},{type:"integer",label:"奖励积分",prop:"reward_score",width:"400px"}),t}}),created:function(){this.init()},watch:{config:{handler:function(t){this.init()},deep:!0,immediate:!0}},methods:{init:function(){this.config.incentivead&&(this.formData=this.$util.restJson(this.config.incentivead))},handleBasicSubmit:function(t){var e=this;this.api.post("incentivead/config/set",t).then((function(t){1==t.code?(e.$util.success(t.message),e.$store.dispatch("settings/getSetting")):e.$util.error(t.message)}))},handleCancel:function(){this.$router.back()}}},c=r,l=i("3d7a"),p=Object(l["a"])(c,a,n,!1,null,"3f1f7bf6",null);e["default"]=p.exports}}]);