一、分享功能微信
我調用分享,分享成功,可是打開分享頁面報系統錯誤。 ```js onShareAppMessage: function(e) { let info = this.data.oilStation; return { from: 'bottom', title: '車主邦油站詳情', desc: '關於車主邦加油服務', path: '/pages/gas/oilDetail/index?type=share&gasId=1323&oilNo=92', success: (res) => { console.log(res) }, fail: (error) => { my.showToast({ content: '分享錯誤' + error, type: 'none' }); } }; }, ``` 緣由是path的路徑有問題,應該是 ‘pages/gas/oilDetail/index?type=share&gasId=1323&oilNo=92’ 微信的分享功能路徑是 ‘/pages/gas/oilDetail/index?type=share&gasId=1323&oilNo=92’