feat(profile): refine student creation workflow

This commit is contained in:
2026-07-21 16:59:06 +08:00
parent 26e4ec3271
commit 12a000845a
10 changed files with 144 additions and 87 deletions

View File

@@ -1,11 +1,11 @@
import { getApiErrorMessage, getProfileDefaults, updateProfileDefaults } from '../../utils/api'
import type { StudentProfileDefaults } from '../../utils/types'
const grades = ['艺术类', '幼儿园', '一年级', '二年级', '三年级', '四年级', '五年级', '六年级']
const grades = ['初一', '二', '三']
const subjects = ['美术', '书法', '音乐', '舞蹈', '语文', '数学', '英语']
const initialDefaults: StudentProfileDefaults = {
grade: '艺术类',
subject: '美术',
grade: '初一',
subject: '数学',
lessonDurationMinutes: 60
}

View File

@@ -4,23 +4,36 @@
.top-row {
display: flex;
align-items: flex-end;
align-items: center;
justify-content: space-between;
gap: 18rpx;
}
.top-row > view {
flex: 1;
min-width: 0;
}
.top-row .page-heading {
max-width: 480rpx;
max-width: none;
flex-wrap: nowrap;
white-space: nowrap;
}
.top-row .page-title {
font-size: 46rpx;
flex: none;
font-size: 44rpx;
white-space: nowrap;
}
.reload-button {
flex: none;
width: 148rpx;
min-width: 148rpx;
max-width: 148rpx;
min-height: 70rpx;
margin: 0;
padding: 0;
font-size: 26rpx;
}