|
@@ -37,7 +37,8 @@ export default {
|
|
const res = await this.jsAuth({ url });
|
|
const res = await this.jsAuth({ url });
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
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';
|
|
this.$wx.config({
|
|
this.$wx.config({
|
|
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
|
|
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
|
|
appId: data.appid, // 必填,公众号的唯一标识
|
|
appId: data.appid, // 必填,公众号的唯一标识
|
|
@@ -53,7 +54,7 @@ export default {
|
|
this.$wx.updateAppMessageShareData({
|
|
this.$wx.updateAppMessageShareData({
|
|
title: this.title,
|
|
title: this.title,
|
|
desc: this.desc,
|
|
desc: this.desc,
|
|
- imgUrl: this.img,
|
|
|
|
|
|
+ // imgUrl: this.img,
|
|
link: shareUrl,
|
|
link: shareUrl,
|
|
success: res => {
|
|
success: res => {
|
|
console.log(res);
|
|
console.log(res);
|