feat(miniprogram): TabBar 重构 + 积分商城页面 (Chunk 5)
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled

TabBar: 首页|健康|预约|资讯|我的 → 首页|上报|咨询|商城|我的

新增页面:
- 商城(mall): 积分余额卡片 + 签到 + 商品网格(分类型筛选/分页)
- 咨询(consultation): 占位页(即将上线)

新增服务:
- services/points.ts: 积分账户/签到/商品列表 API

API: getAccount, dailyCheckin, getCheckinStatus, listProducts
This commit is contained in:
iven
2026-04-25 17:44:24 +08:00
parent 7b18a7398d
commit 1507ec6036
6 changed files with 563 additions and 3 deletions

View File

@@ -0,0 +1,53 @@
@import '../../styles/variables.scss';
.consultation-page {
min-height: 100vh;
background: $bg;
}
.consultation-header {
background: linear-gradient(135deg, $pri 0%, $pri-d 100%);
padding: 32px;
padding-top: 48px;
color: white;
}
.consultation-header-title {
font-size: 36px;
font-weight: bold;
color: white;
display: block;
margin-bottom: 8px;
}
.consultation-header-desc {
font-size: 24px;
color: rgba(255, 255, 255, 0.8);
display: block;
}
.consultation-placeholder {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 160px 40px;
}
.consultation-placeholder-icon {
font-size: 100px;
margin-bottom: 32px;
}
.consultation-placeholder-text {
font-size: 36px;
font-weight: bold;
color: $tx;
margin-bottom: 16px;
}
.consultation-placeholder-hint {
font-size: 26px;
color: $tx3;
text-align: center;
}

View File

@@ -0,0 +1,24 @@
import { View, Text } from '@tarojs/components';
import Taro, { useDidShow } from '@tarojs/taro';
import './index.scss';
export default function Consultation() {
useDidShow(() => {
Taro.setNavigationBarTitle({ title: '在线咨询' });
});
return (
<View className='consultation-page'>
<View className='consultation-header'>
<Text className='consultation-header-title'>线</Text>
<Text className='consultation-header-desc'></Text>
</View>
<View className='consultation-placeholder'>
<Text className='consultation-placeholder-icon'>💬</Text>
<Text className='consultation-placeholder-text'>线</Text>
<Text className='consultation-placeholder-hint'>线</Text>
</View>
</View>
);
}