fixing bug 8.12
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
<view class="concerns-container">
|
||||
<view v-for="(info, index) in list" :key="index">
|
||||
<view class="daren-item">
|
||||
<image class="head" :src="info.friend_tomavatar" @click="viewDetails(info.friend_tomid)"></image>
|
||||
<text class="name" @click="viewDetails(info.friend_tomid)">{{ info.friend_tomname || '' }}</text>
|
||||
<image class="head" :src="info.friend_tomavatar" @click="viewDetails({ id: info.friend_tomid, type: info.role })"></image>
|
||||
<text class="name" @click="viewDetails({ id: info.friend_tomid, type: info.role })">{{ info.friend_tomname || '' }}</text>
|
||||
<view class="guanzhu" @click="changeType(info.friend_tomid)" v-if="info.friend_followstate == 1">取消关注</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -31,14 +31,15 @@ export default {
|
||||
this.$u.api.attentionMemberList().then(res => {
|
||||
uni.stopPullDownRefresh();
|
||||
if(res.errCode == 0) {
|
||||
this.list = res.data;
|
||||
this.list = res.data.data;
|
||||
} else {
|
||||
this.list = [];
|
||||
}
|
||||
})
|
||||
},
|
||||
viewDetails(id) {
|
||||
this.$u.route('pageB/details/index', {
|
||||
viewDetails({ id, type }) {
|
||||
let src = type == 3 ? 'pageB/details/index' : 'pageC/merchant/index';
|
||||
this.$u.route(src, {
|
||||
id: id
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user