关注跳转

This commit is contained in:
luyuan 2020-08-10 16:55:45 +08:00
parent 55297a6587
commit e3407b1046
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -1,6 +1,6 @@
<template>
<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>
<image :src="item.friend_tomavatar" mode="aspectFill"></image>
</view>
@ -40,6 +40,15 @@
this.$u.api.snsfriendList({}).then((res)=>{
this.attention = res.data;
})
},
navto(id){
// /pageB/details/index
this.$u.route({
url:"/pageB/details/index",
params:{
id
}
})
}
},
components: {