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
1 lines
2.6 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6082a362"],{"1e39":function(e,n,t){"use strict";t.r(n);var s=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)])},a=[],i=(t("d3b7"),t("159b"),t("9911"),t("c24f")),l=t("4a9d"),o={data:function(){return{options:[{value:"manual",label:"文档站",link:"/"},{value:"webdirectory",label:"导航站",link:"/"},{value:"googleimage",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(i["k"])(this.skinForm).then((function(t){var s=t.data;1==s.code?(n.$message({showClose:!0,message:s.msg,type:"success"}),e.skinAsk=!0,l["a"].$emit("mkdirSuccess")):n.$message({showClose:!0,message:s.err,type:"error"}),e.skinloading=!1})).catch((function(t){e.skinloading=!1,t.response||t.request,n.$message({showClose:!0,message:t.response.data.err,type:"error"})}))},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("a7af"),t("2877")),c=Object(u["a"])(r,s,a,!1,null,null,null);n["default"]=c.exports},"665a":function(e,n,t){},"857a":function(e,n,t){var s=t("1d80"),a=/"/g;e.exports=function(e,n,t,i){var l=String(s(e)),o="<"+n;return""!==t&&(o+=" "+t+'="'+String(i).replace(a,""")+'"'),o+">"+l+"</"+n+">"}},9911:function(e,n,t){"use strict";var s=t("23e7"),a=t("857a"),i=t("af03");s({target:"String",proto:!0,forced:i("link")},{link:function(e){return a(this,"a","href",e)}})},a7af:function(e,n,t){"use strict";t("665a")},af03:function(e,n,t){var s=t("d039");e.exports=function(e){return s((function(){var n=""[e]('"');return n!==n.toLowerCase()||n.split('"').length>3}))}}}]); |