mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-14 21:36:42 +08:00
提交
This commit is contained in:
@@ -37,11 +37,12 @@
|
||||
<div v-if="item.info.keyword5">{{ item.info.keyword5 }}</div>
|
||||
</div>
|
||||
</router-link>
|
||||
<div class="case-info-summary">
|
||||
{{displayAll(item)}}
|
||||
<div class="case-info-summary two-line-ellipsis">
|
||||
{{item.info.summary}}
|
||||
<!-- {{displayAll(item)}}
|
||||
<span style="color:#588afc;cursor:pointer;" v-if="item.info.summary && item.info.summary.length>180" @click.stop="changeIsAll(item)">
|
||||
{{item.isAll?'收起':'展开'}}
|
||||
</span>
|
||||
</span> -->
|
||||
</div>
|
||||
<div style="display: flex;justify-content: flex-end;">
|
||||
<div style="margin:8px 0;">
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user