(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-22a1bee5"],{"21f4":function(t,e,s){"use strict";s.r(e);var a=s("78bf"),i=s("b6c4"),n=s("d70b"),r={data:()=>({resData:[],imgHost:"",type:null,baseUrl:n.a.baseURL}),methods:{getTemplateList(){Object(a.a)({type:this.type}).then(t=>{this.resData=t.data})},templateSet(t){Object(a.b)({code:t}).then(t=>{this.$message("设置成功"),this.getTemplateList()})},getImageHost(){Object(i.f)().then(t=>{this.imgHost=""})}},created(){var t=window.location.href.split("/");this.type=t[t.length-1],this.getImageHost(),this.getTemplateList()}},o=(s("4ed6"),s("2877")),c=Object(o.a)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"ls-card m-t-16"},[s("el-row",t._l(t.resData.list,(function(e,a){return s("el-col",{key:"resData.list"+a,staticStyle:{display:"flex"},attrs:{span:5,offset:a>0?1:0}},[s("el-card",{staticStyle:{width:"300px"},attrs:{"body-style":{padding:"0px"}}},[s("img",{staticClass:"image",attrs:{src:t.baseUrl+e.logo}}),s("div",{staticStyle:{padding:"14px"}},[s("p",{staticStyle:{"text-align":"center"}},[t._v(t._s(e.title))]),s("p",{staticStyle:{"text-align":"center"}},[t._v("当前版本："+t._s(e.current_version)+" 最新版本："+t._s(e.new_version))]),s("div",{staticClass:"bottom "},[t.resData.select!=e.code?s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(s){return t.templateSet(e.code)}}},[t._v("启用")]):t._e(),t.resData.select==e.code?s("el-button",{attrs:{type:"info",size:"mini"}},[t._v("已选择")]):t._e(),t.resData.select==e.code&&e.current_version<e.new_version?s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(s){return t.templateSet(e.code)}}},[t._v("更新")]):t._e(),t.resData.select==e.code&&e.current_version>=e.new_version?s("el-button",{attrs:{type:"info",size:"mini"}},[t._v("更新")]):t._e()],1)])])],1)})),1)],1)])}),[],!1,null,null,null);e.default=c.exports},"4ed6":function(t,e,s){"use strict";s("bebd")},"6b2d":function(t,e,s){"use strict";var a=s("0613"),i=s("bc3a"),n=s.n(i),r=s("d70b"),o=s("afbc"),c=s("5c96"),l=s("6ddb");const p={baseURL:r.a.baseURL+"/adminapi",headers:{"content-type":"application/json"}},d=(Object(l.g)(()=>(a.a.commit("setToken",""),a.a.commit("setUserInfo",{}),a.a.commit("setPermission",{}),o.b.push("/account/login"),Promise.reject())),n.a.create(p));d.interceptors.request.use(t=>{const e=a.a.getters.token;return e&&(t.headers.token=e),t.headers.version=r.a.version,t},t=>Promise.reject(t)),d.interceptors.response.use(t=>t.data,t=>(Object(c.Message)({type:"error",message:"系统错误，请稍候再试"}),Promise.reject(t))),e.a=d},"78bf":function(t,e,s){"use strict";s.d(e,"a",(function(){return i})),s.d(e,"b",(function(){return n})),s.d(e,"c",(function(){return r})),s.d(e,"d",(function(){return o}));var a=s("6b2d");const i=t=>a.a.post("/template/listMobile",t),n=t=>a.a.post("/template/setMobile",t),r=t=>a.a.post("/template/listPc",t),o=t=>a.a.post("/template/setPc",t)},bebd:function(t,e,s){}}]);