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)