From ca4d5950d08aec6fe016b56f7125f7328c1e19a1 Mon Sep 17 00:00:00 2001 From: kPherox Date: Sat, 16 Nov 2019 03:12:16 +0900 Subject: [PATCH] Display user profile fields --- src/components/user_profile/user_profile.js | 8 ++++ src/components/user_profile/user_profile.vue | 50 ++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js index 00055707..c5ab5f26 100644 --- a/src/components/user_profile/user_profile.js +++ b/src/components/user_profile/user_profile.js @@ -123,6 +123,14 @@ const UserProfile = { onTabSwitch (tab) { this.tab = tab this.$router.replace({ query: { tab } }) + }, + linkClicked ({ target }) { + if (target.tagName === 'SPAN') { + target = target.parentNode + } + if (target.tagName === 'A') { + window.open(target.href, '_blank') + } } }, watch: { diff --git a/src/components/user_profile/user_profile.vue b/src/components/user_profile/user_profile.vue index 14082e83..f979eff4 100644 --- a/src/components/user_profile/user_profile.vue +++ b/src/components/user_profile/user_profile.vue @@ -11,6 +11,44 @@ :allow-zooming-avatar="true" rounded="top" /> +
+
+ +
+
+
+
+
+ {{ field.name }} +
+
+ {{ field.value }} +
+
+