Showing
2 changed files
with
14 additions
and
12 deletions
@@ -34,13 +34,17 @@ const xianyu = { | @@ -34,13 +34,17 @@ const xianyu = { | ||
34 | window._xianyuShare = () => { | 34 | window._xianyuShare = () => { |
35 | this.setXianyuShare(shareParam, handler); | 35 | this.setXianyuShare(shareParam, handler); |
36 | } | 36 | } |
37 | + console.log('this.isAliApp && window.WindVane', this.isAliApp , window.WindVane); | ||
38 | + | ||
37 | if (this.isAliApp && window.WindVane) { | 39 | if (this.isAliApp && window.WindVane) { |
38 | window.WindVane.call('WVIdleFishApi', 'setNavigatorRightItem', { | 40 | window.WindVane.call('WVIdleFishApi', 'setNavigatorRightItem', { |
39 | title: '∙∙∙', // 按钮名称 | 41 | title: '∙∙∙', // 按钮名称 |
40 | func: '_xianyuShare' // func: 'test' //点击调用函数 注意调用的函数必须挂载在window上 | 42 | func: '_xianyuShare' // func: 'test' //点击调用函数 注意调用的函数必须挂载在window上 |
41 | }, function(data) { | 43 | }, function(data) { |
44 | + alert('show Btn') | ||
42 | console.log(data); | 45 | console.log(data); |
43 | }, function(e) { | 46 | }, function(e) { |
47 | + alert('error Btn') | ||
44 | console.log(e); | 48 | console.log(e); |
45 | }); | 49 | }); |
46 | } | 50 | } |
@@ -213,7 +213,16 @@ export default { | @@ -213,7 +213,16 @@ export default { | ||
213 | })); | 213 | })); |
214 | }); | 214 | }); |
215 | 215 | ||
216 | - console.log('mounted ok!!'); | 216 | + this.$nextTick(() => { |
217 | + /* | ||
218 | + * @ description: 配置打开闲鱼导航栏右上角分享按钮 && 配置分享信息 && 上报数据埋点 | ||
219 | + * @ author: huzhiming | ||
220 | + * @ date: 2019-11-13 19:58:50 | ||
221 | + * @ version: V1.0.5 | ||
222 | + */ | ||
223 | + console.log('settingShareHandler ok!!'); | ||
224 | + this.settingShareHandler(); | ||
225 | + }); | ||
217 | }, | 226 | }, |
218 | beforeDestroy() { | 227 | beforeDestroy() { |
219 | if (this.watchList) { | 228 | if (this.watchList) { |
@@ -300,17 +309,6 @@ export default { | @@ -300,17 +309,6 @@ export default { | ||
300 | param, | 309 | param, |
301 | } | 310 | } |
302 | }); | 311 | }); |
303 | - | ||
304 | - this.$nextTick(async () => { | ||
305 | - /* | ||
306 | - * @ description: 配置打开闲鱼导航栏右上角分享按钮 && 配置分享信息 && 上报数据埋点 | ||
307 | - * @ author: huzhiming | ||
308 | - * @ date: 2019-11-13 19:58:50 | ||
309 | - * @ version: V1.0.5 | ||
310 | - */ | ||
311 | - console.log('settingShareHandler ok!!'); | ||
312 | - await this.settingShareHandler(); | ||
313 | - }); | ||
314 | }, | 312 | }, |
315 | deactivated() { | 313 | deactivated() { |
316 | if (this._resourceImgWatcher) { | 314 | if (this._resourceImgWatcher) { |
-
Please register or login to post a comment