(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-273864ed"],{"53f5":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.c)({type:this.type}).then(t=>{this.resData=t.data})},templateSet(t){Object(a.d)({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()}},c=(s("efbc"),s("2877")),o=Object(c.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=o.exports},"6b2d":function(t,e,s){"use strict";var a=s("0613"),i=s("bc3a"),n=s.n(i),r=s("d70b"),c=s("afbc"),o=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",{}),c.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(o.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 c}));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),c=t=>a.a.post("/template/setPc",t)},"896a":function(t,e,s){},efbc:function(t,e,s){"use strict";s("896a")}}]);