This commit is contained in:
zhaofang
2022-10-19 19:10:43 +08:00
parent ee7d4554b4
commit 467e697720
7 changed files with 38 additions and 13 deletions

View File

@@ -19,8 +19,8 @@
<span style="color: #A3680A;margin-left:12px;line-height: 24px;">经验值{{statData.evalue}}</span>
</div>
<el-button round plain class="btn-user" size="small" v-if="pageId != userInfo.aid && !isFollowHas" @click="toFollow()">关注TA</el-button>
<el-button round plain class="btn-user" size="small" v-if="isFollowHas">已关注</el-button>
<el-button round plain class="btn-user" size="small"><router-link :to="'/home/'+pageId+'/leaving'">去留言</router-link></el-button>
<el-button round plain class="btn-user" size="small" @click="cancelFollow()" v-if="isFollowHas">已关注</el-button>
<el-button round plain class="btn-user" size="small"><router-link :to="'/home/'+pageId+'/leaving'">{{pageId == userInfo.aid ? '留言板':'去留言'}}</router-link></el-button>
</div>
<div class="content-bottom">
<p class="portal-summary-text">{{userData.sign}}</p>
@@ -115,6 +115,15 @@
}
},
methods:{
cancelFollow() {
apiFollow.remove(this.pageId).then(res=>{
if(res.status == 200) {
this.isFollowHas = false;
} else {
this.$message.error(res.message);
}
})
},
loadUserStat(){//获取经验值和等级
apiUser.getByIds([this.pageId]).then(res => {
if (res.status == 200) {