更新:增加课程首页分类跳转列表页;优化全站列表分页加载;

This commit is contained in:
2025-11-18 13:45:46 +08:00
parent 21b03635a2
commit d76c6cdff1
67 changed files with 10976 additions and 369 deletions

View File

@@ -78,7 +78,7 @@
class="cate_item_box"
v-for="(item, index) in soulCateList"
:key="index"
@click="handleClickCate(item)"
@click="curseClickJump(item)"
>
<view class="cate_item_border">
<image :src="item.icon"></image>
@@ -93,7 +93,7 @@
<view
class="cate_item_box"
v-for="(v, i) in sociologyCateList"
@click="handleClickCate(v)"
@click="curseClickJump(v)"
>
<view class="cate_item_border">
<image
@@ -339,8 +339,12 @@ const getSociologyCateList = async () => {
* 终极分类点击处理
*/
const curseClickJump = (item: IMedicalTag) => {
// uni.showToast({
// title: '课程分类列表正在开发中,现在还不能跳转',
// icon: 'none'
// })
uni.navigateTo({
url: `/pages/course/index?id=${item.id}&title=${item.title}&pid=${item.pid}`
url: `/pages/course/list/category?id=${item.id}&title=${item.title}&pid=${item.pid}&subject=${selectedFirstLevel.value}`
})
}
@@ -420,7 +424,11 @@ const tryListenList = ref<ICourse[]>([]) // 试听课程列表
*/
const getTryListenList = async () => {
try {
const res = await courseApi.getMarketCourseList(1, 6, 1)
const res = await courseApi.getMarketCourseList({
page: 1,
limit: 6,
id: 1
})
if (res && res.code === 0) {
if (res.courseList && res.courseList.records && res.courseList.records.length > 0) {
tryListenList.value = res.courseList.records