8.27更新自定义组件

This commit is contained in:
zoujiandong
2025-08-27 11:12:35 +08:00
parent ef5b3fb59f
commit 58d9fb3d7a
5 changed files with 175 additions and 3 deletions
+4 -2
View File
@@ -24,7 +24,7 @@
<view class="base-info">
<view class="name-row">
<text class="name">aa</text>
<uni-icons type="person" size="20" color="#c0392b" style="margin-left: 8rpx;"></uni-icons>
<up-image :src="manImg" width="36rpx" height="36rpx" ></up-image>
</view>
<view class="line"><text class="label">昵称:</text><text class="value">Android</text></view>
<view class="line"><text class="label">年龄:</text><text class="value">23</text><text class="sep">|</text><text class="label">民族:</text><text class="value">未知</text></view>
@@ -88,6 +88,8 @@
import msgImg from "@/static/icon_message_big.png"
import planImg from "@/static/image_backgrond_red_big1.png"
import recordImg from "@/static/image_backgrond_red_big.png"
import manImg from "@/static/new_man_big.png"
import womanImg from "@/static/new_woman_big.png"
const showAllHistory = ref(false)
const historyText = '2025年检查出戊型肝炎, 同时患有结核。有饮酒史、无吸烟史, 无输血或其他血液制品史, 使用过恩…'
@@ -110,7 +112,7 @@
.avatar { width: 140rpx; height: 140rpx; border-radius: 12rpx; margin-right: 20rpx; }
.base-info { flex:1; }
.name-row { display:flex; align-items:center; margin-bottom: 10rpx; }
.name { font-size: 40rpx; color:#222; font-weight: 600; }
.name { font-size: 40rpx; color:#222; margin-right: 10rpx;}
.line { font-size: 28rpx; color:#666; margin-top: 6rpx; display:flex; align-items:center; }
.label { color:#999;white-space: nowrap; }
.value { color:#333; }