fix: bug

This commit is contained in:
杨航
2025-09-10 15:01:31 +08:00
parent 94bcbfd264
commit dc8d9fe59a
3 changed files with 900 additions and 882 deletions
File diff suppressed because it is too large Load Diff
+6 -2
View File
@@ -207,10 +207,12 @@ import { onShow } from "@dcloudio/uni-app"
// 点击生产线分类
const changePrdLine = (item)=>{
activePrdlineType.value = item.value === activePrdlineType.value ? '' : item.value
getMoreList(1)
}
// 点击课程分类
const changeCourseType = (item)=>{
activeCourseType.value = item.value === activeCourseType.value ? '' : item.value
getMoreList(1)
}
const showTypeName = computed(()=>{
return (activeTab.value === '全部' && activeCourseType.value === '') || (activeTab.value === '生产线' && activePrdlineType.value === '')
@@ -312,7 +314,8 @@ import { onShow } from "@dcloudio/uni-app"
case '全部':
queryCrsInfoByCatalogApi({
...pageObj.value,
tagId: activeTag.value.join(',')
tagId: activeTag.value.join(','),
catalogId: activeCourseType.value
}).then(res=>{
courseListBase.value = courseListBase.value.concat(res.body || [])
pageObj.value.total = res.total
@@ -327,7 +330,8 @@ import { onShow } from "@dcloudio/uni-app"
case '生产线':
queryCrsInfoByPrdLineApi({
...pageObj.value,
tagId: activeTag.value.join(',')
tagId: activeTag.value.join(','),
prdLineId: activePrdlineType.value
}).then(res=>{
courseListBase.value = courseListBase.value.concat(res.body || [])
pageObj.value.total = res.total