From 16f3a492e1835268b38a7d2727001bd6ea6b72d9 Mon Sep 17 00:00:00 2001 From: claw_bot Date: Wed, 18 Mar 2026 08:56:35 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=BF=E6=8D=A2=20u-input=20=E4=B8=BA?= =?UTF-8?q?=E5=8E=9F=E7=94=9F=20input=EF=BC=8C=E4=BF=AE=E5=A4=8D=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=B0=8F=E7=A8=8B=E5=BA=8F=E5=85=BC=E5=AE=B9=E6=80=A7?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/config/config.vue | 42 ++++++++++++++++++++++++++++------------- pages/detail/detail.vue | 16 +++++++++++++--- todo.md | 20 ++++++++++++-------- 3 files changed, 54 insertions(+), 24 deletions(-) diff --git a/pages/config/config.vue b/pages/config/config.vue index 043138c..2f65772 100755 --- a/pages/config/config.vue +++ b/pages/config/config.vue @@ -32,11 +32,10 @@ 组合名称 - @@ -87,13 +86,12 @@ 单元名称/代码 - @@ -114,22 +112,20 @@ 买入均价 - 持有数量 - @@ -757,4 +753,24 @@ onShow(async () => { .btn-submit { /* 样式已内联设置 */ } + +/* 原生 input 样式 */ +.native-input { + background-color: #F9FAFB; + border-radius: 20rpx; + height: 96rpx; + padding: 0 32rpx; + font-size: 28rpx; + color: #1F2937; +} + +.native-input-sm { + background-color: #FFFFFF; + border-radius: 16rpx; + height: 72rpx; + padding: 0 20rpx; + font-size: 26rpx; + color: #1F2937; + border: 1rpx solid #E5E7EB; +} \ No newline at end of file diff --git a/pages/detail/detail.vue b/pages/detail/detail.vue index 1c30efb..6bc5c8a 100755 --- a/pages/detail/detail.vue +++ b/pages/detail/detail.vue @@ -423,11 +423,10 @@ 备注 - @@ -1719,4 +1718,15 @@ const deletePortfolio = async () => { .nav-stats .text-green { color: #DC2626; } + +/* 原生 input 样式 */ +.native-input-remark { + background-color: #F9FAFB; + border-radius: 16rpx; + height: 80rpx; + padding: 0 20rpx; + border: 2rpx solid #E5E7EB; + font-size: 28rpx; + color: #1F2937; +} \ No newline at end of file diff --git a/todo.md b/todo.md index c6fcfe2..643ec54 100644 --- a/todo.md +++ b/todo.md @@ -38,21 +38,25 @@ ## 待处理 -### P1 - CSS 清理 -- [ ] index.vue: 检查并移除未使用的 CSS 类 -- [ ] detail.vue: 进一步清理冗余样式 -- [ ] config.vue: 优化表单样式 +### P1 - CSS 清理 ✅ 完成 +- [x] index.vue: 检查并移除未使用的 CSS 类 +- [x] detail.vue: 进一步清理冗余样式 +- [x] config.vue: 优化表单样式 -### P2 - 代码质量 -- [ ] 统一错误处理机制 -- [ ] 添加 TypeScript 类型定义 -- [ ] 优化 API 调用封装 +### P2 - 小程序兼容性 ✅ 完成 +- [x] config.vue: 替换 4 处 u-input 为原生 input +- [x] detail.vue: 替换 1 处 u-input 为原生 input ### P3 - 功能增强 - [ ] 下拉刷新 - [ ] 上拉加载更多 - [ ] 空状态优化 +### P4 - 代码质量 +- [ ] 统一错误处理机制 +- [ ] 添加 TypeScript 类型定义 +- [ ] 优化 API 调用封装 + ## 兼容性 - ✅ 微信小程序(已验证) - ⚠️ H5(需要条件编译恢复)