feat: 优化管理后台页面UI、修复TS编译错误、新增人生事件模块

- 优化 AI 配置列表页面:重构统计卡片、搜索表单、表格列展示
- 修复 3 处 TypeScript TS6133 编译错误,恢复构建
- 新增管理员修改密码和重置密码功能
- 优化小程序多个页面样式和交互
- 人生事件模块完善

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-10 23:23:09 +08:00
parent 60c63850ee
commit 755059807a
62 changed files with 4661 additions and 3019 deletions
+10 -3
View File
@@ -16,7 +16,6 @@ import { ref, onMounted, onUnmounted } from 'vue'
const isPlaying = ref(false)
const bottomPosition = ref('180rpx')
const audioContext = null
let audioInstance = null
// 背景音乐 URL - 使用原型中的音乐
@@ -29,9 +28,18 @@ const initAudio = () => {
audioInstance.loop = true
audioInstance.autoplay = false
audioInstance.onPlay(() => {
isPlaying.value = true
})
audioInstance.onPause(() => {
isPlaying.value = false
})
audioInstance.onError((err) => {
console.error('音乐播放失败:', err)
isPlaying.value = false
uni.showToast({ title: '音乐资源暂不可用', icon: 'none' })
})
audioInstance.onEnded(() => {
@@ -47,8 +55,7 @@ const toggleMusic = async () => {
audioInstance.pause()
} else {
try {
await audioInstance.play()
isPlaying.value = true
audioInstance.play()
} catch (err) {
console.error('音乐播放失败:', err)
isPlaying.value = false