闫增涛
2025-03-31 04c7b0163caeae4ab1c5da62e301fa993101cfad
packageBookService/pages/bookServices/detail/index.js
@@ -301,6 +301,7 @@
    }
    this.setData({
      num: Number(this.data.paperBookList.length) + Number(this.data.electronicBookList.length),
      editDialog: false
    });
    if (this.data.bookDetail.id) {
      this.getBookInfo(this.data.bookDetail.id)
@@ -771,7 +772,11 @@
      editDialog: true
    })
  },
  closeEditDialog() {
    this.setData({
      editDialog: false
    })
  },
  // 我要建议
  suggestBtn() {
    // 检查登录状态
@@ -2099,12 +2104,6 @@
  },
  // 购买组卷
  buyMock() {
    const token = wx.getStorageSync(app.config.tokenKey);
    if (token) {
      buyMockFun()
    } else {
      this.logInFun(() => {})
    }
    const buyMockFun = async () => {
      let res;
      if (!this.data.mockData.id)
@@ -2153,6 +2152,13 @@
        console.log(error);
      }
    }
    const token = wx.getStorageSync(app.config.tokenKey);
    if (token) {
      buyMockFun()
    } else {
      this.logInFun(() => {})
    }
  },
  // 记录购买组卷时间
  recordBuyMock() {
@@ -2679,9 +2685,14 @@
  //去样书申请单
  goApply() {
    wx.navigateTo({
      url: "/packageDomain/pages/sampleBookList/applicationForm/index",
    });
    const token = wx.getStorageSync(app.config.tokenKey);
    if (token) {
      wx.navigateTo({
        url: "/packageDomain/pages/sampleBookList/applicationForm/index",
      });
    } else {
      this.logInFun(() => {})
    }
  },
  handleTree() {
    // const child = this.selectComponent('#teach-tree')