zhongshujie
8 小时以前 c0ff00c32bca4077b140d0d69b2863851ae31273
packageBookService/pages/bookServices/detail/components/testResource/testResource.js
@@ -130,10 +130,13 @@
      wx.hideLoading();
      if (value.refCode == "psychology") {
        const listName = value.name
        const listId = value.id
        const bookId = this.data.bookInfo.id
        const bookName = this.data.bookInfo.name
        const formPath = this.data.tab
        wx.navigateTo({
          url: `/packageBookService/pages/psychologyAnswer/psychologyAnswer?listName=${
            listName
        }`
            listName}&listId=${listId}&bookId=${bookId}&bookName=${bookName}&formPath=${formPath}`
        })
      } else {
        wx.navigateTo({
@@ -148,15 +151,6 @@
      }
    },
    goMycollect(e) {
      const answertype = e.currentTarget.dataset.answertype;
      const token = wx.getStorageSync("jsek-token");
      if (token) {
        gotoPage()
      } else {
        loginInfo(app, (data) => {
          if (data) gotoPage()
        })
      }
      const gotoPage = () => {
        wx.navigateTo({
          url: `/packageBookService/pages/bookServices/examination/examination?bookId=${
@@ -166,6 +160,16 @@
          }&answerType=${answertype}`,
        });
      }
      const answertype = e.currentTarget.dataset.answertype;
      const token = wx.getStorageSync("jsek-token");
      if (token) {
        gotoPage()
      } else {
        loginInfo(app, (data) => {
          if (data) {}
        })
      }
    },
    // 练习 组件切换
    onRadioChange(e) {