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 line
21 KiB

{"remainingRequest":"D:\\code\\vue\\admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\code\\vue\\admin\\src\\views\\register.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\code\\vue\\admin\\src\\views\\register.vue","mtime":1749055175335},{"path":"D:\\code\\vue\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\code\\vue\\admin\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\code\\vue\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\code\\vue\\admin\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KDQpleHBvcnQgZGVmYXVsdCB7DQoJZGF0YSgpIHsNCgkJcmV0dXJuIHsNCgkJCXJ1bGVGb3JtOiB7DQoJCQl9LA0KCQkJZm9yZ2V0Rm9ybToge30sDQogICAgICAgICAgICBwYWdlRmxhZyA6ICcnLA0KCQkJdGFibGVOYW1lOiIiLA0KCQkJcnVsZXM6IHt9LA0KICAgICAgICAgICAgeW9uZ2h1eGluZ2JpZU9wdGlvbnM6IFtdLA0KCQl9Ow0KCX0sDQoJbW91bnRlZCgpew0KCQl0aGlzLnBhZ2VGbGFnID0gdGhpcy4kcm91dGUucXVlcnkucGFnZUZsYWcNCgkJaWYodGhpcy4kcm91dGUucXVlcnkucGFnZUZsYWc9PSdyZWd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oJCQkJCQltZXNzYWdlOiAi5rOo5YaM5oiQ5YqfIiwNCgkJCQkJCXR5cGU6ICJzdWNjZXNzIiwNCgkJCQkJCWR1cmF0aW9uOiAxNTAwLA0KCQkJCQkJb25DbG9zZTogKCkgPT4gew0KCQkJCQkJCXRoaXMuJHJvdXRlci5yZXBsYWNlKHsgcGF0aDogIi9sb2dpbiIgfSk7DQoJCQkJCQl9DQoJCQkJCX0pOw0KCQkJCX0gZWxzZSB7DQoJCQkJCXRoaXMuJG1lc3NhZ2UuZXJyb3IoZGF0YS5tc2cpOw0KCQkJCX0NCgkJCX0pOw0KCQl9DQoJfQ0KfTsNCg=="},{"version":3,"sources":["register.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"register.vue","sourceRoot":"src/views","sourcesContent":["<template>\r\n\t<div>\r\n\t\t<div class=\"container\" :style='{\"minHeight\":\"100vh\",\"alignItems\":\"center\",\"background\":\"url(http://codegen.caihongy.cn/20230930/02567f8bbf29475095a68adeb32aa995.jpg)\",\"display\":\"flex\",\"width\":\"100%\",\"backgroundSize\":\"100% 100%\",\"backgroundPosition\":\"center bottom\",\"backgroundRepeat\":\"no-repeat\",\"justifyContent\":\"center\"}'>\r\n\t\t\t<el-form v-if=\"pageFlag=='register'\" :style='{\"border\":\"0px solid #f6f6f6\",\"padding\":\"30px 5% 20px 45%\",\"margin\":\"50px auto 50px\",\"borderRadius\":\"0px\",\"textAlign\":\"center\",\"background\":\"url(http://codegen.caihongy.cn/20230930/f52d5a109d7248d69a33749b059f901d.jpg) no-repeat left center / 50% 101%,#fff\",\"width\":\"75%\",\"height\":\"auto\"}' ref=\"rgsForm\" class=\"rgs-form\" :model=\"rgsForm\" :rules=\"rules\">\r\n\t\t\t\t<div v-if=\"true\" :style='{\"padding\":\"0px\",\"margin\":\"0px auto 20px\",\"borderColor\":\"#eee\",\"color\":\"#57759b\",\"textAlign\":\"center\",\"display\":\"inline-block\",\"background\":\"#fff\",\"borderWidth\":\"0px\",\"width\":\"100%\",\"lineHeight\":\"40px\",\"fontSize\":\"24px\",\"borderStyle\":\"solid\",\"fontWeight\":\"600\"}' class=\"title\">启熹LearnLume注册</div>\r\n\t\t\t\t<el-form-item :style='{\"padding\":\"0 0px\",\"margin\":\"0 auto 15px\",\"textAlign\":\"left\",\"flexWrap\":\"wrap\",\"display\":\"block\",\"width\":\"100%\",\"fontSize\":\"inherit\",\"position\":\"relative\",\"height\":\"auto\"}' class=\"list-item\" v-if=\"tableName=='yonghu'\">\r\n\t\t\t\t\t<div v-if=\"true\" :style='{\"padding\":\"0 10px\",\"color\":\"#333\",\"textAlign\":\"right\",\"left\":\"-150px\",\"display\":\"inline-block\",\"width\":\"150px\",\"lineHeight\":\"40px\",\"fontSize\":\"14px\",\"position\":\"absolute\",\"order\":\"2\"}' class=\"lable\" :class=\"changeRules('yonghuzhanghao')?'required':''\">用户账号:</div>\r\n\t\t\t\t\t<el-input v-model=\"ruleForm.yonghuzhanghao\" autocomplete=\"off\" placeholder=\"用户账号\" type=\"text\" />\r\n\t\t\t\t</el-form-item>\r\n\t\t\t\t<el-form-item :style='{\"padding\":\"0 0px\",\"margin\":\"0 auto 15px\",\"textAlign\":\"left\",\"flexWrap\":\"wrap\",\"display\":\"block\",\"width\":\"100%\",\"fontSize\":\"inherit\",\"position\":\"relative\",\"height\":\"auto\"}' class=\"list-item\" v-if=\"tableName=='yonghu'\">\r\n\t\t\t\t\t<div v-if=\"true\" :style='{\"padding\":\"0 10px\",\"color\":\"#333\",\"textAlign\":\"right\",\"left\":\"-150px\",\"display\":\"inline-block\",\"width\":\"150px\",\"lineHeight\":\"40px\",\"fontSize\":\"14px\",\"position\":\"absolute\",\"order\":\"2\"}' class=\"lable\" :class=\"changeRules('mima')?'required':''\">密码:</div>\r\n\t\t\t\t\t<el-input v-model=\"ruleForm.mima\" autocomplete=\"off\" placeholder=\"密码\" type=\"password\" />\r\n\t\t\t\t</el-form-item>\r\n\t\t\t\t<el-form-item :style='{\"padding\":\"0 0px\",\"margin\":\"0 auto 15px\",\"textAlign\":\"left\",\"flexWrap\":\"wrap\",\"display\":\"block\",\"width\":\"100%\",\"fontSize\":\"inherit\",\"position\":\"relative\",\"height\":\"auto\"}' class=\"list-item\" v-if=\"tableName=='yonghu'\">\r\n\t\t\t\t\t<div v-if=\"true\" :style='{\"padding\":\"0 10px\",\"color\":\"#333\",\"textAlign\":\"right\",\"left\":\"-150px\",\"display\":\"inline-block\",\"width\":\"150px\",\"lineHeight\":\"40px\",\"fontSize\":\"14px\",\"position\":\"absolute\",\"order\":\"2\"}' class=\"lable\" :class=\"changeRules('mima')?'required':''\">确认密码:</div>\r\n\t\t\t\t\t<el-input v-model=\"ruleForm.mima2\" autocomplete=\"off\" placeholder=\"确认密码\" type=\"password\" />\r\n\t\t\t\t</el-form-item>\r\n\t\t\t\t<el-form-item :style='{\"padding\":\"0 0px\",\"margin\":\"0 auto 15px\",\"textAlign\":\"left\",\"flexWrap\":\"wrap\",\"display\":\"block\",\"width\":\"100%\",\"fontSize\":\"inherit\",\"position\":\"relative\",\"height\":\"auto\"}' class=\"list-item\" v-if=\"tableName=='yonghu'\">\r\n\t\t\t\t\t<div v-if=\"true\" :style='{\"padding\":\"0 10px\",\"color\":\"#333\",\"textAlign\":\"right\",\"left\":\"-150px\",\"display\":\"inline-block\",\"width\":\"150px\",\"lineHeight\":\"40px\",\"fontSize\":\"14px\",\"position\":\"absolute\",\"order\":\"2\"}' class=\"lable\" :class=\"changeRules('yonghuxingming')?'required':''\">用户姓名:</div>\r\n\t\t\t\t\t<el-input v-model=\"ruleForm.yonghuxingming\" autocomplete=\"off\" placeholder=\"用户姓名\" type=\"text\" />\r\n\t\t\t\t</el-form-item>\r\n\t\t\t\t<el-form-item :style='{\"padding\":\"0 0px\",\"margin\":\"0 auto 15px\",\"textAlign\":\"left\",\"flexWrap\":\"wrap\",\"display\":\"block\",\"width\":\"100%\",\"fontSize\":\"inherit\",\"position\":\"relative\",\"height\":\"auto\"}' class=\"list-item\" v-if=\"tableName=='yonghu'\">\r\n\t\t\t\t\t<div v-if=\"true\" :style='{\"padding\":\"0 10px\",\"color\":\"#333\",\"textAlign\":\"right\",\"left\":\"-150px\",\"display\":\"inline-block\",\"width\":\"150px\",\"lineHeight\":\"40px\",\"fontSize\":\"14px\",\"position\":\"absolute\",\"order\":\"2\"}' class=\"lable\" :class=\"changeRules('xingbie')?'required':''\">性别:</div>\r\n <el-select v-model=\"ruleForm.xingbie\" placeholder=\"请选择性别\" >\r\n <el-option\r\n v-for=\"(item,index) in yonghuxingbieOptions\"\r\n v-bind:key=\"index\"\r\n :label=\"item\"\r\n :value=\"item\">\r\n </el-option>\r\n </el-select>\r\n\t\t\t\t</el-form-item>\r\n\t\t\t\t<el-form-item :style='{\"padding\":\"0 0px\",\"margin\":\"0 auto 15px\",\"textAlign\":\"left\",\"flexWrap\":\"wrap\",\"display\":\"block\",\"width\":\"100%\",\"fontSize\":\"inherit\",\"position\":\"relative\",\"height\":\"auto\"}' class=\"list-item\" v-if=\"tableName=='yonghu'\">\r\n\t\t\t\t\t<div v-if=\"true\" :style='{\"padding\":\"0 10px\",\"color\":\"#333\",\"textAlign\":\"right\",\"left\":\"-150px\",\"display\":\"inline-block\",\"width\":\"150px\",\"lineHeight\":\"40px\",\"fontSize\":\"14px\",\"position\":\"absolute\",\"order\":\"2\"}' class=\"lable\" :class=\"changeRules('dianhua')?'required':''\">电话:</div>\r\n\t\t\t\t\t<el-input v-model=\"ruleForm.dianhua\" autocomplete=\"off\" placeholder=\"电话\" type=\"text\" />\r\n\t\t\t\t</el-form-item>\r\n\t\t\t\t<el-form-item :style='{\"padding\":\"0 0px\",\"margin\":\"0 auto 15px\",\"textAlign\":\"left\",\"flexWrap\":\"wrap\",\"display\":\"block\",\"width\":\"100%\",\"fontSize\":\"inherit\",\"position\":\"relative\",\"height\":\"auto\"}' class=\"list-item\" v-if=\"tableName=='yonghu'\">\r\n\t\t\t\t\t<div v-if=\"true\" :style='{\"padding\":\"0 10px\",\"color\":\"#333\",\"textAlign\":\"right\",\"left\":\"-150px\",\"display\":\"inline-block\",\"width\":\"150px\",\"lineHeight\":\"40px\",\"fontSize\":\"14px\",\"position\":\"absolute\",\"order\":\"2\"}' class=\"lable\" :class=\"changeRules('touxiang')?'required':''\">头像:</div>\r\n <file-upload\r\n tip=\"点击上传头像\"\r\n action=\"file/upload\"\r\n :limit=\"3\"\r\n :multiple=\"true\"\r\n :fileUrls=\"ruleForm.touxiang?ruleForm.touxiang:''\"\r\n @change=\"yonghutouxiangUploadChange\"\r\n ></file-upload>\r\n\t\t\t\t</el-form-item>\r\n\t\t\t\t<button :style='{\"border\":\"2px solid #57759b\",\"cursor\":\"pointer\",\"padding\":\"0px\",\"boxShadow\":\"0 0 0px rgba(64, 158, 255, .5)\",\"margin\":\"20px auto 5px\",\"color\":\"#57759b\",\"display\":\"inline-block\",\"letterSpacing\":\"4px\",\"outline\":\"none\",\"borderRadius\":\"0px\",\"background\":\"none\",\"width\":\"49%\",\"fontSize\":\"18px\",\"fontWeight\":\"600\",\"height\":\"50px\"}' type=\"button\" class=\"r-btn\" @click=\"login()\">注册</button>\r\n\t\t\t\t<div :style='{\"cursor\":\"pointer\",\"padding\":\"0 0px\",\"margin\":\"10px 0 0\",\"color\":\"#57759b\",\"textAlign\":\"right\",\"display\":\"inline-block\",\"width\":\"49%\",\"lineHeight\":\"1\",\"fontSize\":\"14px\"}' class=\"r-login\" @click=\"close()\">已有账号,直接登录</div>\r\n\t\t\t</el-form>\r\n\t\t\t\r\n\t\t</div>\r\n\t</div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\truleForm: {\r\n\t\t\t},\r\n\t\t\tforgetForm: {},\r\n pageFlag : '',\r\n\t\t\ttableName:\"\",\r\n\t\t\trules: {},\r\n yonghuxingbieOptions: [],\r\n\t\t};\r\n\t},\r\n\tmounted(){\r\n\t\tthis.pageFlag = this.$route.query.pageFlag\r\n\t\tif(this.$route.query.pageFlag=='register'){\r\n\t\t\t\r\n\t\t\tlet table = this.$storage.get(\"loginTable\");\r\n\t\t\tthis.tableName = table;\r\n\t\t\tif(this.tableName=='yonghu'){\r\n\t\t\t\tthis.ruleForm = {\r\n\t\t\t\t\tyonghuzhanghao: '',\r\n\t\t\t\t\tmima: '',\r\n\t\t\t\t\tyonghuxingming: '',\r\n\t\t\t\t\txingbie: '',\r\n\t\t\t\t\tdianhua: '',\r\n\t\t\t\t\ttouxiang: '',\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif ('yonghu' == this.tableName) {\r\n\t\t\t\tthis.rules.yonghuzhanghao = [{ required: true, message: '请输入用户账号', trigger: 'blur' }]\r\n\t\t\t}\r\n\t\t\tif ('yonghu' == this.tableName) {\r\n\t\t\t\tthis.rules.mima = [{ required: true, message: '请输入密码', trigger: 'blur' }]\r\n\t\t\t}\r\n\t\t\tif ('yonghu' == this.tableName) {\r\n\t\t\t\tthis.rules.yonghuxingming = [{ required: true, message: '请输入用户姓名', trigger: 'blur' }]\r\n\t\t\t}\r\n\t\t\tthis.yonghuxingbieOptions = \"男,女\".split(',')\r\n\t\t}\r\n\t},\r\n\tcreated() {\r\n\t},\r\n\tdestroyed() {\r\n\t\t \t},\r\n\tmethods: {\r\n\t\tchangeRules(name){\r\n\t\t\tif(this.rules[name]){\r\n\t\t\t\treturn true\r\n\t\t\t}\r\n\t\t\treturn false\r\n\t\t},\r\n\t\t// 获取uuid\r\n\t\tgetUUID () {\r\n\t\t\treturn new Date().getTime();\r\n\t\t},\r\n\t\tclose(){\r\n\t\t\tthis.$router.push({ path: \"/login\" });\r\n\t\t},\r\n yonghutouxiangUploadChange(fileUrls) {\r\n this.ruleForm.touxiang = fileUrls;\r\n },\r\n\r\n // 多级联动参数\r\n\r\n\r\n\t\t// 注册\r\n\t\tlogin() {\r\n\t\t\tvar url=this.tableName+\"/register\";\r\n\t\t\t\t\tif((!this.ruleForm.yonghuzhanghao) && `yonghu` == this.tableName){\r\n\t\t\t\t\t\tthis.$message.error(`用户账号不能为空`);\r\n\t\t\t\t\t\treturn\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif((!this.ruleForm.mima) && `yonghu` == this.tableName){\r\n\t\t\t\t\t\tthis.$message.error(`密码不能为空`);\r\n\t\t\t\t\t\treturn\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif((this.ruleForm.mima!=this.ruleForm.mima2) && `yonghu` == this.tableName){\r\n\t\t\t\t\t\tthis.$message.error(`两次密码输入不一致`);\r\n\t\t\t\t\t\treturn\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif((!this.ruleForm.yonghuxingming) && `yonghu` == this.tableName){\r\n\t\t\t\t\t\tthis.$message.error(`用户姓名不能为空`);\r\n\t\t\t\t\t\treturn\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(`yonghu` == this.tableName && this.ruleForm.dianhua &&(!this.$validate.isMobile(this.ruleForm.dianhua))){\r\n\t\t\t\t\t\tthis.$message.error(`电话应输入手机格式`);\r\n\t\t\t\t\t\treturn\r\n\t\t\t\t\t}\r\n if(this.ruleForm.touxiang!=null) {\r\n this.ruleForm.touxiang = this.ruleForm.touxiang.replace(new RegExp(this.$base.url,\"g\"),\"\");\r\n }\r\n\t\t\tthis.$http({\r\n\t\t\t\turl: url,\r\n\t\t\t\tmethod: \"post\",\r\n\t\t\t\tdata:this.ruleForm\r\n\t\t\t}).then(({ data }) => {\r\n\t\t\t\tif (data && data.code === 0) {\r\n\t\t\t\t\tthis.$message({\r\n\t\t\t\t\t\tmessage: \"注册成功\",\r\n\t\t\t\t\t\ttype: \"success\",\r\n\t\t\t\t\t\tduration: 1500,\r\n\t\t\t\t\t\tonClose: () => {\r\n\t\t\t\t\t\t\tthis.$router.replace({ path: \"/login\" });\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.$message.error(data.msg);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t.container {\r\n\t position: relative;\r\n\t background: url(http://codegen.caihongy.cn/20230930/02567f8bbf29475095a68adeb32aa995.jpg);\r\n\r\n\t\t.el-date-editor.el-input {\r\n\t\t width: 100%;\r\n\t\t}\r\n\t\t\r\n\t\t.rgs-form .el-input /deep/ .el-input__inner {\r\n\t\t\t\t\t\tborder-radius: 0px;\r\n\t\t\t\t\t\tpadding: 0 10px;\r\n\t\t\t\t\t\tbox-shadow: 0 0 0px rgba(64, 158, 255, .3);\r\n\t\t\t\t\t\toutline: none;\r\n\t\t\t\t\t\tcolor: #999;\r\n\t\t\t\t\t\tbackground: #fff;\r\n\t\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\t\tfont-size: 14px;\r\n\t\t\t\t\t\tborder-color: #62779c;\r\n\t\t\t\t\t\tborder-width: 0 0 2px;\r\n\t\t\t\t\t\tborder-style: solid;\r\n\t\t\t\t\t\theight: 40px;\r\n\t\t\t\t\t}\r\n\t\t\r\n\t\t.rgs-form .el-select /deep/ .el-input__inner {\r\n\t\t\t\t\t\tborder-radius: 0px;\r\n\t\t\t\t\t\tpadding: 0 10px;\r\n\t\t\t\t\t\tbox-shadow: 0 0 0px rgba(64, 158, 255, .3);\r\n\t\t\t\t\t\toutline: none;\r\n\t\t\t\t\t\tcolor: #999;\r\n\t\t\t\t\t\tbackground: #fff;\r\n\t\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\t\tfont-size: 14px;\r\n\t\t\t\t\t\tborder-color: #62779c;\r\n\t\t\t\t\t\tborder-width: 0 0 2px;\r\n\t\t\t\t\t\tborder-style: solid;\r\n\t\t\t\t\t\theight: 40px;\r\n\t\t\t\t\t}\r\n\t\t\r\n\t\t.rgs-form .el-date-editor /deep/ .el-input__inner {\r\n\t\t\t\t\t\tborder-radius: 0px;\r\n\t\t\t\t\t\tpadding: 0 10px 0 30px;\r\n\t\t\t\t\t\tbox-shadow: 0 0 0px rgba(64, 158, 255, .3);\r\n\t\t\t\t\t\toutline: none;\r\n\t\t\t\t\t\tcolor: #999;\r\n\t\t\t\t\t\tbackground: #fff;\r\n\t\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\t\tfont-size: 14px;\r\n\t\t\t\t\t\tborder-color: #62779c;\r\n\t\t\t\t\t\tborder-width: 0 0 2px;\r\n\t\t\t\t\t\tborder-style: solid;\r\n\t\t\t\t\t\theight: 40px;\r\n\t\t\t\t\t}\r\n\t\t\r\n\t\t.rgs-form .el-date-editor /deep/ .el-input__inner {\r\n\t\t\t\t\t\tborder-radius: 0px;\r\n\t\t\t\t\t\tpadding: 0 10px 0 30px;\r\n\t\t\t\t\t\tbox-shadow: 0 0 0px rgba(64, 158, 255, .3);\r\n\t\t\t\t\t\toutline: none;\r\n\t\t\t\t\t\tcolor: #999;\r\n\t\t\t\t\t\tbackground: #fff;\r\n\t\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\t\tfont-size: 14px;\r\n\t\t\t\t\t\tborder-color: #62779c;\r\n\t\t\t\t\t\tborder-width: 0 0 2px;\r\n\t\t\t\t\t\tborder-style: solid;\r\n\t\t\t\t\t\theight: 40px;\r\n\t\t\t\t\t}\r\n\t\t\r\n\t\t.rgs-form /deep/ .el-upload--picture-card {\r\n\t\t\tbackground: transparent;\r\n\t\t\tborder: 0;\r\n\t\t\tborder-radius: 0;\r\n\t\t\twidth: auto;\r\n\t\t\theight: auto;\r\n\t\t\tline-height: initial;\r\n\t\t\tvertical-align: middle;\r\n\t\t}\r\n\t\t\r\n\t\t.rgs-form /deep/ .upload .upload-img {\r\n\t\t \t\t border: 2px solid #62779c;\r\n\t\t \t\t cursor: pointer;\r\n\t\t \t\t border-radius: 0px;\r\n\t\t \t\t color: #62779c;\r\n\t\t \t\t background: #fff;\r\n\t\t \t\t font-weight: 600;\r\n\t\t \t\t width: 80px;\r\n\t\t \t\t font-size: 20px;\r\n\t\t \t\t line-height: 40px;\r\n\t\t \t\t text-align: center;\r\n\t\t \t\t height: 40px;\r\n\t\t \t\t}\r\n\t\t\r\n\t\t.rgs-form /deep/ .el-upload-list .el-upload-list__item {\r\n\t\t \t\t border: 2px solid #62779c;\r\n\t\t \t\t cursor: pointer;\r\n\t\t \t\t border-radius: 0px;\r\n\t\t \t\t color: #62779c;\r\n\t\t \t\t background: #fff;\r\n\t\t \t\t font-weight: 600;\r\n\t\t \t\t width: 80px;\r\n\t\t \t\t font-size: 20px;\r\n\t\t \t\t line-height: 40px;\r\n\t\t \t\t text-align: center;\r\n\t\t \t\t height: 40px;\r\n\t\t \t\t}\r\n\t\t\r\n\t\t.rgs-form /deep/ .el-upload .el-icon-plus {\r\n\t\t \t\t border: 2px solid #62779c;\r\n\t\t \t\t cursor: pointer;\r\n\t\t \t\t border-radius: 0px;\r\n\t\t \t\t color: #62779c;\r\n\t\t \t\t background: #fff;\r\n\t\t \t\t font-weight: 600;\r\n\t\t \t\t width: 80px;\r\n\t\t \t\t font-size: 20px;\r\n\t\t \t\t line-height: 40px;\r\n\t\t \t\t text-align: center;\r\n\t\t \t\t height: 40px;\r\n\t\t \t\t}\r\n\t}\r\n\t.required {\r\n\t\tposition: relative;\r\n\t}\r\n\t.required::after{\r\n\t\t\t\tcolor: red;\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\tright: 6px;\r\n\t\t\t\tcontent: \"*\";\r\n\t\t\t\torder: 1;\r\n\t\t\t}\r\n\t.editor>.avatar-uploader {\r\n\t\tline-height: 0;\r\n\t\theight: 0;\r\n\t}\r\n</style>\r\n"]}]}