From dc19fdf86993b2ddeb6b92e2561cb01176ded889 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期三, 16 七月 2025 23:12:58 +0800 Subject: [PATCH] 量表优化(通过查询嵌套的关系进行判断) --- packageBookService/pages/bookServices/linkPage/index.js | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packageBookService/pages/bookServices/linkPage/index.js b/packageBookService/pages/bookServices/linkPage/index.js index 472c583..dec1070 100644 --- a/packageBookService/pages/bookServices/linkPage/index.js +++ b/packageBookService/pages/bookServices/linkPage/index.js @@ -23,6 +23,10 @@ if (key != 'path') path = path + key + '=' + options[key] + '&' } + if (path.lastIndexOf('&') == path.length - 1) { + console.log(1); + path = path.slice(0, path.length - 1) + } this.setData({ path }) @@ -74,19 +78,18 @@ /** * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜� */ - onShareAppMessage() { - - }, + onShareAppMessage() {}, + onShareTimeline() {}, copyPath() { wx.setClipboardData({ data: this.data.path, - success: () => { + success: (res) => { wx.showToast({ icon: 'success', title: '澶嶅埗鎴愬姛', }) }, - fail: () => { + fail: (res) => { wx.showToast({ icon: 'error', title: '璇烽噸璇�', -- Gitblit v1.9.1