Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
xianyu-ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
huzhiming
5 years ago
Commit
2f55252a4071071a6566bba9a8788367efb3527a
1 parent
0fe5eb15
feat(埋点):添加数据上报
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
apps/common/xianyu.js
apps/pages/product/product-detail.vue
apps/common/xianyu.js
View file @
2f55252
...
...
@@ -34,13 +34,17 @@ const xianyu = {
window
.
_xianyuShare
=
()
=>
{
this
.
setXianyuShare
(
shareParam
,
handler
);
}
console
.
log
(
'this.isAliApp && window.WindVane'
,
this
.
isAliApp
,
window
.
WindVane
);
if
(
this
.
isAliApp
&&
window
.
WindVane
)
{
window
.
WindVane
.
call
(
'WVIdleFishApi'
,
'setNavigatorRightItem'
,
{
title
:
'∙∙∙'
,
// 按钮名称
func
:
'_xianyuShare'
// func: 'test' //点击调用函数 注意调用的函数必须挂载在window上
},
function
(
data
)
{
alert
(
'show Btn'
)
console
.
log
(
data
);
},
function
(
e
)
{
alert
(
'error Btn'
)
console
.
log
(
e
);
});
}
...
...
apps/pages/product/product-detail.vue
View file @
2f55252
...
...
@@ -213,7 +213,16 @@ export default {
}));
});
console.log('mounted ok!!');
this.$nextTick(() => {
/*
* @ description: 配置打开闲鱼导航栏右上角分享按钮 && 配置分享信息 && 上报数据埋点
* @ author: huzhiming
* @ date: 2019-11-13 19:58:50
* @ version: V1.0.5
*/
console.log('settingShareHandler ok!!');
this.settingShareHandler();
});
},
beforeDestroy() {
if (this.watchList) {
...
...
@@ -300,17 +309,6 @@ export default {
param,
}
});
this.$nextTick(async () => {
/*
* @ description: 配置打开闲鱼导航栏右上角分享按钮 && 配置分享信息 && 上报数据埋点
* @ author: huzhiming
* @ date: 2019-11-13 19:58:50
* @ version: V1.0.5
*/
console.log('settingShareHandler ok!!');
await this.settingShareHandler();
});
},
deactivated() {
if (this._resourceImgWatcher) {
...
...
Please
register
or
login
to post a comment