xbx #143

Merged
theluyuan merged 6 commits from xbx into master 2020-08-10 09:39:15 +00:00
Showing only changes of commit e3407b1046 - Show all commits

View File

@ -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: {