后台管理系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1 lines
2.6 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-36e694d2"],{"1e39":function(e,n,t){"use strict";t.r(n);var i=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"seitchtheme_m"},[t("h5",[e._v("更换皮肤以查看不同皮肤的前端网站")]),t("div",[t("span",[e._v("更换皮肤:")]),t("el-select",{attrs:{placeholder:"请选择皮肤"},on:{change:e.selectbian},model:{value:e.skinvalue,callback:function(n){e.skinvalue=n},expression:"skinvalue"}},e._l(e.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("div",{staticClass:"Submit1"},[t("el-button",{attrs:{loading:e.skinloading,type:"primary"},on:{click:e.skinSubmit}},[e._v("提交")]),e.skinAsk?t("a",{staticClass:"to_front_web",attrs:{target:"_blank",href:e.skinLink}},[t("el-button",{attrs:{type:"success",round:""}},[e._v("查看 "+e._s(e.skinlabel)+" 站点")])],1):e._e()],1)],1)])},s=[],a=(t("d3b7"),t("159b"),t("9911"),t("c24f")),l=t("4a9d"),o={data:function(){return{options:[{value:"beauty",label:"图片站-美图",link:"/?"},{value:"googleimage",label:"图片站-默认",link:"/?"},{value:"manual",label:"文档站",link:"/?"},{value:"webdirectory",label:"导航站",link:"/?"},{value:"videoblog",label:"视频站",link:"/?"}],skinvalue:"",skinlabel:"",skinLink:"",skinAsk:!1,skinloading:!1,skinForm:{theme:""}}},created:function(){},methods:{skinSubmit:function(){var e=this,n=this;this.skinloading=!0,this.skinForm.theme=this.skinvalue,Object(a["k"])(this.skinForm).then((function(t){var i=t.data;1==i.code?(e.$store.dispatch("settings/thmename",e.skinlabel),n.$message({showClose:!0,message:i.msg,type:"success"}),e.skinAsk=!0,l["a"].$emit("mkdirSuccess")):n.$message({showClose:!0,message:i.err,type:"error"}),e.skinloading=!1})).catch((function(n){e.skinloading=!1,Object(a["i"])(e,n)}))},selectbian:function(e){var n=this;this.options.forEach((function(t){t.value==e&&(n.skinlabel=t.label,n.skinLink=t.link+Math.round(1e3*Math.random()))})),this.skinAsk=!1}}},r=o,u=(t("f892"),t("2877")),c=Object(u["a"])(r,i,s,!1,null,null,null);n["default"]=c.exports},"857a":function(e,n,t){var i=t("1d80"),s=/"/g;e.exports=function(e,n,t,a){var l=String(i(e)),o="<"+n;return""!==t&&(o+=" "+t+'="'+String(a).replace(s,"&quot;")+'"'),o+">"+l+"</"+n+">"}},9911:function(e,n,t){"use strict";var i=t("23e7"),s=t("857a"),a=t("af03");i({target:"String",proto:!0,forced:a("link")},{link:function(e){return s(this,"a","href",e)}})},af03:function(e,n,t){var i=t("d039");e.exports=function(e){return i((function(){var n=""[e]('"');return n!==n.toLowerCase()||n.split('"').length>3}))}},b564:function(e,n,t){},f892:function(e,n,t){"use strict";t("b564")}}]);