Your Name 2 years ago
parent
commit
2144613ebf

BIN
public/images/pg2-2/照片1.png View File


BIN
public/images/pg2-2/照片2.png View File


BIN
public/images/pg2-2/照片3.png View File


BIN
public/images/pg2-2/照片4.png View File


+ 9
- 5
src/utils/wx.js View File

84
     if (isDev) return;
84
     if (isDev) return;
85
 
85
 
86
     wx.ready(() => {
86
     wx.ready(() => {
87
+
88
+      const shareData = {
89
+        ...shareOptTpl,
90
+        ...params
91
+      }
92
+
93
+      console.log('---分享参数-->', shareData);
94
+
87
       for (let api of shareAPIs) {
95
       for (let api of shareAPIs) {
88
         if (typeof wx[api] === 'function') continue;
96
         if (typeof wx[api] === 'function') continue;
89
-
90
-        wx[api]({
91
-          ...shareOptTpl,
92
-          ...params
93
-        })
97
+        wx[api](shareData);
94
       }
98
       }
95
     });
99
     });
96
   }
100
   }