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.nickname || 'Arnoldy'}} -

{{userData.nickname || 'Arnoldy Chafe'}}

+ @{{ userData.profession || "管理员" }} +

+ {{ userData.nickname}} +

- {{userData.address || 'Bandung'}} + + {{ $L("共同群组") }}: + {{ $L("(*)个", commonDialog.total) }} | - Joined {{$A.newDateString(userData.line_at, 'MMM YYYY')}} + {{ $L("最后在线") }}: + {{ + $A.newDateString( + userData.line_at, + "YYYY-MM-DD HH:mm" + ) || "-" + }}
- - - +
-

{{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("个人信息") }}

-
-
-
- {{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;