From ed96c0838498b74063770639bbb9cd10ffc42ff2 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Mon, 31 Oct 2022 12:08:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Index.vue | 3 --- src/views/user/Setting.vue | 31 ++++++++++++++++++++----------- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/src/views/Index.vue b/src/views/Index.vue index 70c61018..87b109ca 100644 --- a/src/views/Index.vue +++ b/src/views/Index.vue @@ -632,7 +632,6 @@ apicourseStudy.lastStudy().then(res => { if (res.status === 200) { this.lastStudy = res.result; - //console.log(this.lastStudy,'this.lastStudy'); if (res.result != '' && res.result.courseId) { this.overlayShow = true; } @@ -646,7 +645,6 @@ //引导页弹框是否显示 //检查本地,减少服务器请求的次数 let localGuide=localStorage.getItem('user-guide-'+this.userInfo.aid); - //console.log("=== "+localGuide); if(!localGuide){ apiGuide.hasUser().then(res=>{ if(res.status==200){ @@ -740,7 +738,6 @@ let key = 'index'; apiPlace.detail(key).then(res => { let lmj = JSON.parse(res.result.content) - console.log(lmj,'lmj'); this.resonimg = lmj; }) }, diff --git a/src/views/user/Setting.vue b/src/views/user/Setting.vue index c635e008..bc344c9d 100644 --- a/src/views/user/Setting.vue +++ b/src/views/user/Setting.vue @@ -29,13 +29,13 @@
-

个人签名

+

个人签名

{{form.sign}} - +

取消 @@ -45,24 +45,27 @@
-

个人主页设置

+

个人主页设置

-
关闭个人主页 - - 保存 +
+ 关闭个人主页 + 打开个人主页 + + 取消 + 保存
-

动态可见范围

+

动态可见范围

全部动态 最近半年动态 最近三个月动态 - - 保存 + 取消 + 保存
@@ -187,6 +190,8 @@ } }; return { + dynamicDataEdit:false, + hideHomeEdit:false, signData:{ sign:'', isEdit:false @@ -236,6 +241,9 @@ } }, watch:{ + // hideHome() { + // this.hideHomeEdit = true; + // }, dialogVisiblePassword(val) { if(!val) { this.passwordForm={}; @@ -254,7 +262,6 @@ if(this.userInfo.avatar){ this.avatarUrl = this.avatar; } - console.log("sss "+this.userInfo.showHome); this.hideHome = !this.userInfo.showHome; this.load(); this.getInfo(); @@ -266,8 +273,9 @@ // 保存个人主页选项的编辑 saveHideHome(){ //执行隐藏操作 - userApi.updateShowHome(!this.hideHome).then(res=>{ + userApi.updateShowHome(this.hideHome).then(res=>{ if(res.status == 200) { + this.hideHomeEdit = false; //this.userInfo.showHome = !this.hideHome; this.$message.success('修改成功'); this.$store.dispatch('InitData'); @@ -301,6 +309,7 @@ saveDynamic() { userApi.updateDynamic(this.form.dynamic).then(res=>{ if(res.status == 200) { + this.dynamicDataEdit = false; this.$message.success('修改动态可见范围成功'); } })