From c96612e8a63ecef9590be0f8b5199277ec94e5b9 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期三, 18 九月 2024 18:43:12 +0800
Subject: [PATCH] 云学习购买目录,修改bug

---
 packageBookService/pages/bookServices/linkPage/index.js |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/packageBookService/pages/bookServices/linkPage/index.js b/packageBookService/pages/bookServices/linkPage/index.js
index 472c583..279af9f 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,9 +78,8 @@
   /**
    * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜�
    */
-  onShareAppMessage() {
-
-  },
+  onShareAppMessage() {},
+  onShareTimeline() {},
   copyPath() {
     wx.setClipboardData({
       data: this.data.path,

--
Gitblit v1.9.1