关注跳转
This commit is contained in:
parent
55297a6587
commit
e3407b1046
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="attention">
|
<view class="attention">
|
||||||
<view class="attention_box" v-for="(item,index) in attention" :key="index">
|
<view class="attention_box" v-for="(item,index) in attention" :key="index" @click="navto(item.friend_tomid)">
|
||||||
<view>
|
<view>
|
||||||
<image :src="item.friend_tomavatar" mode="aspectFill"></image>
|
<image :src="item.friend_tomavatar" mode="aspectFill"></image>
|
||||||
</view>
|
</view>
|
||||||
@ -40,6 +40,15 @@
|
|||||||
this.$u.api.snsfriendList({}).then((res)=>{
|
this.$u.api.snsfriendList({}).then((res)=>{
|
||||||
this.attention = res.data;
|
this.attention = res.data;
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
navto(id){
|
||||||
|
// /pageB/details/index
|
||||||
|
this.$u.route({
|
||||||
|
url:"/pageB/details/index",
|
||||||
|
params:{
|
||||||
|
id
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
Loading…
Reference in New Issue
Block a user