|
@@ -40,13 +40,11 @@ export default {
|
|
|
}
|
|
|
// const url = encodeURIComponent(`${this.host}${process.env.VUE_APP_ROUTER}${uri}`);
|
|
|
const url = encodeURIComponent(location.href.split('#')[0]);
|
|
|
- console.log(url);
|
|
|
- console.log(encodeURIComponent(`${this.host}${process.env.VUE_APP_ROUTER}${uri}`));
|
|
|
const res = await this.jsAuth({ url });
|
|
|
if (this.$checkRes(res)) {
|
|
|
const { data } = res;
|
|
|
wx.config({
|
|
|
- debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
|
|
|
+ debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
|
|
|
appId: data.appid, // 必填,公众号的唯一标识
|
|
|
timestamp: data.timestamp, // 必填,生成签名的时间戳
|
|
|
nonceStr: data.noncestr, // 必填,生成签名的随机串
|
|
@@ -68,7 +66,7 @@ export default {
|
|
|
toShare() {
|
|
|
const url = 'http://broadcast.waityou24.cn/api/article/auth?redirect_uri=http://broadcast.waityou24.cn/articlemobile' + this.route;
|
|
|
let method = 'updateAppMessageShareData';
|
|
|
- if (type !== 'py') method = 'updateTimelineShareData';
|
|
|
+ if (this.type !== 'py') method = 'updateTimelineShareData';
|
|
|
this.wx[method]({
|
|
|
title: this.title,
|
|
|
desc: this.desc,
|