好友申请列表/好友搜索列表/个人中心复制区块链
This commit is contained in:
@@ -53,7 +53,6 @@ export default {
|
|||||||
getFriends().then(res => {
|
getFriends().then(res => {
|
||||||
this.indexs = res.indexList;
|
this.indexs = res.indexList;
|
||||||
this.friends = res.itemArr;
|
this.friends = res.itemArr;
|
||||||
|
|
||||||
console.log(res.itemArr);
|
console.log(res.itemArr);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -69,7 +68,7 @@ export default {
|
|||||||
// 新朋友
|
// 新朋友
|
||||||
toPending() {
|
toPending() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/im/friends/pending'
|
url: '/pages/im/friends/search'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,19 +2,14 @@
|
|||||||
<view class="content">
|
<view class="content">
|
||||||
<!-- 用户信息 -->
|
<!-- 用户信息 -->
|
||||||
<view class="user-info">
|
<view class="user-info">
|
||||||
<u-avatar
|
<u-avatar :src="userInfo.portraitUrl" size="100" />
|
||||||
:src="userInfo.portraitUrl"
|
|
||||||
size="100"
|
|
||||||
></u-avatar>
|
|
||||||
|
|
||||||
<view class="nickname">{{ userInfo.name }}</view>
|
<view class="nickname">{{ userInfo.name }}</view>
|
||||||
<!-- <view class="sex">
|
<!-- <view class="sex">
|
||||||
<u-tag text="男" color="#fff" borderColor="#5db6ee" size="mini" icon="man" bgColor="#5db6ee"></u-tag>
|
<u-tag text="男" color="#fff" borderColor="#5db6ee" size="mini" icon="man" bgColor="#5db6ee"></u-tag>
|
||||||
<u-tag text="女" color="#fff" borderColor="#e4867a" size="mini" icon="woman" bgColor="#e4867a"></u-tag>
|
<u-tag text="女" color="#fff" borderColor="#e4867a" size="mini" icon="woman" bgColor="#e4867a"></u-tag>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="address">
|
<view class="address">{{ userInfo.address }}</view>
|
||||||
{{ userInfo.address}}
|
|
||||||
</view>
|
|
||||||
<!-- 通过/拒绝/已通过/已拒绝 -->
|
<!-- 通过/拒绝/已通过/已拒绝 -->
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="user-lists">
|
<!-- <view class="user-lists">
|
||||||
@@ -24,42 +19,35 @@
|
|||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
<!-- 发送消息 -->
|
<!-- 发送消息 -->
|
||||||
<view class="info-footer">
|
<view class="info-footer"><button class="open-btn" @click="toPrivate">发送消息</button></view>
|
||||||
<button
|
|
||||||
class="open-btn"
|
|
||||||
@click="toPrivate"
|
|
||||||
>发送消息</button>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getUserInfo } from "@/apis/interfaces/im.js";
|
import { getUserInfo } from '@/apis/interfaces/im.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
targetId: "",
|
targetId: '',
|
||||||
userInfo: {},
|
userInfo: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
getUserInfo(this.$Route.query.id).then((res) => {
|
getUserInfo(this.$Route.query.id).then(res => {
|
||||||
this.userInfo = res;
|
this.userInfo = res;
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: res.name,
|
title: res.name
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toPrivate() {
|
toPrivate() {
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url:
|
url: '/pages/im/private/index?conversationType=1&targetId=' + this.targetId
|
||||||
"/pages/im/private/index?conversationType=1&targetId=" +
|
|
||||||
this.targetId,
|
|
||||||
});
|
});
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Description:新朋友即新增好友申请列表 可以搜索跳转
|
* @Description:搜索新朋友页面
|
||||||
* @Author: Aimee·Zhang
|
* @Author: Aimee·Zhang
|
||||||
* @Date: 2022-01-24 10:49:15
|
* @Date: 2022-01-24 10:49:15
|
||||||
* @LastEditors: Aimee·Zhang
|
* @LastEditors: Aimee·Zhang
|
||||||
@@ -20,6 +20,7 @@
|
|||||||
@search="search"
|
@search="search"
|
||||||
inputAlign="center"
|
inputAlign="center"
|
||||||
bgColor="#f9f9f9"
|
bgColor="#f9f9f9"
|
||||||
|
:focus="focused"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
</u-sticky>
|
</u-sticky>
|
||||||
@@ -41,7 +42,8 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
searchResult: [],
|
searchResult: [],
|
||||||
searchValue: ''
|
searchValue: '',
|
||||||
|
focused:true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user