From 7df0107dbfa6eff737c98d56da8a2698b485d50f Mon Sep 17 00:00:00 2001 From: ctw Date: Thu, 13 Nov 2025 18:51:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E8=B5=84=E6=96=99=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 3 +- src/pages/profile/userinfo.vue | 202 +++++++++++++++++++++++++++------ unocss.config.ts | 78 +++++-------- 3 files changed, 199 insertions(+), 84 deletions(-) diff --git a/src/pages.json b/src/pages.json index abb88912..e81554e5 100644 --- a/src/pages.json +++ b/src/pages.json @@ -2,7 +2,8 @@ "easycom": { "autoscan": true, "custom": { - "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue" + "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue", + "^su-(.*)": "@/sheep/ui/su-$1/su-$1.vue" } }, "pages": [ diff --git a/src/pages/profile/userinfo.vue b/src/pages/profile/userinfo.vue index 245d1026..6507c1d5 100644 --- a/src/pages/profile/userinfo.vue +++ b/src/pages/profile/userinfo.vue @@ -5,54 +5,202 @@ - + - 语音签名 + + + + + 语音签名 - + - qqq + + 基本资料 - - + + + + + + + + + 个人简介 + + + + + + 个人相册 + {{ userinfo.photos.length }}/9 + + + + + + + + + + + + + + - - diff --git a/unocss.config.ts b/unocss.config.ts index 6ac5a110..582b6277 100644 --- a/unocss.config.ts +++ b/unocss.config.ts @@ -37,65 +37,49 @@ export default { }, rules: [ [ - /^main-text-(\d+)$/, - ([, d]) => ({ - 'font-size': `${d}rpx`, - 'font-weight': 800, - color: '#000', - 'line-height': `1.4em`, - }), + 'bg-color-theme', + { + 'background-color': '#ffcd32', + }, ], [ - /^sub-text-(\d+)$/, - ([, d]) => ({ - 'font-size': `${d}rpx`, - 'font-weight': 500, - color: '#333', - 'line-height': `1.4em`, - }), + 'bg-color-theme-dark', + { + 'background-color': 'rgba(255, 205, 49, 0.5)', + }, ], [ - /^second-text-(\d+)$/, - ([, d]) => ({ - 'font-size': `${d}rpx`, - 'font-weight': 500, - color: '#999', - 'line-height': `1.4em`, - }), + 'text-color-theme', + { + color: '#ffcd32', + }, + ], + [ + 'bg-color', + { + 'background-color': '#222222', + }, + ], + [ + 'bg-color-dark', + { + 'background-color': 'rgba(0, 0, 0, 0.3)', + }, + ], + [ + 'bg-color-light', + { + 'background-color': '#333333', + }, ], [ 'card', { - 'background-color': 'white', + 'background-color': 'rgba(0, 0, 0, 0.3)', 'box-shadow': '0rpx 8rpx 26rpx -4rpx rgba(210,210,210,0.5)', 'border-radius': '16rpx', }, ], - [ - 'shadow-main', - { - 'box-shadow': '0rpx 0rpx 4rpx 0rpx rgba(0, 0, 0, 0.1)', - }, - ], - [ - /^show-line$/, - ([, d]) => ({ - overflow: 'hidden', - 'white-space': 'nowrap', - 'text-overflow': 'ellipsis', - }), - ], - [ - /^show-line-(\d+)$/, - ([, d]) => ({ - display: '-webkit-box !important', - overflow: 'hidden', - 'text-overflow': 'ellipsis !important', - 'word-break': 'break-all', - '-webkit-line-clamp': d, - '-webkit-box-orient': 'vertical !important', - }), - ], ], transformers: [transformerAttributify(), transformerClass()],