diff --git a/cms-frontend/src/components/Layout.vue b/cms-frontend/src/components/Layout.vue index 903d7a8f201bc95ac76796818ea6877ed35ce52d..eef705f4d59f6924696676834e36026fe3d73d7b 100644 --- a/cms-frontend/src/components/Layout.vue +++ b/cms-frontend/src/components/Layout.vue @@ -4,7 +4,7 @@
@@ -236,7 +236,7 @@
- + {{ baseInfo.name }}
@@ -249,23 +249,34 @@
+
+
-
- 网上有害信息举报:网站 https://www.12377.cn 电话 010-5858101 0 邮箱 - youdao_jubao@rd.netease.com +
+ 网站 {{ baseInfo.url }} 电话 {{ baseInfo.phone }} 邮箱 + {{ baseInfo.mailbox }}
-
- 粤B2-20090191-26 | 京ICP备12020869号-2 | 京公网安备44010602000207 +
+ {{ baseInfo.websiteICP }} | 京ICP备12020869号-2 | + {{ baseInfo.putOnRecords }}
-
©2014-2021 icourse163.org
+
{{ baseInfo.remarks }}
@@ -437,7 +448,7 @@ section.el-container.details-body.is-vertical { .footer { margin-top: 100px; background-color: #f3f3f3; - height: 310px !important; + height: 410px !important; border-top: 1px solid #dad4d4; .presentation { margin-top: 20px; @@ -465,15 +476,25 @@ section.el-container.details-body.is-vertical { .tp { display: flex; margin-top: 30px; + justify-content: center; + + .qq-about { + i { + margin-left: 30px; + } + } .wx-about { + i { + margin-left: 30px; + } margin-right: 20px; } } } } .beian { - margin-top: 100px; + margin-top: 90px; text-align: center; font-size: 12px; } @@ -530,13 +551,12 @@ export default { like: 0, // 点击当前文章的点赞数 isLogin: false, baseInfo: { - name: '文雅居', + name: '', logourl: require('@/assets/index.png'), // logo地址 + pics: [], // 网站介绍 - presentation: - '由高教社联手网易推出,让每一个有提升愿望的用户能够学到中国知名高校的课程,并获得认证。', + presentation: '', wxurl: '', - pics: [], qqurl: '', beian: '' }, @@ -641,7 +661,14 @@ export default { // 获取网站信息 getWebset(1).then(({ data }) => { console.log(data) - + // this.baseInfo.wxurl.url = data.data.wxCodePicture + this.baseInfo = data.data + this.baseInfo.name = data.data.owner + this.baseInfo.presentation = data.data.introduce + this.baseInfo.wxurl = url + '/uploadfiles/' + data.data.wxCodePicture + this.baseInfo.pics = [] + console.log(this.baseInfo.wxurl) + this.baseInfo.qqurl = url + '/uploadfiles/' + data.data.qqCodePicture const arr = data.data.carouselsPicture.split(' ') arr.forEach((item) => { this.baseInfo.pics.push({ diff --git a/cms-frontend/src/components/Profile/useprofile.vue b/cms-frontend/src/components/Profile/useprofile.vue index f8138922a97c393e47a596a2516c3cce2793d510..409cd9444acd468636ebe71b21405a1dc768824b 100644 --- a/cms-frontend/src/components/Profile/useprofile.vue +++ b/cms-frontend/src/components/Profile/useprofile.vue @@ -18,24 +18,6 @@ - - - - - - - - - { - if (this.ruleForm.newPassword !== value.toString()) { - callback(new Error('确认密码和新密码不一致!')) - } else { - callback() - } - } return { dialogFormVisible: this.dialog, ruleForm: { - nickname: '', - newPassword: '', - configPassword: '', - oldPassword: '' + nickname: '' }, rules: { nickname: [ { required: true, message: '昵称不能为空', trigger: 'blur' } - ], - oldPassword: [ - { required: true, message: '旧密码不能为空!', trigger: 'blur' } - ], - newPassword: [ - { required: true, message: '新密码不能为空!', trigger: 'blur' }, - { min: 4, max: 6, message: '长度在4~6个字符', trigger: 'blur' } - ], - configPassword: [ - { required: true, message: '确认密码不能为空!', trigger: 'blur' }, - { required: true, validator: confirmPassword, trigger: 'blur' } ] } @@ -110,10 +71,7 @@ export default { this.$refs[formName].validate((valid) => { if (valid) { updateAmend({ - nickname: this.ruleForm.nickname, - oldPassword: this.ruleForm.oldPassword, - password: this.ruleForm.newPassword, - configPassword: this.ruleForm.configPassword.toString() + nickname: this.ruleForm.nickname }).then(this.$message.success('修改个人信息成功!')) } })