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.
crmeb_php/public/system/js/chunk-40ac8ef2.cf49b3e8.js

1 line
9.7 KiB

12 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-40ac8ef2"],{"01fcf":function(t,e,n){t.exports=n.p+"system/img/purple1.fbcbebbf.jpg"},"02b9":function(t,e,n){t.exports=n.p+"system/img/red3.2f0fb16d.jpg"},"17b5":function(t,e,n){t.exports=n.p+"system/img/orange3.26e08e67.jpg"},1857:function(t,e,n){t.exports=n.p+"system/img/orange2.909b59be.jpg"},"37ca":function(t,e,n){t.exports=n.p+"system/img/blue2.3e7bbfad.jpg"},3968:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"divBox"},[r("el-card",{staticClass:"box-card"},[r("el-form",{ref:"form",staticClass:"demo-promoterForm",attrs:{model:t.form}},[r("el-form-item",{attrs:{label:"选择配色方案:"}},[r("el-radio-group",{on:{change:t.changeColor},model:{value:t.form.global_theme,callback:function(e){t.$set(t.form,"global_theme",e)},expression:"form.global_theme"}},[r("el-radio",{staticClass:"box red",attrs:{label:"default",border:""}},[t._v("中国红"),r("img",{staticClass:"iconfont bgred",attrs:{src:n("7d17"),alt:""}})]),t._v(" "),r("el-radio",{staticClass:"box orange",attrs:{label:"orange",border:""}},[t._v("阳光橙"),r("img",{staticClass:"iconfont bgorange",attrs:{src:n("7d17"),alt:""}})]),t._v(" "),r("el-radio",{staticClass:"box pink",attrs:{label:"pink",border:""}},[t._v("浪漫粉"),r("img",{staticClass:"iconfont bgpink",attrs:{src:n("7d17"),alt:""}})]),t._v(" "),r("el-radio",{staticClass:"box green",attrs:{label:"green",border:""}},[t._v("生鲜绿"),r("img",{staticClass:"iconfont bggreen",attrs:{src:n("7d17"),alt:""}})]),t._v(" "),r("el-radio",{staticClass:"box blue",attrs:{label:"blue",border:""}},[t._v("科技蓝"),r("img",{staticClass:"iconfont bgblue",attrs:{src:n("7d17"),alt:""}})]),t._v(" "),r("el-radio",{staticClass:"box purple",attrs:{label:"purple",border:""}},[t._v("梦幻紫"),r("img",{staticClass:"iconfont bgpurple",attrs:{src:n("7d17"),alt:""}})])],1)],1),t._v(" "),r("el-form-item",{attrs:{label:"当前风格:"}},[r("div",{staticClass:"styleBox"},t._l(t.picList,(function(t,e){return r("div",{key:e,staticClass:"pictrue"},[r("img",{attrs:{src:t.image}})])})),0)]),t._v(" "),r("el-form-item",[r("div",{staticClass:"save"},[r("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("保存")]),t._v(" "),r("el-button",{on:{click:t.reset}},[t._v("重置")])],1)])],1)],1)],1)},i=[],o=n("90e7"),c={name:"themeStyle",data:function(){return{picList:[],picListRed:[{image:n("02b9")},{image:n("88f8")},{image:n("b388")}],picListBule:[{image:n("9e1d")},{image:n("ad3a")},{image:n("37ca")}],picListGreen:[{image:n("e145")},{image:n("bb8c")},{image:n("754d")}],picListOrange:[{image:n("17b5")},{image:n("4b83")},{image:n("1857")}],picListPurple:[{image:n("9071")},{image:n("01fcf")},{image:n("66c5")}],picListPink:[{image:n("3aac")},{image:n("3bdb")},{image:n("9eb2")}],form:{global_theme:"default"}}},created:function(){this.getInfo(),this.picList=this.picListRed},methods:{getInfo:function(){var t=this;Object(o["t"])().then((function(e){t.form.global_theme=e.data.global_theme,t.changeColor(e.data.global_theme||"default")})).catch((function(e){t.$message.error(e)}))},reset:function(){var t=this;this.form.global_theme="default",Object(o["R"])(this.form).then((function(e){t.getInfo(),t.$message.success(e)})).catch((function(e){t.$message.error(e)}))},submitForm:function(){var t=this;Object(o["R"])(this.form).then((function(e){t.getInfo(),t.$message.success(e)})).catch((function(e){t.$message.error(e)}))},changeColor:function(t){switch(t){case"blue":this.picList=this.picListBule;break;case"green":this.picList=this.picListGreen;break;case"default":this.picList=this.picListRed;break;case"pink":this.picList=this.picListPink;break;case"orange":this.picList=this.picListOrange;break;case"purple":this.picList=this.picListPurple;break;default:break}}}},s=c,a=(n("bc7b"),n("2877")),u=Object(a["a"])(s,r,i,!1,null,"58788263",null);e["default"]=u.exports},"39bc":function(t,e,n){},"3aac":function(t,e,n){t.exports=n.p+"system/img/pink3.04ff0258.jpg"},"3bdb":function(t,e,n){t.exports=n.p+"sys