From a35908280d11af4c49678b1c08519f0a3e54e131 Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 11 Feb 2022 17:56:25 +0800 Subject: [PATCH 1/3] stash --- pages/auth/auth.vue | 2 -- 1 file changed, 2 deletions(-) diff --git a/pages/auth/auth.vue b/pages/auth/auth.vue index 33a8231..8afe569 100644 --- a/pages/auth/auth.vue +++ b/pages/auth/auth.vue @@ -83,14 +83,12 @@ export default { mobileNo: this.phone, code: this.code, }).then((res) => { - console.log(111) this.$store.commit( "setToken", res.token_type + " " + res.access_token ); this.$Router.back(); }).catch((err) => { - console.log(2222) uni.showToast({ title: err.message, icon: "none", From 5f159a05b70fbbe3283613dc5437c040fc2f5d44 Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 11 Feb 2022 17:57:26 +0800 Subject: [PATCH 2/3] format --- pages/auth/auth.vue | 516 ++++++++++++++++++++++---------------------- 1 file changed, 252 insertions(+), 264 deletions(-) diff --git a/pages/auth/auth.vue b/pages/auth/auth.vue index 8afe569..05f59cf 100644 --- a/pages/auth/auth.vue +++ b/pages/auth/auth.vue @@ -1,265 +1,253 @@ - - - - - From ed9fe0ff9c0c26fb6bf404e597c65fb0789469f9 Mon Sep 17 00:00:00 2001 From: Jason Date: Mon, 14 Feb 2022 10:38:44 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E7=BE=A4=E7=BB=84=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=9A=84=E9=A1=B5=E9=9D=A2=E9=97=B4=E8=81=94=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/interfaces/im.js | 12 ++- pages/im/components/messageCell.vue | 27 +++--- pages/im/friends/search.vue | 2 +- pages/im/group/announceCreate.vue | 3 +- pages/im/group/announcement.vue | 7 +- pages/im/group/chat.nvue | 6 +- pages/im/group/info.vue | 52 +++++++---- pages/im/group/users.vue | 140 +++++++++++++++++++++++----- 8 files changed, 185 insertions(+), 64 deletions(-) diff --git a/apis/interfaces/im.js b/apis/interfaces/im.js index 63bc538..0b2cb7e 100644 --- a/apis/interfaces/im.js +++ b/apis/interfaces/im.js @@ -107,6 +107,15 @@ const getGroupInfo = (groupId) => { url: 'im/groups/' + groupId }) } + +/** + * 群组基础信息 + */ +const getGroupBase = (groupId) => { + return request({ + url: 'im/groups/' + groupId+ '/base' + }) +} const getGroupUsers = (groupId) => { return request({ @@ -194,7 +203,8 @@ export { getMyGroups, createGroup, updateGroup, - getGroupInfo, + getGroupInfo, + getGroupBase, getGroupUsers, getGroupAnnouncements, createGroupAnnouncement, diff --git a/pages/im/components/messageCell.vue b/pages/im/components/messageCell.vue index 16773e0..3c6563c 100644 --- a/pages/im/components/messageCell.vue +++ b/pages/im/components/messageCell.vue @@ -1,12 +1,13 @@