YM
5 天以前 b5bf6a8ff37d5c363a68697ac8cab88ff21b1614
pages/home/home.js
@@ -140,7 +140,6 @@
        list.push({
          value: item.icon,
          link: item.jsek_link,
        })
      }
      this.setData({
@@ -472,6 +471,19 @@
    const item = e.currentTarget.dataset.book
    // 网页类型跳转到网址复制页,因为url传参不能传 带参数的网络地址,所以此处要把网络地址里的传参摘出来,放到url里
    let urlData = ''
    if (!item.jsek_link) {
      wx.showModal({
        title: '提示',
        content: '暂无内容',
        showCancel: false,
        success: (res) => {
          if (res.confirm) {
            console.log(res, '3232')
          }
        }
      })
      return false;
    }
    const flags = item.jsek_link.indexOf("?")
    if (flags > -1) {
      urlData = item.jsek_link.slice(flags + 1, item.jsek_link.length)
@@ -501,17 +513,9 @@
    const {
      book
    } = e.currentTarget.dataset;
    if (wx.getStorageSync(app.config.tokenKey)) {
      wx.navigateTo({
        url: '/pages/home/digitalRead/index?productId=' + book.id,
      });
    } else {
      loginInfo(app, (data) => {
        if (data) {
          this.registe()
        }
      })
    }
    wx.navigateTo({
      url: '/pages/home/digitalRead/index?productId=' + book.id,
    });
  },
  goTextBookDetail(e) {
    const {