更新:增加“课程首页”功能

This commit is contained in:
2025-11-11 13:40:13 +08:00
parent e39f47855b
commit 9fcc1b8549
24 changed files with 2402 additions and 55 deletions

View File

@@ -178,6 +178,7 @@
<script setup lang="ts">
import { ref, onMounted } from 'vue'
import { onShow } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n'
import { homeApi } from '@/api/modules/home'
import type {
@@ -459,7 +460,13 @@ onMounted(() => {
// 重置活动标签选中状态
currentActivityIndex.value = 0
showActivity.value = false
})
/**
* 页面显示
*/
onShow(() => {
// 刷新数据
getVipInfo()
getMyBooks()
getRecommendBooks()