|
|
@@ -247,6 +247,22 @@ router.afterEach(function(to) {
|
|
|
cordova.plugins.navigationbar.showBack();
|
|
|
}
|
|
|
}
|
|
|
+ axios.get('/wx/getSignature', {
|
|
|
+ params: {
|
|
|
+ shareUrl: location.href.split('#')[0]
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .then(response => {
|
|
|
+ console.log(response)
|
|
|
+ wx.config({
|
|
|
+ debug: false,
|
|
|
+ appId: response.data.appId,
|
|
|
+ timestamp: response.data.timestamp,
|
|
|
+ nonceStr: response.data.nonceStr,
|
|
|
+ signature: response.data.signature,
|
|
|
+ jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage']
|
|
|
+ })
|
|
|
+ })
|
|
|
|
|
|
store.commit("updateLoading", false);
|
|
|
});
|