litian
2024-07-22 f4e7324c27b7c6ecb824029e22a13541c5033ade
packageBookService/pages/bookServices/detail/components/testResource/testResource.js
@@ -29,6 +29,9 @@
      type: String,
      value: "",
    },
    jslx: {
      type: Boolean,
    },
  },
  /**
@@ -57,7 +60,6 @@
      })
    },
    async goTest(e) {
      console.log(e.detail.value.item, 666)
      const value = e.detail.value.item;
      const token = wx.getStorageSync("jsek-token");
      if (!token) {
@@ -73,7 +75,8 @@
      });
      // 获取章节下是否有题目
      let idPathList = [];
      if (this.properties.storeInfo) {
      if (this.properties.storeInfo || this.properties.jslx) {
        idPathList.push({
          id: this.properties.bookInfo.id,
          name: this.properties.bookInfo.name,
@@ -117,7 +120,7 @@
          this.properties.bookInfo.rootCmsItemId
        }&idPathList=${JSON.stringify(idPathList)}&answerTitle=${
          value.name
        }&answerType=${"option"}&storeInfo=${this.properties.storeInfo}`,
        }&answerType=${"option"}&storeInfo=${this.properties.storeInfo}&jslx=${this.properties.jslx}`,
      });
    },
    goMycollect(e) {