(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e97fb"],{"8e91":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-form margin-top levelEdit"},[a("el-form",{ref:"dataForm",attrs:{rules:t.rules,model:t.form,"label-position":"right","label-width":"200px"}},[a("div",{staticClass:"app-form-group"},[a("div",{staticClass:"app-form-ti"},[t._v("基本设置")]),a("div",{staticClass:"padding-top-lg"},[a("el-form-item",{attrs:{label:"单页名称",prop:"name"}},[a("el-input",{staticClass:"form-input",model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"单页图片",prop:"thumb"}},[a("uploadImage",{attrs:{modal:!0},model:{value:t.form.thumb,callback:function(e){t.$set(t.form,"thumb",e)},expression:"form.thumb"}})],1),a("el-form-item",{attrs:{label:"跳转链接",prop:"link"}},[a("div",{staticClass:"form-input"},[a("clink",{model:{value:t.form.link,callback:function(e){t.$set(t.form,"link",e)},expression:"form.link"}})],1)]),a("el-form-item",{attrs:{label:"弹出次数",prop:"tanchu"}},[a("el-input",{staticClass:"form-input",attrs:{type:"text"},model:{value:t.form.tanchu,callback:function(e){t.$set(t.form,"tanchu",t._n(e))},expression:"form.tanchu"}},[a("template",{slot:"append"},[t._v("次")])],2),a("el-alert",{attrs:{title:"弹出次数：每个用户的弹出次数，0为不限制。",type:"error"}})],1),a("el-form-item",{attrs:{label:"排序",prop:"sort"}},[a("el-input",{staticClass:"form-input",model:{value:t.form.sort,callback:function(e){t.$set(t.form,"sort",t._n(e))},expression:"form.sort"}})],1),a("el-form-item",{attrs:{label:"仅公众号展示"}},[a("el-radio-group",{model:{value:t.form.is_gzh_show,callback:function(e){t.$set(t.form,"is_gzh_show",e)},expression:"form.is_gzh_show"}},[a("el-radio",{attrs:{label:1}},[t._v("是")]),a("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1),a("el-form-item",{attrs:{label:"状态"}},[a("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[a("el-radio",{attrs:{label:1}},[t._v("正常")]),a("el-radio",{attrs:{label:0}},[t._v("禁用")])],1)],1)],1)]),a("div",{staticClass:"padding-xl flex justify-center"},[a("el-button",{on:{click:t.onBack}},[t._v("返回")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit()}}},[t._v("提交")])],1)])],1)])},s=[],i=a("7f70"),l=a("8327"),r=a("c7f0"),n=a("ab8f"),m={name:"ApopupPost",components:{uploadImage:r["a"],clink:n["a"]},data:function(){return{activeIndex:"1",levels:[],isDialog:!1,rules:{},form:{name:"",link:{url:"",name:"",type:""},thumb:"",status:1,tanchu:"",width:80,is_gzh_show:0,sort:""},user_list:[]}},computed:Object(i["a"])({},Object(l["b"])(["config"])),created:function(){this.$route.params.id&&(this.id=this.$route.params.id),this.init()},methods:{onBack:function(){this.$router.go(-1)},handleSelect:function(t,e){this.activeIndex=t},init:function(){var t=this;this.api.get("apopup/index/detail",{id:this.id}).then((function(e){1==e.code&&(t.form=e.data,t.form)}))},submit:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&t.api.post("apopup/index/post",t.form).then((function(e){1==e.code?(t.$util.success(e.message),t.onBack()):t.$util.error(e.message)}))}))}}},u=m,c=a("3d7a"),p=Object(c["a"])(u,o,s,!1,null,null,null);e["default"]=p.exports}}]);