litian
2024-06-28 232e4dcf0fc80bdcfff1bdf45431e67c25831fb6
packageBookService/pages/bookServices/detail/components/testResource/testResource.js
@@ -25,6 +25,10 @@
      type: Object,
      value: {},
    },
    storeInfo: {
      type: String,
      value: "",
    },
  },
  /**
@@ -53,7 +57,7 @@
      })
    },
    async goTest(e) {
      console.log(e, 666)
      console.log(e.detail.value.item, 666)
      const value = e.detail.value.item;
      const token = wx.getStorageSync("jsek-token");
      if (!token) {
@@ -69,6 +73,14 @@
      });
      // 获取章节下是否有题目
      let idPathList = [];
      if (this.properties.storeInfo) {
        idPathList.push({
          id: this.properties.bookInfo.id,
          name: this.properties.bookInfo.name,
          productLinkPath: value.productLinkPath,
          type: value.type,
        })
      } else {
      let query = {
        path: "*",
        queryType: "*",
@@ -96,6 +108,7 @@
          });
        });
      }
      }
      wx.hideLoading();
      wx.navigateTo({
        url: `/packageBookService/pages/bookServices/examination/examination?bookId=${
@@ -104,7 +117,7 @@
          this.properties.bookInfo.rootCmsItemId
        }&idPathList=${JSON.stringify(idPathList)}&answerTitle=${
          value.name
        }&answerType=${"option"}`,
        }&answerType=${"option"}&storeInfo=${this.properties.storeInfo}`,
      });
    },
    goMycollect(e) {