Commit 0342a36e by liimin

style(app): 优化应用样式和组件引用类型定义

- 移除渐变背景样式,统一使用纯色背景提升性能
- 更新HBuilderX启动配置中的playground类型设置
- 优化登录页面背景样式,使用淡雅蓝灰配色方案
- 添加相对定位到全局布局样式
- 修复自动登录文本样式选择器语法错误
- 为组件引用添加泛型类型定义,提高代码安全性
- 使用工具函数安全访问JSON对象属性,避免类型转换错误
- 统一使用工具函数处理组件方法调用,提升代码可维护性
- 优化数据处理逻辑,增强空值检查和异常处理能力
- 简化TypeScript配置,移除冗余继承配置项
1 parent d911f63d
...@@ -3,14 +3,15 @@ ...@@ -3,14 +3,15 @@
"configurations" : [ "configurations" : [
{ {
"customPlaygroundType" : "local", "customPlaygroundType" : "local",
"playground" : "standard", "playground" : "custom",
"type" : "uni-app:app-android" "type" : "uni-app:app-android"
}, },
{ {
"bundleId" : "uni.app.UNIB602BFA", "bundleId" : "uni.app.UNIB602BFA",
"certificateFile" : "/Users/cenchengwei/Desktop/uniapp-x-tape/证书.p12", "certificateFile" : "/Users/cenchengwei/Desktop/uniapp-x-tape/证书.p12",
"certificateProfileFile" : "/Users/cenchengwei/Desktop/uniapp-x-tape/uniappxtapeProfiles.mobileprovision", "certificateProfileFile" : "/Users/cenchengwei/Desktop/uniapp-x-tape/uniappxtapeProfiles.mobileprovision",
"playground" : "custom", "customPlaygroundType" : "device",
"playground" : "standard",
"runSignStatus" : 1, "runSignStatus" : 1,
"type" : "uni-app:app-ios" "type" : "uni-app:app-ios"
} }
......
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
.search-input { .search-input {
width: 100%; width: 100%;
height: var(--account-search-height); height: var(--account-search-height);
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); background-color: #ffffff;
border-radius: 20px; border-radius: 20px;
box-sizing: border-box; box-sizing: border-box;
padding: 0 16px; padding: 0 16px;
......
...@@ -380,7 +380,7 @@ onMounted(() => { ...@@ -380,7 +380,7 @@ onMounted(() => {
.items { .items {
min-height: 92px; min-height: 92px;
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); background-color: #ffffff;
border-radius: 16px; border-radius: 16px;
padding: 18px; padding: 18px;
display: flex; display: flex;
...@@ -425,7 +425,7 @@ onMounted(() => { ...@@ -425,7 +425,7 @@ onMounted(() => {
0 1px 2px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.08),
0 2px 6px rgba(15, 23, 42, 0.1); 0 2px 6px rgba(15, 23, 42, 0.1);
border-color: rgba(22, 119, 255, 0.4); border-color: rgba(22, 119, 255, 0.4);
background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%); background-color: #f0f4ff;
} }
.left { .left {
...@@ -481,34 +481,34 @@ onMounted(() => { ...@@ -481,34 +481,34 @@ onMounted(() => {
} }
.midle_1 { .midle_1 {
background: linear-gradient(135deg, rgba(242, 71, 36, 0.12) 0%, rgba(242, 71, 36, 0.06) 100%); background-color: rgba(242, 71, 36, 0.1);
.midle-text { color: #f24724; } .midle-text { color: #f24724; }
} }
.midle_2 { .midle_2 {
background: linear-gradient(135deg, rgba(255, 157, 10, 0.12) 0%, rgba(255, 157, 10, 0.06) 100%); background-color: rgba(255, 157, 10, 0.1);
.midle-text { color: #ff9d0a; } .midle-text { color: #ff9d0a; }
} }
.midle_3 { .midle_3 {
background: linear-gradient(135deg, rgba(52, 123, 255, 0.12) 0%, rgba(52, 123, 255, 0.06) 100%); background-color: rgba(52, 123, 255, 0.1);
.midle-text { color: #347bff; } .midle-text { color: #347bff; }
} }
.midle_4 { .midle_4 {
background: linear-gradient(135deg, rgba(53, 195, 118, 0.12) 0%, rgba(53, 195, 118, 0.06) 100%); background-color: rgba(53, 195, 118, 0.1);
.midle-text { color: #35c376; } .midle-text { color: #35c376; }
} }
.midle_5 { .midle_5 {
background: linear-gradient(135deg, rgba(53, 195, 118, 0.12) 0%, rgba(53, 195, 118, 0.06) 100%); background-color: rgba(53, 195, 118, 0.1);
.midle-text { color: #35c376; } .midle-text { color: #35c376; }
} }
} }
} }
.active { .active {
background: linear-gradient(135deg, rgba(22, 119, 255, 0.06) 0%, rgba(22, 119, 255, 0.02) 100%); background-color: rgba(22, 119, 255, 0.04);
border-color: rgba(22, 119, 255, 0.3); border-color: rgba(22, 119, 255, 0.3);
box-shadow: box-shadow:
0 4px 16px rgba(22, 119, 255, 0.12), 0 4px 16px rgba(22, 119, 255, 0.12),
......
...@@ -306,7 +306,7 @@ defineExpose({ ...@@ -306,7 +306,7 @@ defineExpose({
.items { .items {
min-height: 72px; min-height: 72px;
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); background-color: #ffffff;
border-radius: 14px; border-radius: 14px;
padding: 12px 14px; padding: 12px 14px;
display: flex; display: flex;
...@@ -338,7 +338,7 @@ defineExpose({ ...@@ -338,7 +338,7 @@ defineExpose({
0 1px 2px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.08),
0 2px 6px rgba(15, 23, 42, 0.1); 0 2px 6px rgba(15, 23, 42, 0.1);
border-color: rgba(22, 119, 255, 0.4); border-color: rgba(22, 119, 255, 0.4);
background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%); background-color: #f0f4ff;
} }
} }
...@@ -357,7 +357,7 @@ defineExpose({ ...@@ -357,7 +357,7 @@ defineExpose({
width: 36px; width: 36px;
height: 36px; height: 36px;
border-radius: 10px; border-radius: 10px;
background: linear-gradient(135deg, rgba(22, 119, 255, 0.08) 0%, rgba(22, 119, 255, 0.04) 100%); background-color: rgba(22, 119, 255, 0.06);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
...@@ -397,7 +397,7 @@ defineExpose({ ...@@ -397,7 +397,7 @@ defineExpose({
} }
.items.active { .items.active {
background: linear-gradient(135deg, rgba(22, 119, 255, 0.05) 0%, rgba(22, 119, 255, 0.02) 100%); background-color: rgba(22, 119, 255, 0.04);
border-color: rgba(22, 119, 255, 0.25); border-color: rgba(22, 119, 255, 0.25);
box-shadow: box-shadow:
0 3px 12px rgba(22, 119, 255, 0.1), 0 3px 12px rgba(22, 119, 255, 0.1),
...@@ -410,7 +410,7 @@ defineExpose({ ...@@ -410,7 +410,7 @@ defineExpose({
} }
.items.active .left .store-badge .sprite-icon { .items.active .left .store-badge .sprite-icon {
background: linear-gradient(135deg, rgba(22, 119, 255, 0.12) 0%, rgba(22, 119, 255, 0.06) 100%); background-color: rgba(22, 119, 255, 0.1);
box-shadow: 0 2px 8px rgba(22, 119, 255, 0.15); box-shadow: 0 2px 8px rgba(22, 119, 255, 0.15);
transform: scale(1.08); transform: scale(1.08);
} }
......
...@@ -223,7 +223,7 @@ defineExpose({ ...@@ -223,7 +223,7 @@ defineExpose({
.items { .items {
min-height: 92px; min-height: 92px;
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); background-color: #ffffff;
border-radius: 16px; border-radius: 16px;
padding: 18px; padding: 18px;
display: flex; display: flex;
...@@ -251,7 +251,7 @@ defineExpose({ ...@@ -251,7 +251,7 @@ defineExpose({
0 1px 2px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.08),
0 2px 6px rgba(15, 23, 42, 0.1); 0 2px 6px rgba(15, 23, 42, 0.1);
border-color: rgba(22, 119, 255, 0.4); border-color: rgba(22, 119, 255, 0.4);
background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%); background-color: #f0f4ff;
} }
.left { .left {
...@@ -277,19 +277,19 @@ defineExpose({ ...@@ -277,19 +277,19 @@ defineExpose({
} }
} }
// 不同场景的颜色(渐变增强) // 不同场景的颜色
.scene-type-0 { .scene-type-0 {
background: linear-gradient(135deg, rgba(255, 157, 10, 0.12) 0%, rgba(255, 157, 10, 0.06) 100%); background-color: rgba(255, 157, 10, 0.1);
.scene-icon-text { color: #ff9d0a; } .scene-icon-text { color: #ff9d0a; }
} }
.scene-type-1 { .scene-type-1 {
background: linear-gradient(135deg, rgba(242, 71, 36, 0.12) 0%, rgba(242, 71, 36, 0.06) 100%); background-color: rgba(242, 71, 36, 0.1);
.scene-icon-text { color: #f24724; } .scene-icon-text { color: #f24724; }
} }
.scene-type-7 { .scene-type-7 {
background: linear-gradient(135deg, rgba(52, 123, 255, 0.12) 0%, rgba(52, 123, 255, 0.06) 100%); background-color: rgba(52, 123, 255, 0.1);
.scene-icon-text { color: #347bff; } .scene-icon-text { color: #347bff; }
} }
} }
...@@ -324,7 +324,7 @@ defineExpose({ ...@@ -324,7 +324,7 @@ defineExpose({
} }
.active { .active {
background: linear-gradient(135deg, rgba(22, 119, 255, 0.06) 0%, rgba(22, 119, 255, 0.02) 100%); background-color: rgba(22, 119, 255, 0.04);
border-color: rgba(22, 119, 255, 0.3); border-color: rgba(22, 119, 255, 0.3);
box-shadow: box-shadow:
0 4px 16px rgba(22, 119, 255, 0.12), 0 4px 16px rgba(22, 119, 255, 0.12),
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
// ==================== 全局布局 ==================== // ==================== 全局布局 ====================
.layout { .layout {
position: relative;
flex: 1; flex: 1;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
...@@ -16,7 +17,8 @@ ...@@ -16,7 +17,8 @@
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%); // 淡雅蓝灰背景 - 企业级设计规范(iOS/Android 兼容)
background-color: #e8ecf1;
overflow: hidden; overflow: hidden;
// 添加装饰性渐变光晕效果 // 添加装饰性渐变光晕效果
...@@ -263,7 +265,7 @@ ...@@ -263,7 +265,7 @@
transform: scale(0.9); transform: scale(0.9);
} }
.auto-login-text { auto-login-text {
font-size: 13px; font-size: 13px;
color: #6b7280; color: #6b7280;
line-height: 1.5; line-height: 1.5;
......
{ {
"extends": "@vue/tsconfig/tsconfig.json",
"compilerOptions": { "compilerOptions": {
"ignoreDeprecations": "5.0", "ignoreDeprecations": "5.0",
"lib": ["esnext", "dom"], "lib": ["esnext", "dom"],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!