zs
litian
2024-09-20 fba71ba1ae5030cb1a20f54f29fb06ad97060297
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: '*',
@@ -174,6 +175,9 @@
  },
  getCourseList(item) {
    this.setData({
      noData: false,
    })
    let searchObj = {}
    let sort = {}
    // // 搜索框
@@ -230,6 +234,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)
@@ -299,7 +309,7 @@
          )
        ) {
          wx.showToast({
            title: "该书已在购物车,请勿重复添加空",
            title: "该课程已在购物车,请勿重复添加",
            icon: 'none',
            duration: 1000
          })