Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
home-with-kids-mp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
23e73af5
authored
2019-12-26 18:07:37 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
f95b8646
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
65 additions
and
64 deletions
src/app.scss
src/pages/detail/detail.js
src/pages/index/index.js
src/pages/reward-completed/reward-completed.js
src/pages/reward/reward.js
src/app.scss
View file @
23e73af
...
...
@@ -106,7 +106,7 @@ button {
.comp
{
bottom
:
auto
;
// top: 56%;
bottom
:
1
0%
;
bottom
:
3
0%
;
}
}
...
...
src/pages/detail/detail.js
View file @
23e73af
...
...
@@ -28,7 +28,7 @@ Page({
// 打点
app
.
stat
({
classify
:
"share"
,
action
:
"detail_page_share"
,
action
:
this
.
data
.
detailData
.
type
==
1
?
"hide_detail_page_share"
:
"detail_page_share"
,
primaryCode
:
this
.
data
.
detailData
.
videoCode
,
});
}
...
...
@@ -124,24 +124,24 @@ Page({
this
.
setData
({
isVideoEnded
:
true
})
// 打点
app
.
stat
({
classify
:
"
play
"
,
action
:
"play_end"
,
// 打点
app
.
stat
({
classify
:
"
video
"
,
action
:
this
.
data
.
detailData
.
type
==
1
?
"hide_play_end"
:
"play_end"
,
primaryCode
:
this
.
data
.
detailData
.
videoCode
,
});
});
},
/**
/**
* 播放开始
*/
onVideoPlayHandler
(
evt
)
{
// 打点
app
.
stat
({
classify
:
"
play
"
,
action
:
"video_code
"
,
classify
:
"
video
"
,
action
:
this
.
data
.
detailData
.
type
==
1
?
"hide_play"
:
"play
"
,
primaryCode
:
this
.
data
.
detailData
.
videoCode
,
});
});
},
/**
...
...
@@ -155,15 +155,15 @@ Page({
this
.
setData
({
isVideoEnded
:
false
})
// 打点
app
.
stat
({
classify
:
"play
"
,
action
:
"video_code
"
,
primaryCode
:
this
.
data
.
detailData
.
videoCode
,
});
//
// 打点
//
app.stat({
// classify: "video
",
// action: this.data.detailData.type == 1 ? "hide_play" : "play
",
//
primaryCode: this.data.detailData.videoCode,
// });
},
onShareFriend
(){
onShareFriend
()
{
app
.
stat
({
classify
:
"share"
,
action
:
"detail_page_button_friend_share"
,
...
...
@@ -171,7 +171,7 @@ Page({
});
},
onShareGroup
(){
onShareGroup
()
{
app
.
stat
({
classify
:
"share"
,
action
:
"detail_page_button_group_share"
,
...
...
src/pages/index/index.js
View file @
23e73af
...
...
@@ -136,12 +136,12 @@ Page({
gzhArticle
}
=
curItem
;
// 打点
app
.
stat
({
classify
:
"banner"
,
action
:
"banner_click"
,
primaryCode
:
bannerCode
,
});
// 打点
app
.
stat
({
classify
:
"banner"
,
action
:
"banner_click"
,
primaryCode
:
bannerCode
,
});
switch
(
bannerType
)
{
...
...
@@ -185,7 +185,7 @@ Page({
},
onShareItem
(
evt
){
onShareItem
(
evt
)
{
let
curItem
=
getBindtapData
(
evt
);
app
.
stat
({
classify
:
"share"
,
...
...
src/pages/reward-completed/reward-completed.js
View file @
23e73af
...
...
@@ -26,13 +26,13 @@ Page({
onShareAppMessage
(
res
)
{
if
(
res
.
from
===
'button'
)
{
// 来自页面内转发按钮
}
else
{
// 打点
app
.
stat
({
classify
:
"hide"
,
action
:
"hide_detail_page_share"
,
primaryCode
:
this
.
data
.
detailData
.
videoCode
,
});
}
else
{
// 打点
app
.
stat
({
classify
:
"hide"
,
action
:
"hide_detail_page_share"
,
primaryCode
:
this
.
data
.
detailData
.
videoCode
,
});
}
let
detailData
=
this
.
data
.
detailData
;
...
...
@@ -122,25 +122,25 @@ Page({
isVideoEnded
:
true
})
// 打点
app
.
stat
({
// 打点
app
.
stat
({
classify
:
"hide"
,
action
:
"hide_play_end"
,
primaryCode
:
this
.
data
.
detailData
.
videoCode
,
});
});
},
/**
/**
* 播放开始
*/
onVideoPlayHandler
(
evt
)
{
// 打点
app
.
stat
({
classify
:
"hide"
,
action
:
"hide_play"
,
primaryCode
:
this
.
data
.
detailData
.
videoCode
,
});
// 打点
app
.
stat
({
classify
:
"hide"
,
action
:
"hide_play"
,
primaryCode
:
this
.
data
.
detailData
.
videoCode
,
});
},
/**
...
...
@@ -154,12 +154,12 @@ Page({
this
.
setData
({
isVideoEnded
:
false
})
// 打点
app
.
stat
({
classify
:
"hide"
,
action
:
"hide_play"
,
primaryCode
:
this
.
data
.
detailData
.
videoCode
,
});
//
// 打点
//
app.stat({
//
classify: "hide",
//
action: "hide_play",
//
primaryCode: this.data.detailData.videoCode,
// });
},
/**
...
...
@@ -230,7 +230,9 @@ Page({
this
.
setData
({
vidHeight
:
vidHeight
,
});
if
(
!
result
.
videoCode
)
{
result
.
videoCode
=
result
.
hideCode
}
resolve
(
result
);
}).
catch
((
err
)
=>
{
reject
(
err
);
...
...
src/pages/reward/reward.js
View file @
23e73af
...
...
@@ -38,26 +38,25 @@ Page({
},
]
},
onShareAppMessage
(
res
)
{},
onShareAppMessage
(
res
)
{
if
(
res
.
from
===
'button'
)
{
// 来自页面内转发按钮
}
else
{
// 打点
}
},
showAuth
()
{
this
.
setData
({
authorizeVisible
:
true
})
},
onLoad
(
options
)
{
if
(
res
.
from
===
'button'
)
{
// 来自页面内转发按钮
}
else
{
// 打点
app
.
stat
({
classify
:
"page"
,
action
:
"reword_page"
,
primaryCode
:
""
,
});
}
app
.
stat
({
classify
:
"page"
,
action
:
"reword_page"
,
primaryCode
:
""
,
});
},
/**
...
...
Please
register
or
sign in
to post a comment