From dd7eee277ef72edc168677a967a53ca0ed81a68b Mon Sep 17 00:00:00 2001 From: yatgei Date: Mon, 13 Oct 2025 18:22:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=85=B1=E5=90=8C?= =?UTF-8?q?=E7=BE=A4=E7=BB=84=E5=AF=B9=E8=AF=9D=E6=A1=86=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=B9=B6=E5=9C=A8=E7=94=A8=E6=88=B7=E8=AF=A6=E6=83=85=E4=B8=AD?= =?UTF-8?q?=E9=9B=86=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manage/components/CommonDialogModal.vue | 131 +++++++ .../js/pages/manage/components/UserDetail.vue | 347 ++++++++++++++---- .../pages/manage/components/UserTagsModal.vue | 2 +- .../js/pages/manage/setting/personal.vue | 2 +- .../sass/pages/components/user-detail.scss | 32 +- 5 files changed, 434 insertions(+), 80 deletions(-) create mode 100644 resources/assets/js/pages/manage/components/CommonDialogModal.vue diff --git a/resources/assets/js/pages/manage/components/CommonDialogModal.vue b/resources/assets/js/pages/manage/components/CommonDialogModal.vue new file mode 100644 index 000000000..0f57e0eb0 --- /dev/null +++ b/resources/assets/js/pages/manage/components/CommonDialogModal.vue @@ -0,0 +1,131 @@ + + + + + + + diff --git a/resources/assets/js/pages/manage/components/UserDetail.vue b/resources/assets/js/pages/manage/components/UserDetail.vue index b525d992c..e75e3302e 100755 --- a/resources/assets/js/pages/manage/components/UserDetail.vue +++ b/resources/assets/js/pages/manage/components/UserDetail.vue @@ -5,7 +5,8 @@ :fullscreen="isFullscreen" :mask-closable="false" :footer-hide="true" - width="420"> + width="420" + >
@@ -14,70 +15,113 @@ :userid="userData.userid" :size="80" :show-state-dot="false" - @on-click="onOpenAvatar"/> + @on-click="onOpenAvatar" + />
- - - +
-

{{userData.introduction || 'CEO System D, Because your satisfaction is everything & Standing out from the rest, and that\'s what we want you to be as well.'}}

+

{{ userData.introduction }}

-

{{$L('Information')}}

+

{{ $L("个人信息") }}

  • - - {{$L('Website')}} - www.Arnoldy.com + + {{ $L("部门") }} + {{ + userData.department_name || "-" + }}
  • +
  • - {{$L('Email')}} - Hello@adalahreza.com + {{ $L("邮箱") }} + {{ + userData.email || "-" + }}
  • - {{$L('Phone')}} - +62 517 218 92 00 + {{ $L("电话") }} + {{ userData.tel || "-" }}
  • - {{$L('Joined')}} - {{$A.newDateString(userData.line_at, 'DD MMMM, YYYY')}} + {{ $L("生日") }} + {{ + userData.birthday || "-" + }}
-
-
-
- {{tag.name}} - UI Designer - UX Designer - Design System - Product - Succesfull +
+
+ + +
+
+ +
- {{$L('暂无个性标签')}}
@@ -85,97 +129,142 @@ v-if="userData.userid" v-model="tagModalVisible" :userid="userData.userid" - @updated="onTagsUpdated"/> + @updated="onTagsUpdated" + /> + + diff --git a/resources/assets/js/pages/manage/components/UserTagsModal.vue b/resources/assets/js/pages/manage/components/UserTagsModal.vue index 9b0ac968f..61da50424 100644 --- a/resources/assets/js/pages/manage/components/UserTagsModal.vue +++ b/resources/assets/js/pages/manage/components/UserTagsModal.vue @@ -43,7 +43,7 @@ :class="{'is-editing': editId === tag.id}">
- {{tag.name}} + {{tag.name}}
{{tag.name}} {{$L('暂无个性标签')}} diff --git a/resources/assets/sass/pages/components/user-detail.scss b/resources/assets/sass/pages/components/user-detail.scss index 176a7a8ca..9418f509f 100755 --- a/resources/assets/sass/pages/components/user-detail.scss +++ b/resources/assets/sass/pages/components/user-detail.scss @@ -1,6 +1,7 @@ .common-user-detail-modal { .ivu-modal-content { - border-radius: 16px; + border-radius: 16px !important; + margin-top: calc(var(--status-bar-height) + 46px) !important; } .ivu-modal-body { padding: 0 !important; @@ -8,10 +9,10 @@ .user-detail-body { .profile-header { position: relative; - height: 120px; + height: 140px; .cover-photo { - background: #1a2c47; - height: 80px; + background: #84C56A; + height: 100px; border-top-left-radius: 16px; border-top-right-radius: 16px; } @@ -64,6 +65,8 @@ color: #515a6e; line-height: 1.5; margin: 16px 0; + padding: 0 50px; + font-size: 12px; } .profile-information { @@ -84,7 +87,7 @@ li { display: flex; - align-items: center; + align-items: flex-start; // 避免多行内容导致垂直居中不齐 padding: 8px 0; font-size: 14px; @@ -95,26 +98,39 @@ } .label { - color: #515a6e; + color: #808695; + flex: 0 0 64px; + flex-shrink: 0; + line-height: 22px; + margin-right: 8px; } .value { - margin-left: auto; color: #17233d; font-weight: 500; + flex: 1 1 auto; + min-width: 0; + margin-left: 0; + text-align: right; + white-space: normal; + word-break: break-word; + overflow-wrap: break-word; } } } } .profile-tags { - margin-top: 24px; + margin-top: 12px; + padding-top: 12px; + border-top: 1px solid #80869550; cursor: pointer; .tags-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; + position: relative; } .ivu-tag { margin: 0;