gdpaoup
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
<view class="attention">
|
||||
<view class="attention_box" v-for="(item,index) in attention" :key="index">
|
||||
<view>
|
||||
<image :src="item.url"></image>
|
||||
<image :src="item.friend_tomavatar" mode="aspectFill"></image>
|
||||
</view>
|
||||
<view>{{item.name}}</view>
|
||||
<view>状态:{{item.type}}</view>
|
||||
<view>{{item.friend_tomname}}</view>
|
||||
<view>{{item.live_status ? '正在直播' : '未直播'}}</view>
|
||||
<view class="cur_two" @click="tapClick(index)" v-if = "item.about == 1">已关注</view>
|
||||
<view class="cur" @click="tapClick(index)" v-else = "item.about == 2">未关注</view>
|
||||
</view>
|
||||
@@ -19,37 +19,7 @@
|
||||
return {
|
||||
rSelect:[],
|
||||
type : '未关注',
|
||||
attention: [{
|
||||
url: '../../pageE/static/mine/1.png',
|
||||
name: '达人昵称',
|
||||
type: '正在直播',
|
||||
about: 1
|
||||
},
|
||||
{
|
||||
url: '../../pageE/static/mine/1.png',
|
||||
name: '达人昵称',
|
||||
type: '正在直播',
|
||||
about: 2
|
||||
},
|
||||
{
|
||||
url: '../../pageE/static/mine/1.png',
|
||||
name: '达人昵称',
|
||||
type: '正在直播',
|
||||
about: 1
|
||||
},
|
||||
{
|
||||
url: '../../pageE/static/mine/1.png',
|
||||
name: '达人昵称',
|
||||
type: '正在直播',
|
||||
about: 1
|
||||
},
|
||||
{
|
||||
url: '../../pageE/static/mine/1.png',
|
||||
name: '达人昵称',
|
||||
type: '正在直播',
|
||||
about: 1
|
||||
}
|
||||
]
|
||||
attention: []
|
||||
};
|
||||
},
|
||||
onLoad(){
|
||||
@@ -64,13 +34,11 @@
|
||||
this.rSelect.push(index); //选中添加到数组里
|
||||
} else {
|
||||
this.rSelect.splice(this.rSelect.indexOf(index), 1); //取消
|
||||
|
||||
}
|
||||
},
|
||||
snsfriendList(){
|
||||
this.$u.api.snsfriendList({}).then((res)=>{
|
||||
console.log(res)
|
||||
// this.attention = res.data
|
||||
this.attention = res.data;
|
||||
})
|
||||
}
|
||||
},
|
||||
@@ -102,7 +70,7 @@
|
||||
view image {
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
display: block;
|
||||
border-radius: 50%;
|
||||
margin: 24rpx auto 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user