From 428ffc719c4cc96c549a6a707c26c5109ae18a9e Mon Sep 17 00:00:00 2001 From: lfs3 Date: Mon, 22 Jul 2019 12:50:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E5=88=86=E4=BA=AB=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/wxShare.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/models/wxShare.js b/src/models/wxShare.js index 9f6403a..4412d4e 100644 --- a/src/models/wxShare.js +++ b/src/models/wxShare.js @@ -7,7 +7,9 @@ import homeApi from "../models/home-model.js"; Vue.prototype.wxShare = function(params) { var params = params || {}; + wxShareModel.getShare(params).then(response => { + console.log('2222222') if (response.code != 0) { return; } @@ -28,8 +30,9 @@ Vue.prototype.wxShare = function(params) { "onMenuShareQZone" ] }); - + console.log('shareConfig:'+shareConfig) wx.ready(() => { + console.log('shareConfig.link:'+shareConfig.url) //获取“分享给朋友”按钮点击状态及自定义分享内容接口 wx.onMenuShareAppMessage({ // 分享给朋友