litian
2024-09-06 80921e1122d8dcf8d0080015b00b8df5cadb90e6
study
1个文件已修改
47 ■■■■■ 已修改文件
pages/study/index.js 47 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/study/index.js
@@ -132,23 +132,23 @@
        titleBook: "图书(" + res.totalSize + "本)",
      })
    })
    let data1 = {
      Size: 9999,
      Start: 0,
      sort: {
        type: "Desc",
        field: "CreateDate",
      },
      searchList: [{
        keywords: 'jsek_digitalCourses',
        field: "ProductType",
      }],
    }
    app.MG.store.getPurchasedProductList(data1).then((res) => {
      that.setData({
        titleCourse: "课程(" + res.totalSize + "门)",
      })
    })
    // let data1 = {
    //   Size: 9999,
    //   Start: 0,
    //   sort: {
    //     type: "Desc",
    //     field: "CreateDate",
    //   },
    //   searchList: [{
    //     keywords: 'jsek_digitalCourses',
    //     field: "ProductType",
    //   }],
    // }
    // app.MG.store.getPurchasedProductList(data1).then((res) => {
    //   that.setData({
    //     titleCourse: "课程(" + res.totalSize + "门)",
    //   })
    // })
    let data2 = {
      Size: 9999,
      Start: 0,
@@ -241,9 +241,22 @@
    const {
      book
    } = e.currentTarget.dataset;
    if (this.data.active == 0) {
    wx.navigateTo({
      url: `/packageBookService/pages/bookServices/detail/index?id=${book.product.id}&name=${book.product.name}`,
    });
    }
    if (this.data.active == 1) {
      // wx.navigateTo({
      //   url: `/packageBookService/pages/bookServices/detail/index?id=${book.product.id}&name=${book.product.name}`,
      // });
    }
    if (this.data.active == 2) {
      wx.navigateTo({
        url: `/pages/digitalTextbooks/digitalTextbooksDetails/index?id=${book.product.id}`,
      });
    }
  },
  /**
   * 页面相关事件处理函数--监听用户下拉动作