refactor(mp): 迁移剩余 8 特殊页面到统一组件库

- 首页/健康/我的/商城/消息 TabBar 页面使用 PageShell 替代手写容器
- 登录/法律条款/关怀模式设置页使用 PageShell 替代手写容器
- 各页面卡片统一使用 ContentCard 组件
- 清理页面 SCSS 中的 min-height/background/padding 样板代码
- 66 个小程序页面全部完成统一组件迁移
This commit is contained in:
iven
2026-05-16 01:55:28 +08:00
parent c6bffd4019
commit 184bd0ea03
17 changed files with 109 additions and 179 deletions

View File

@@ -1,8 +1,9 @@
import { useState } from 'react';
import { View, Text, Button, ScrollView } from '@tarojs/components';
import { View, Text, Button } from '@tarojs/components';
import Taro from '@tarojs/taro';
import { useAuthStore } from '../../stores/auth';
import { useElderClass } from '../../hooks/useElderClass';
import PageShell from '@/components/ui/PageShell';
import './index.scss';
const IS_DEV = process.env.NODE_ENV !== 'production';
@@ -95,8 +96,7 @@ export default function Login() {
};
return (
<ScrollView scrollY className={`login-scroll ${loginClass}`}>
<View className='login-page'>
<PageShell padding="none" scroll className={`login-page ${loginClass}`}>
{/* 品牌区 */}
<View className='login-brand'>
<View className='login-logo'>
@@ -155,7 +155,6 @@ export default function Login() {
</Text>
</View>
</View>
</ScrollView>
</PageShell>
);
}