闫增涛
2024-09-18 c96612e8a63ecef9590be0f8b5199277ec94e5b9
pages/digitalCourses/index.js
@@ -21,6 +21,7 @@
    activeItem: null,
    loading: false,
    contentLoading: false,
    noData:false,
    shoppingCartGetId: [],
    sorter: {
      value: "*",
@@ -132,7 +133,7 @@
  },
  getCourseTypeListList() {
    this.setData({
      loading: true
      loading: true,
    })
    const data = {
      path: '*',
@@ -230,6 +231,12 @@
      }
    }
    app.MG.store.getProductList(obj).then((res) => {
      if(!res.datas.length) {
        return this.setData({
          noData:true,
          contentLoading:false
        })
      }
      res.datas.forEach(item => {
        item.price = item.price.toFixed(2)
        item.productLinkInfo = JSON.parse(item.productLinkInfo)