yiming
2024-06-18 4c46ea24641b5c1e18c55eb86477d0e0bc444580
pages/digitalCourses/index.js
@@ -17,7 +17,8 @@
    tabList: [],
    courseList: [],
    searchValue: '',
    activeItem: null
    activeItem: null,
    loading: false
  },
  /**
@@ -84,7 +85,6 @@
  },
  onTabsChange(event) {
    const value = event.detail.value
    this.getCourseList(this.data.tabList[value])
  },
@@ -94,6 +94,10 @@
    wx.navigateBack();
  },
  getCourseTypeListList() {
    this.setData({
      loading: true
    })
    const data = {
      path: '*',
      filterList: [{
@@ -118,7 +122,8 @@
      this.setData({
        tabList: newData,
        activeItem: newData[0]
        activeItem: newData[0],
        loading: false
      })
      this.getCourseList(newData[0])