1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e5bc0c6c"],{"2e2a":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAS5SURBVHgB1ZpNTBtHFMffzK7tePlQEkKTgClESVw1KZIlKrVGTUpLVDUtqFIPXMu511zba2+9tteeKpWeKiBppRAREmo1gRREiApFDU2guAGjBOM1tndmss/RErDX9qyNP/KTvOvdebOa/8zbmTczS8ABv9xeb/BwrZ4lWQOUAcWtRPUkS35+qTEim4cUMhidjLcDJ52CiyYQ3AOVgNAEB7KmUFj+9MKhxbymuRJ+nYidZJz0CBBlqW1ZCJAoKHQ6lxBbAdcm9SBLiU6oIRQgc5d7tFDm/SwBVyfi73PO34AahFK68MlF78199/ZejNyIddVq4REs27VxPbj33q6A639sNZlXXVDjMBCd+H5a17sCEnH1I3hFYORlRacFoKJq9zZOEAxarFZIC0ix2vX7XKQ46cCzigdKFGwBcML838y/8Yz4UimhuVxEP9tOZluaifQIWipmzXeYpxAZui/c2oY+KJsxvC6abt9jg7E4+DPTjh6GUNd5ZbhSQvQn2g+0cVNvks2Ahb9xh12xKzyy+RSC42b61rbQoAKoR6MN1EmGqXnel0pBXsGYfmeOfwgVwONtqKcsqUj1Plj7kaeiW8Z2bV30QiWIJzzSLbC6ztpkbTkHbekRl7YvBWkBySTxggMSKWf2xSItoPkYWQEHtB0HR/bFIi3gjI8+phR0Gds6jSw01hMp21Jx1AudeV0ZkrELnCM/Q4VwJCAYIKHWE8pwPpt2Hx3C1oIKoTq0h0vvkpGlFTo79xfv29bBjz0OutbhRpg9d1a9frq1Mr5v4VgAgjVs/r6HGsCRC9UiNSNg6ZHRhhEuOKQoFzpI9ke3AmYXjcipVjIcDCghmfxVbQG76BaDwcVlMfjbhDEg84yqCsgX3YY3ofenq6mvC4XmVRMQmmHBQtHtTpL4Rm6yr/4zWyqXTVUEYK0+XBX9MrbYQrfuGl/mSq+KgNA9VnBitBdsCWwxu7SieyHs8v5ZFd1ucxTufFMZk50HT9w1etG/wSH/b4iAecrqmYoSMDxuDOL817oOT7Je32sw0tut5o2TQn8a3Q9XQap3yURPgO0EybELYfe2t/AWK0+g78dR4xu7wQh9HvMt/gtfQJGoxD6UV8HrSUBKLnQf+93oz9f86NdT8+IKDkaaBx573RCJxqEtngAfBn1QAlTNnl8obhZVE/HotltVCj5g+oERwFoGCVDIM/zBwXHsiJi1u0+NEw3RAnnTI+aDpeKb/yDwdygzmfe2wlqEDrxFkultnBxYw32pLlAKuOKX2cthmQcGSDL9EpuH5VyZZRazyonLBRFcrsy8zwVbw3NaAKFiOdcDtmKiaivXONN7J6B+ZzfGuBS6kLbBw8cX69YEe6Eok5bjdAyqwCG3WOnuUr+1m6Ki+2CZ8f/uQOZyKVMGh6z4pOdtOhZuJzPoSjFdtO0koWwrbljj9Ros+k8pY+dPk5z7wwoV49b/fbuUuIGGe1BQgHzRYbHUeyEutZakwHTfhbpp6/KV32a13+iWbIlKIsyN7n6ZjW6L0Vs7fmC8qxY+NUCft17a7PQCoBDCoYODOFnJjz0IJxEK8fuXPziynNcUHICb4UbCDKHK+LlNgurbn73XXDC8sXgOkdYWBuX7PgUAAAAASUVORK5CYII="},"2fef":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mainBox"},[this.$store.state.template.stepStatus?a("div",{staticClass:"layerBox"},[a("tableTitle",{attrs:{name:t.templateStepTitle}}),a("step",{attrs:{activeNumber:1}})],1):t._e(),a("el-form",{ref:"form",staticClass:"login-form",attrs:{model:t.form,rules:t.loginRules,autocomplete:"on","label-position":"left","label-width":"120px"}},[a("div",{staticClass:"layerBox"},[a("tableTitle",{attrs:{name:t.templateBaseTitle}}),a("div",{staticClass:"formDiv"},[a("el-form-item",{staticClass:"custom-align-right",attrs:{label:"常规模板类型:","label-width":t.formLabelWidth,prop:"role_id"}},[a("div",{staticClass:"formLabelFloatBox"},[a("el-checkbox-group",{model:{value:t.form.template_base_type,callback:function(e){t.$set(t.form,"template_base_type",e)},expression:"form.template_base_type"}},[a("el-checkbox",{attrs:{label:"1",disabled:""}},[t._v("首页")]),a("el-checkbox",{attrs:{label:"2"}},[t._v("分类页")]),a("el-checkbox",{attrs:{label:"3"}},[t._v("列表页")]),a("el-checkbox",{attrs:{label:"4"}},[t._v("详情页")])],1)],1)]),a("el-form-item",{staticClass:"custom-align-right",attrs:{label:null,"label-width":t.formLabelWidth}},[a("div",{staticClass:"formLabelFloatBox"},[a("div",{staticClass:"labelTitleStyle"},[t._v(" 单页模板类型: "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"说明文字",placement:"top"}},[a("i",{staticClass:"el-icon-question"})])],1),a("el-checkbox-group",{model:{value:t.form.template_special_type,callback:function(e){t.$set(t.form,"template_special_type",e)},expression:"form.template_special_type"}},[a("el-checkbox",{attrs:{label:"1"}},[t._v("自定义列表页")]),a("el-checkbox",{attrs:{label:"2",disabled:""}},[t._v("自定义详情页")])],1)],1)])],1)],1),a("div",{staticClass:"layerBox"},[a("tableTitle",{attrs:{name:t.templateInfoTitle}}),a("div",{staticClass:"formDiv"},[a("el-form-item",{staticClass:"custom-align-right",attrs:{label:"网站声明:","label-width":t.formLabelWidth,prop:"website_statement"}},[a("div",{staticClass:"formLabelFloatBox"},[a("el-input",{attrs:{type:"text",placeholder:"请输入.."},model:{value:t.form.website_statement,callback:function(e){t.$set(t.form,"website_statement",e)},expression:"form.website_statement"}})],1)]),a("el-form-item",{staticClass:"custom-align-right",attrs:{label:"主办单位:","label-width":t.formLabelWidth,prop:"website_statement"}},[a("div",{staticClass:"formLabelFloatBox"},[a("el-input",{attrs:{type:"text",placeholder:"请输入.."},model:{value:t.form.website_statement,callback:function(e){t.$set(t.form,"website_statement",e)},expression:"form.website_statement"}})],1)]),a("el-form-item",{staticClass:"custom-align-right",attrs:{label:"版权信息:","label-width":t.formLabelWidth,prop:"website_statement"}},[a("div",{staticClass:"formLabelFloatBox"},[a("el-input",{attrs:{type:"text",placeholder:"请输入.."},model:{value:t.form.website_statement,callback:function(e){t.$set(t.form,"website_statement",e)},expression:"form.website_statement"}})],1)]),a("el-form-item",{staticClass:"custom-align-right",attrs:{label:"联系电话:","label-width":t.formLabelWidth,prop:"website_statement"}},[a("div",{staticClass:"formLabelFloatBox"},[a("el-input",{attrs:{type:"text",placeholder:"请输入.."},model:{value:t.form.website_statement,callback:function(e){t.$set(t.form,"website_statement",e)},expression:"form.website_statement"}})],1)]),a("el-form-item",{staticClass:"custom-align-right",attrs:{label:"公司地址:","label-width":t.formLabelWidth,prop:"website_statement"}},[a("div",{staticClass:"formLabelFloatBox"},[a("el-input",{attrs:{type:"text",placeholder:"请输入.."},model:{value:t.form.website_statement,callback:function(e){t.$set(t.form,"website_statement",e)},expression:"form.website_statement"}})],1)]),a("el-form-item",{staticClass:"custom-align-right",attrs:{label:"项目LOGO:"}},[a("div",{staticClass:"uploaderBox"},[a("el-upload",{staticClass:"avatar-uploader",attrs:{action:"#","show-file-list":!1,"before-upload":t.beforeAvatarUpload}},[t.form.project_img_src?a("img",{staticClass:"avatar",attrs:{src:t.form.project_img_src}}):a("div",{staticClass:"chooseImgDiv"},[a("div",[a("img",{attrs:{src:s("2e2a")}}),a("div",[t._v("选择图片")])])])])],1)]),a("el-form-item",{staticClass:"custom-align-right",attrs:{label:"项目名称:","label-width":t.formLabelWidth,prop:"website_statement"}},[a("div",{staticClass:"formLabelFloatBox"},[a("el-input",{attrs:{type:"text",placeholder:"请输入.."},model:{value:t.form.website_statement,callback:function(e){t.$set(t.form,"website_statement",e)},expression:"form.website_statement"}})],1)]),a("el-form-item",{staticClass:"custom-align-right",attrs:{label:"项目网址:","label-width":t.formLabelWidth,prop:"website_statement"}},[a("div",{staticClass:"formLabelFloatBox"},[a("el-input",{attrs:{type:"text",placeholder:"请输入.."},model:{value:t.form.website_statement,callback:function(e){t.$set(t.form,"website_statement",e)},expression:"form.website_statement"}})],1)]),a("el-form-item",{staticClass:"custom-align-right",attrs:{label:"公司LOGO:"}},[a("div",{staticClass:"uploaderBox"},[a("el-upload",{staticClass:"avatar-uploader",attrs:{action:"#","show-file-list":!1,"before-upload":t.beforeAvatarUpload}},[t.form.project_img_src?a("img",{staticClass:"avatar",attrs:{src:t.form.project_img_src}}):a("div",{staticClass:"chooseImgDiv"},[a("div",[a("img",{attrs:{src:s("2e2a")}}),a("div",[t._v("选择图片")])])])])],1)]),a("el-form-item",{staticClass:"custom-align-right",attrs:{label:"公司名称:","label-width":t.formLabelWidth,prop:"website_statement"}},[a("div",{staticClass:"formLabelFloatBox"},[a("el-input",{attrs:{type:"text",placeholder:"请输入.."},model:{value:t.form.website_statement,callback:function(e){t.$set(t.form,"website_statement",e)},expression:"form.website_statement"}})],1)]),a("el-form-item",{staticClass:"custom-align-right",attrs:{label:"公司网址:","label-width":t.formLabelWidth,prop:"website_statement"}},[a("div",{staticClass:"formLabelFloatBox"},[a("el-input",{attrs:{type:"text",placeholder:"请输入.."},model:{value:t.form.website_statement,callback:function(e){t.$set(t.form,"website_statement",e)},expression:"form.website_statement"}})],1)]),a("el-form-item",{staticClass:"custom-align-right",attrs:{label:"网站备案号:","label-width":t.formLabelWidth,prop:"website_statement"}},[a("div",{staticClass:"formLabelFloatBox"},[a("el-input",{attrs:{type:"text",placeholder:"请输入.."},model:{value:t.form.website_statement,callback:function(e){t.$set(t.form,"website_statement",e)},expression:"form.website_statement"}})],1)]),a("el-form-item",{staticClass:"custom-align-right",attrs:{label:"网安备案号:","label-width":t.formLabelWidth,prop:"website_statement"}},[a("div",{staticClass:"formLabelFloatBox"},[a("el-input",{attrs:{type:"text",placeholder:"请输入.."},model:{value:t.form.website_statement,callback:function(e){t.$set(t.form,"website_statement",e)},expression:"form.website_statement"}})],1)]),a("el-form-item",{staticClass:"custom-align-right",attrs:{label:"客服QQ号1:","label-width":t.formLabelWidth,prop:"website_statement"}},[a("div",{staticClass:"formLabelFloatBox"},[a("el-input",{attrs:{type:"text",placeholder:"请输入.."},model:{value:t.form.website_statement,callback:function(e){t.$set(t.form,"website_statement",e)},expression:"form.website_statement"}})],1)]),a("el-form-item",{staticClass:"custom-align-right",attrs:{label:"客服QQ号2:","label-width":t.formLabelWidth,prop:"website_statement"}},[a("div",{staticClass:"formLabelFloatBox"},[a("el-input",{attrs:{type:"text",placeholder:"请输入.."},model:{value:t.form.website_statement,callback:function(e){t.$set(t.form,"website_statement",e)},expression:"form.website_statement"}})],1)])],1)],1)]),a("div",{staticClass:"bottomBtnBox"},[a("el-button",{attrs:{type:"info"},on:{click:t.goToWebsite}},[t._v("返回")]),a("el-button",{attrs:{type:"primary"},on:{click:t.goToStyle}},[t._v("下一步")])],1)],1)},l=[],i=(s("4b51"),s("bf09")),o=s("f2c7"),r={components:{tableTitle:i["default"],step:o["default"]},data:function(){var t=function(t,e,s){0==e.length?s(new Error("该项不能为空!")):s()};return{templateStepTitle:"仅需四步,即可完成模板创建",templateBaseTitle:"模板类型设置",templateInfoTitle:"模板信息设置",formLabelWidth:"120px",editId:"",form:{template_base_type:["1"],template_special_type:["2"],website_statement:"",project_img_src:""},loginRules:{website_statement:[{required:!0,trigger:"blur",validator:t}]}}},methods:{goToWebsite:function(){this.$router.push({path:"/webSite"})},goToStyle:function(){this.$router.push({path:"/templateStyle",query:{id:this.editId}})},addData:function(){var t=this;console.log(this.form),this.$store.dispatch("template/addBasic",this.form).then((function(e){200==e.code&&(t.$message.success("基本信息添加成功!请选择模板风格"),t.goToStyle())})).catch((function(e){t.$message.error("网络错误,请重试!")}))},getUserInfo:function(){var t=this;this.$store.dispatch("userMember/getUser",{id:this.editId}).then((function(e){console.log(e),t.form.type_id=e.data.type_id,t.form.user_name=e.data.user_name,t.form.role_id=e.data.role_id,t.form.real_name=e.data.real_name,t.form.mobile=e.data.mobile,t.form.gender=e.data.gender+""})).catch((function(e){t.$message({type:"info",message:"网络错误,请重试!"})}))},editData:function(){var t=this;this.$store.dispatch("userMember/verifyUserInfo",{id:this.editId,user_name:this.form.user_name}).then((function(e){0==e.code?(t.form.id=t.editId,delete t.form.password,delete t.form.confirm_password,t.$store.dispatch("userMember/updateUser",t.form).then((function(e){console.log(e),t.$message({type:"success",message:"用户添加成功!"}),t.goList()}))):200==e.code&&t.$message({type:"warning",message:"该账号已被注册,请更换其他账号!"})})).catch((function(e){t.$message({type:"info",message:"网络错误,请重试!"})}))}},mounted:function(){this.$store.commit("template/showStepStatus"),void 0!=this.$route.query.id?(this.editId=this.$route.query.id,console.log("编辑模板!")):console.log("添加模板基本信息!")}},m=r,n=(s("dffa"),s("2877")),c=Object(n["a"])(m,a,l,!1,null,"32a241df",null);e["default"]=c.exports},"4b51":function(t,e,s){},"8f10":function(t,e,s){"use strict";s("d825")},bf09:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"tableTitle"},[s("span",{staticClass:"tableFloatLine"}),t._v(" "+t._s(t.name)+" ")])},l=[],i={props:{name:{type:String,required:!0}},data:function(){return{someData:""}}},o=i,r=(s("8f10"),s("2877")),m=Object(r["a"])(o,a,l,!1,null,"4f7f779e",null);e["default"]=m.exports},d170:function(t,e,s){"use strict";s("f3d1")},d751:function(t,e,s){},d825:function(t,e,s){},dffa:function(t,e,s){"use strict";s("d751")},f2c7:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"stepBox"},[s("div",{staticClass:"stepBoxText",on:{click:t.hiddenStepStatus}},[s("i",{staticClass:"el-icon-close"})]),s("el-steps",{attrs:{active:t.activeNumber,"align-center":""}},[s("el-step",{attrs:{title:"填写模板基本信息",description:"类型和网站底部信息"}}),s("el-step",{attrs:{title:"选择模板风格",description:"网站整体风格和样式"}}),s("el-step",{attrs:{title:"构建模板模块",description:"展示哪些模块到模板上"}}),s("el-step",{attrs:{title:"应用网站模板",description:"应用该模板到您的站点"}})],1)],1)},l=[],i=(s("a9e3"),{props:{activeNumber:{type:Number,required:!0}},data:function(){return{someData:""}},methods:{hiddenStepStatus:function(){console.log(123),console.log(this.$store.state.template.stepStatus),this.$store.commit("template/hiddenStepStatus")}}}),o=i,r=(s("d170"),s("2877")),m=Object(r["a"])(o,a,l,!1,null,"4efdf9a8",null);e["default"]=m.exports},f3d1:function(t,e,s){}}]);
|