Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-05-14 10:02:24 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3c2d187eee215628ef3405bc238711603aa735ac
3c2d187e
1 parent
7c0897b1
✨ feat(我的关注模块): 头像可以进入关注人主页
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
src/views/me/followList.vue
src/views/me/followList.vue
View file @
3c2d187
<template>
<div class="follow-list-page">
<template v-for="(item, key) in followList" :key="key">
<div class="info van-hairline--bottom">
<div
@click="getUserInfo(item)"
class="info van-hairline--bottom">
<van-row>
<van-col>
<van-image round width="50" height="50" :src="item.avatar" style="padding-right: 1rem;" />
...
...
@@ -26,6 +26,8 @@ import { useRoute, useRouter } from 'vue-router'
import axios from '@/utils/axios';
import { Toast } from 'vant';
const $router = useRouter();
// 关注列表联调
const followList = ref([])
axios.get('/srv/?a=my_follow')
...
...
@@ -42,7 +44,18 @@ axios.get('/srv/?a=my_follow')
})
.catch(err => {
console.error(err);
})
});
const getUserInfo = (v) => {
// 从个人头像进入的,不能再往下级进入
$router.push({
path: '/client/personIndex',
query: {
perf_id: v.id,
type: 'read-only'
}
})
}
</script>
<script>
...
...
@@ -93,4 +106,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
...
...
Please
register
or
login
to post a comment