From 42fc52a067f3caf54c38058a28beba7ae2da37a5 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Sat, 11 Dec 2021 10:20:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=94=E7=B3=BB=E4=BA=BA=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E6=9B=B4=E5=A4=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/images/file/other.svg | 1 + resources/assets/js/components/UserAvatar.vue | 12 ++++ .../assets/js/pages/manage/messenger.vue | 56 +++++++++++++------ .../assets/sass/pages/page-messenger.scss | 3 +- 4 files changed, 55 insertions(+), 17 deletions(-) create mode 100644 public/images/file/other.svg diff --git a/public/images/file/other.svg b/public/images/file/other.svg new file mode 100644 index 00000000..356c09f5 --- /dev/null +++ b/public/images/file/other.svg @@ -0,0 +1 @@ + diff --git a/resources/assets/js/components/UserAvatar.vue b/resources/assets/js/components/UserAvatar.vue index d87bf288..e709d6d1 100755 --- a/resources/assets/js/components/UserAvatar.vue +++ b/resources/assets/js/components/UserAvatar.vue @@ -67,6 +67,10 @@ type: String, default: '' }, + asynch: { + type: Boolean, + default: true + }, }, data() { return { @@ -172,6 +176,14 @@ this.user = this.userInfo; return; } + if (this.asynch) { + setTimeout(this.loadData); + } else { + this.loadData(); + } + }, + + loadData() { this.$store.dispatch("getUserBasic", { userid: this.userid, success: (user) => { diff --git a/resources/assets/js/pages/manage/messenger.vue b/resources/assets/js/pages/manage/messenger.vue index fcbc76e3..f965682b 100644 --- a/resources/assets/js/pages/manage/messenger.vue +++ b/resources/assets/js/pages/manage/messenger.vue @@ -19,7 +19,11 @@ {{$L(item.name)}}

-
+
    -
  • +
  • {{label}}
    • @@ -55,8 +59,9 @@
  • +
  • {{$L('共' + contactsList.length + '位联系人')}}
-
+
@@ -81,9 +86,10 @@