|
@@ -45,19 +45,18 @@ export default {
|
|
const { data } = res;
|
|
const { data } = res;
|
|
// const shareUrl = 'http://broadcast.waityou24.cn/api/article/auth?redirect_uri=http://broadcast.waityou24.cn/articlemobile' + this.route;
|
|
// const shareUrl = 'http://broadcast.waityou24.cn/api/article/auth?redirect_uri=http://broadcast.waityou24.cn/articlemobile' + this.route;
|
|
const shareUrl = 'http://broadcast.waityou24.cn/articlemobile';
|
|
const shareUrl = 'http://broadcast.waityou24.cn/articlemobile';
|
|
|
|
+ // 'updateTimelineShareData', // 朋友圈及QQ空间
|
|
this.$wx.config({
|
|
this.$wx.config({
|
|
debug: false,
|
|
debug: false,
|
|
appId: data.appid,
|
|
appId: data.appid,
|
|
timestamp: data.timestamp,
|
|
timestamp: data.timestamp,
|
|
nonceStr: data.noncestr,
|
|
nonceStr: data.noncestr,
|
|
signature: data.sign,
|
|
signature: data.sign,
|
|
- jsApiList: [
|
|
|
|
- 'updateAppMessageShareData', //朋友及QQ
|
|
|
|
- 'updateTimelineShareData', // 朋友圈及QQ空间
|
|
|
|
- 'chooseImage',
|
|
|
|
- ],
|
|
|
|
|
|
+ jsApiList: ['updateAppMessageShareData', 'chooseImage'],
|
|
|
|
+ });
|
|
|
|
+ this.$wx.ready(() => {
|
|
|
|
+ console.log('in ready');
|
|
});
|
|
});
|
|
- this.$wx.ready(() => {});
|
|
|
|
this.$wx.error(res => {
|
|
this.$wx.error(res => {
|
|
console.log(res);
|
|
console.log(res);
|
|
});
|
|
});
|