(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-36c752dc"],{"6b2d":function(t,e,a){"use strict";var n=a("0613"),s=a("bc3a"),r=a.n(s),o=a("d70b"),u=a("afbc"),l=a("5c96"),i=a("6ddb");const c={baseURL:o.a.baseURL+"/adminapi",headers:{"content-type":"application/json"}},d=(Object(i.g)(()=>(n.a.commit("setToken",""),n.a.commit("setUserInfo",{}),n.a.commit("setPermission",{}),u.b.push("/account/login"),Promise.reject())),r.a.create(c));d.interceptors.request.use(t=>{const e=n.a.getters.token;return e&&(t.headers.token=e),t.headers.version=o.a.version,t},t=>Promise.reject(t)),d.interceptors.response.use(t=>t.data,t=>(Object(l.Message)({type:"error",message:"系统错误，请稍候再试"}),Promise.reject(t))),e.a=d},"797f":function(t,e,a){"use strict";a.d(e,"i",(function(){return s})),a.d(e,"h",(function(){return r})),a.d(e,"g",(function(){return o})),a.d(e,"j",(function(){return u})),a.d(e,"f",(function(){return l})),a.d(e,"n",(function(){return i})),a.d(e,"m",(function(){return c})),a.d(e,"o",(function(){return d})),a.d(e,"k",(function(){return p})),a.d(e,"l",(function(){return b})),a.d(e,"d",(function(){return h})),a.d(e,"c",(function(){return m})),a.d(e,"e",(function(){return f})),a.d(e,"b",(function(){return g})),a.d(e,"a",(function(){return v}));var n=a("6b2d");const s=t=>n.a.get("/banner/list",{params:t}),r=t=>n.a.get("/banner/detail",{params:t}),o=t=>n.a.get("/banner/del",{params:t}),u=t=>n.a.post("/banner/update",t),l=t=>n.a.post("/banner/create",t),i=t=>n.a.get("/nav/list",{params:t}),c=t=>n.a.get("/nav/detail",{params:t}),d=t=>n.a.post("/nav/update",t),p=t=>n.a.post("/nav/create",t),b=t=>n.a.get("/nav/del",{params:t}),h=t=>n.a.get("/appBottomMenu/list",{params:t}),m=t=>n.a.get("/appBottomMenu/details",{params:t}),f=t=>n.a.post("/appBottomMenu/update",t),g=t=>n.a.get("/AppBottomMenu/del",{params:t}),v=t=>n.a.post("/appBottomMenu/create",t)},cab3:function(t,e,a){"use strict";a.r(e);var n=a("797f"),s={data:()=>({table:{currentPage:1,pageSizes:[10],total:0,data:null},chooseID:"",types:[{label:"首页按钮",value:"index_tab"},{label:"首页图片",value:"index_image"},{label:"发布页",value:"send"}]}),methods:{handleSizeChange(t){},handleCurrentChange(t){},getData(){Object(n.d)({location:this.chooseID}).then(t=>{this.table.total=t.data.length,this.table.data=t.data;for(var e=0;e<this.table.data.length;e++)"web"==this.table.data[e].type&&(this.table.data[e].type="网页"),"app"==this.table.data[e].type&&(this.table.data[e].type="程序");for(e=0;e<t.data.length;e++)t.data[e].status=1==t.data[e].status;if(""!=this.chooseID){var a=[];for(e=0;e<t.data.length;e++)t.data[e].location==this.chooseID&&a.push(t.data[e]);this.table.data=a}})},updateStatus(t,e){Object(n.e)({id:t,status:1==e})},jumpEdit(t){this.$router.push({path:"/label/bottomMenu/edit",query:{id:t}})},checkType:t=>"index_image"==t?"图片":"index_tab"==t?"按钮":void 0,del(t){this.$confirm("此操作将永久删除该内容, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Object(n.b)({id:t}).then(t=>{this.$message({type:"success",message:"删除成功!"}),this.getData()})}).catch(()=>{})},change(){this.getData()},jumpAdd(){this.$router.push({path:"/label/bottomMenu/add",query:{}})}},mounted(){this.getData()}},r=a("2877"),o=Object(r.a)(s,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{},[a("div",{staticClass:"ls-card m-b-12"},[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.jumpAdd}},[t._v("新建")])],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:null==t.table.data?[]:t.table.data}},[a("el-table-column",{attrs:{prop:"id",label:"ID",width:"80"}}),a("el-table-column",{attrs:{prop:"name",label:"标题"}}),a("el-table-column",{attrs:{label:"未选择时图片"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("el-image",{staticStyle:{width:"80px",height:"80px"},attrs:{src:t.row.icon}})]}}])}),a("el-table-column",{attrs:{label:"选择时图片"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("el-image",{staticStyle:{width:"80px",height:"80px"},attrs:{src:t.row.icon_selected}})]}}])}),a("el-table-column",{attrs:{prop:"path",label:"跳转路径"}}),a("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{on:{change:function(a){return t.updateStatus(e.row.id,e.row.status)}},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}})]}}])}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.jumpEdit(e.row.id)}}},[t._v("编辑")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.del(e.row.id)}}},[t._v("删除")])]}}])})],1)],1)}),[],!1,null,null,null);e.default=o.exports}}]);