feat: 闯关页场景/拼音/朗读/互动分发集成,学堂弹层注音朗读

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-08-13 15:02:22 +08:00
co-authored by Claude Opus 4.7
parent 5c4335f5e5
commit 55463a9cc9
4 changed files with 189 additions and 185 deletions
+9
View File
@@ -2,6 +2,7 @@ import { reactive } from 'vue'
const AUTH_KEY = '36wisdom_auth'
const CHILD_KEY = '36wisdom_child'
const AGE_KEY = '36wisdom_child_age'
function loadAuth() {
const saved = uni.getStorageSync(AUTH_KEY)
@@ -46,3 +47,11 @@ export function clearAuth() {
state.parentId = 0
uni.removeStorageSync(AUTH_KEY)
}
export function getChildAge() {
return uni.getStorageSync(AGE_KEY) || '4-6'
}
export function setChildAge(age) {
uni.setStorageSync(AGE_KEY, age)
}