diff --git a/project.config.json b/project.config.json index 00f5065..2749af0 100644 --- a/project.config.json +++ b/project.config.json @@ -5,11 +5,11 @@ "appid": "wx815b533167eb7b53", "setting": { "urlCheck": true, - "es6": true, - "enhance": true, - "postcss": true, + "es6": false, + "enhance": false, + "postcss": false, "preloadBackgroundData": false, - "minified": true, + "minified": false, "newFeature": true, "coverView": true, "nodeModules": false, @@ -36,8 +36,8 @@ "userConfirmedBundleSwitch": false, "packNpmManually": false, "packNpmRelationList": [], - "minifyWXSS": true, - "minifyWXML": true + "minifyWXSS": false, + "minifyWXML": false }, "compileType": "miniprogram", "simulatorType": "wechat", diff --git a/project.private.config.json b/project.private.config.json index 014269a..0602fbc 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -8,7 +8,7 @@ "lazyloadPlaceholderEnable": false, "skylineRenderEnable": false, "preloadBackgroundData": false, - "autoAudits": true, + "autoAudits": false, "useApiHook": true, "useApiHostProcess": true, "showShadowRootInWxmlPanel": false, diff --git a/src/login_pages/index/index.scss b/src/login_pages/index/index.scss index a6a7e1b..7d98b90 100644 --- a/src/login_pages/index/index.scss +++ b/src/login_pages/index/index.scss @@ -109,7 +109,7 @@ } // 主要内容区域 -.main_content { +.login_main_content { position: relative; z-index: 5; flex: 1; diff --git a/src/login_pages/index/index.tsx b/src/login_pages/index/index.tsx index 418fe59..c8a2f63 100644 --- a/src/login_pages/index/index.tsx +++ b/src/login_pages/index/index.tsx @@ -159,7 +159,7 @@ const LoginPage: React.FC = () => { {/* 主要内容 */} - + {/* 品牌区域 */} diff --git a/src/login_pages/terms/index.scss b/src/login_pages/terms/index.scss index 696d8a5..5c99a08 100644 --- a/src/login_pages/terms/index.scss +++ b/src/login_pages/terms/index.scss @@ -153,7 +153,7 @@ } // 主要内容区域 -.main_content { +.terms_main_content { position: relative; z-index: 5; flex: 1; diff --git a/src/login_pages/terms/index.tsx b/src/login_pages/terms/index.tsx index 591d437..336aed8 100644 --- a/src/login_pages/terms/index.tsx +++ b/src/login_pages/terms/index.tsx @@ -183,7 +183,7 @@ const TermsPage: React.FC = () => { {/* 主要内容 */} - + {/* 条款标题 */} {termsTitle} diff --git a/src/login_pages/verification/index.scss b/src/login_pages/verification/index.scss index b62866f..ade46e0 100644 --- a/src/login_pages/verification/index.scss +++ b/src/login_pages/verification/index.scss @@ -198,7 +198,7 @@ } // 主要内容 -.main_content { +.verification_main_content { position: relative; z-index: 10; padding: 0px 24px 36px; diff --git a/src/login_pages/verification/index.tsx b/src/login_pages/verification/index.tsx index f71e6e3..8319c79 100644 --- a/src/login_pages/verification/index.tsx +++ b/src/login_pages/verification/index.tsx @@ -277,7 +277,7 @@ const VerificationPage: React.FC = () => { {/* 主要内容 */} - + {/* 标题区域 */} 手机号注册/登录有场 diff --git a/src/pages/main/components/MyselfPageContent.tsx b/src/pages/main/components/MyselfPageContent.tsx index 607a933..0cc724c 100644 --- a/src/pages/main/components/MyselfPageContent.tsx +++ b/src/pages/main/components/MyselfPageContent.tsx @@ -136,7 +136,7 @@ const MyselfPageContent: React.FC = () => { return ( - + { return ( {/* 主要内容 */} - + {/* 条款标题 */} 约球规则 diff --git a/src/user_pages/edit/index.scss b/src/user_pages/edit/index.scss index 3ef8a4c..d15dc52 100644 --- a/src/user_pages/edit/index.scss +++ b/src/user_pages/edit/index.scss @@ -119,7 +119,7 @@ } // 主要内容区域 -.main_content { +.edit_main_content { position: relative; z-index: 5; flex: 1; diff --git a/src/user_pages/edit/index.tsx b/src/user_pages/edit/index.tsx index adef6b7..530d30b 100644 --- a/src/user_pages/edit/index.tsx +++ b/src/user_pages/edit/index.tsx @@ -375,7 +375,7 @@ const EditProfilePage: React.FC = () => { }} /> {/* 主要内容 */} - + {loading ? ( 加载中... diff --git a/src/user_pages/myself/index.scss b/src/user_pages/myself/index.scss index 766a93a..1a39944 100644 --- a/src/user_pages/myself/index.scss +++ b/src/user_pages/myself/index.scss @@ -33,9 +33,9 @@ } // 主要内容区域 -.main_content { +.myself_main_content { // position: relative; - background: #ffffff; + // background: #ffffff; animation: backgroundGradient 0s ease-in-out forwards; z-index: 5; flex: 1; @@ -172,6 +172,144 @@ .test-entry-card-box { padding: 0 15px; } +} + +// MyselfPageContent 组件使用的类名(与 myself_main_content 样式相同) +.myself_page_content_main { + // position: relative; + // background: #ffffff; + animation: backgroundGradient 0s ease-in-out forwards; + z-index: 5; + flex: 1; + margin-top: 0; + box-sizing: border-box; + padding-bottom: 15px; + // padding-top 由内联样式控制 + + // 用户信息区域 + .user_info_section { + display: flex; + flex-direction: column; + gap: 16px; + padding: 0 15px; + + // 加载状态 + .loading_container { + display: flex; + justify-content: center; + align-items: center; + padding: 40px 0; + + .loading_text { + @include text-style(16px, 400, 1.4em); + color: $color-primary-lightest; + } + } + + // 统计数据 + .stats_section { + display: flex; + justify-content: flex-start; + align-items: center; + + .stats_container { + display: flex; + align-items: center; + gap: 20px; + + .stat_item { + display: flex; + flex-direction: column; + align-items: center; + + .stat_number { + @include text-medium; + } + + .stat_label { + @include text-small; + } + } + } + } + + // 标签和简介 + .tags_bio_section { + display: flex; + flex-direction: column; + gap: 10px; + + .tags_container { + display: flex; + gap: 8px; + flex-wrap: wrap; + + .tag_item { + @include tag-base; + + .tag_icon { + width: 12px; + height: 12px; + } + + .tag_text { + @include text-tag; + } + } + } + + .bio_text { + @include text-body; + white-space: pre-line; + } + } + + // 球局订单和收藏功能 + .quick_actions_section { + margin-bottom: 16px; + + .action_card { + @include card-base; + border-radius: 12px; + display: flex; + align-items: center; + overflow: hidden; + height: 48px; + + .action_content { + height: 100%; + flex: 1; + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + gap: 8px; + cursor: pointer; + transition: background-color 0.3s ease; + + .action_icon { + width: 20px; + height: 20px; + } + + .action_text { + @include text-style(15px, 600, 1.4em); + color: $color-primary; + } + } + + .action_divider { + width: 1px; + height: 16px; + background: $color-primary-lightest-5; + } + } + } + } + + .test-entry-card-box { + padding: 0 15px; + } // 球局类型标签页 .game_tabs_section { diff --git a/src/user_pages/myself/index.tsx b/src/user_pages/myself/index.tsx index e130e27..4686a46 100644 --- a/src/user_pages/myself/index.tsx +++ b/src/user_pages/myself/index.tsx @@ -181,7 +181,7 @@ const MyselfPage: React.FC = () => { return ( {/* 主要内容 */} - + {/* 用户信息区域 */} { }} /> {/* 主要内容 */} - + {/* 用户信息区域 */}