diff --git a/apis/interfaces/im.js b/apis/interfaces/im.js
index 55652a8..9c77b79 100644
--- a/apis/interfaces/im.js
+++ b/apis/interfaces/im.js
@@ -53,9 +53,12 @@ const rejectFriend = (targetId) => {
})
}
-const searchFriend = (mobile) => {
+const searchFriend = (value) => {
return request({
- url: 'im/search?mobile=' + mobile
+ url: 'im/search',
+ data:{
+ keyword:value
+ }
})
}
diff --git a/components/friend-apply-reject-agree/index.vue b/components/friend-apply-reject-agree/index.vue
new file mode 100644
index 0000000..273740a
--- /dev/null
+++ b/components/friend-apply-reject-agree/index.vue
@@ -0,0 +1,126 @@
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+ {{ item.address || '这家伙很懒,什么都没有添加~' }}
+ {{ item.remark || '你好,听说你很优秀想认识~' }}
+
+
+ 通过
+ 拒绝
+ 申请
+ 已是好友
+
+
+
+
+
+
+
+
+
+
diff --git a/pages.json b/pages.json
index d6d23bf..a1838ed 100644
--- a/pages.json
+++ b/pages.json
@@ -433,6 +433,14 @@
"navigationBarBackgroundColor":"#F3F6FB"
}
},
+ {
+ "path": "pages/im/friends/search",
+ "name": "SearchFriend",
+ "style": {
+ "navigationBarTitleText": "好友搜索",
+ "navigationBarBackgroundColor":"#F3F6FB"
+ }
+ },
{
"path": "pages/im/friends/info",
"name": "imFriendsInfo",
diff --git a/pages/im/friends/info.vue b/pages/im/friends/info.vue
index 6b3323a..acfaa35 100644
--- a/pages/im/friends/info.vue
+++ b/pages/im/friends/info.vue
@@ -2,9 +2,12 @@
-
+
- {{ userInfo.name }}111
+ {{ userInfo.name }}
+}
+
diff --git a/pages/im/friends/pending.vue b/pages/im/friends/pending.vue
index 70472eb..de0d291 100644
--- a/pages/im/friends/pending.vue
+++ b/pages/im/friends/pending.vue
@@ -1,119 +1,83 @@
+
+
-
-
+
-
-
-
-
-
-
-
- 申请
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ 暂无申请记录~
+
diff --git a/pages/im/friends/search.vue b/pages/im/friends/search.vue
new file mode 100644
index 0000000..3053522
--- /dev/null
+++ b/pages/im/friends/search.vue
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
+ 暂无匹配内容~
+
+
+
+
+
+
+
diff --git a/static/imgs/no-friend.png b/static/imgs/no-friend.png
new file mode 100644
index 0000000..1182c17
Binary files /dev/null and b/static/imgs/no-friend.png differ
diff --git a/static/imgs/no-search.png b/static/imgs/no-search.png
new file mode 100644
index 0000000..0f3d6cb
Binary files /dev/null and b/static/imgs/no-search.png differ