默认提交
Showing
5 changed files
with
65 additions
and
64 deletions
... | @@ -28,7 +28,7 @@ Page({ | ... | @@ -28,7 +28,7 @@ Page({ |
28 | // 打点 | 28 | // 打点 |
29 | app.stat({ | 29 | app.stat({ |
30 | classify: "share", | 30 | classify: "share", |
31 | action: "detail_page_share", | 31 | action: this.data.detailData.type == 1 ? "hide_detail_page_share" : "detail_page_share", |
32 | primaryCode: this.data.detailData.videoCode, | 32 | primaryCode: this.data.detailData.videoCode, |
33 | }); | 33 | }); |
34 | } | 34 | } |
... | @@ -124,24 +124,24 @@ Page({ | ... | @@ -124,24 +124,24 @@ Page({ |
124 | this.setData({ | 124 | this.setData({ |
125 | isVideoEnded: true | 125 | isVideoEnded: true |
126 | }) | 126 | }) |
127 | // 打点 | 127 | // 打点 |
128 | app.stat({ | 128 | app.stat({ |
129 | classify: "play", | 129 | classify: "video", |
130 | action: "play_end", | 130 | action: this.data.detailData.type == 1 ? "hide_play_end" : "play_end", |
131 | primaryCode: this.data.detailData.videoCode, | 131 | primaryCode: this.data.detailData.videoCode, |
132 | }); | 132 | }); |
133 | }, | 133 | }, |
134 | 134 | ||
135 | /** | 135 | /** |
136 | * 播放开始 | 136 | * 播放开始 |
137 | */ | 137 | */ |
138 | onVideoPlayHandler(evt) { | 138 | onVideoPlayHandler(evt) { |
139 | // 打点 | 139 | // 打点 |
140 | app.stat({ | 140 | app.stat({ |
141 | classify: "play", | 141 | classify: "video", |
142 | action: "video_code", | 142 | action: this.data.detailData.type == 1 ? "hide_play" : "play", |
143 | primaryCode: this.data.detailData.videoCode, | 143 | primaryCode: this.data.detailData.videoCode, |
144 | }); | 144 | }); |
145 | }, | 145 | }, |
146 | 146 | ||
147 | /** | 147 | /** |
... | @@ -155,15 +155,15 @@ Page({ | ... | @@ -155,15 +155,15 @@ Page({ |
155 | this.setData({ | 155 | this.setData({ |
156 | isVideoEnded: false | 156 | isVideoEnded: false |
157 | }) | 157 | }) |
158 | // 打点 | 158 | // // 打点 |
159 | app.stat({ | 159 | // app.stat({ |
160 | classify: "play", | 160 | // classify: "video", |
161 | action: "video_code", | 161 | // action: this.data.detailData.type == 1 ? "hide_play" : "play", |
162 | primaryCode: this.data.detailData.videoCode, | 162 | // primaryCode: this.data.detailData.videoCode, |
163 | }); | 163 | // }); |
164 | }, | 164 | }, |
165 | 165 | ||
166 | onShareFriend(){ | 166 | onShareFriend() { |
167 | app.stat({ | 167 | app.stat({ |
168 | classify: "share", | 168 | classify: "share", |
169 | action: "detail_page_button_friend_share", | 169 | action: "detail_page_button_friend_share", |
... | @@ -171,7 +171,7 @@ Page({ | ... | @@ -171,7 +171,7 @@ Page({ |
171 | }); | 171 | }); |
172 | }, | 172 | }, |
173 | 173 | ||
174 | onShareGroup(){ | 174 | onShareGroup() { |
175 | app.stat({ | 175 | app.stat({ |
176 | classify: "share", | 176 | classify: "share", |
177 | action: "detail_page_button_group_share", | 177 | action: "detail_page_button_group_share", | ... | ... |
... | @@ -136,12 +136,12 @@ Page({ | ... | @@ -136,12 +136,12 @@ Page({ |
136 | gzhArticle | 136 | gzhArticle |
137 | } = curItem; | 137 | } = curItem; |
138 | 138 | ||
139 | // 打点 | 139 | // 打点 |
140 | app.stat({ | 140 | app.stat({ |
141 | classify: "banner", | 141 | classify: "banner", |
142 | action: "banner_click", | 142 | action: "banner_click", |
143 | primaryCode: bannerCode, | 143 | primaryCode: bannerCode, |
144 | }); | 144 | }); |
145 | 145 | ||
146 | switch (bannerType) { | 146 | switch (bannerType) { |
147 | 147 | ||
... | @@ -185,7 +185,7 @@ Page({ | ... | @@ -185,7 +185,7 @@ Page({ |
185 | }, | 185 | }, |
186 | 186 | ||
187 | 187 | ||
188 | onShareItem(evt){ | 188 | onShareItem(evt) { |
189 | let curItem = getBindtapData(evt); | 189 | let curItem = getBindtapData(evt); |
190 | app.stat({ | 190 | app.stat({ |
191 | classify: "share", | 191 | classify: "share", | ... | ... |
... | @@ -26,13 +26,13 @@ Page({ | ... | @@ -26,13 +26,13 @@ Page({ |
26 | onShareAppMessage(res) { | 26 | onShareAppMessage(res) { |
27 | if (res.from === 'button') { | 27 | if (res.from === 'button') { |
28 | // 来自页面内转发按钮 | 28 | // 来自页面内转发按钮 |
29 | }else{ | 29 | } else { |
30 | // 打点 | 30 | // 打点 |
31 | app.stat({ | 31 | app.stat({ |
32 | classify: "hide", | 32 | classify: "hide", |
33 | action: "hide_detail_page_share", | 33 | action: "hide_detail_page_share", |
34 | primaryCode: this.data.detailData.videoCode, | 34 | primaryCode: this.data.detailData.videoCode, |
35 | }); | 35 | }); |
36 | } | 36 | } |
37 | 37 | ||
38 | let detailData = this.data.detailData; | 38 | let detailData = this.data.detailData; |
... | @@ -122,25 +122,25 @@ Page({ | ... | @@ -122,25 +122,25 @@ Page({ |
122 | isVideoEnded: true | 122 | isVideoEnded: true |
123 | }) | 123 | }) |
124 | 124 | ||
125 | // 打点 | 125 | // 打点 |
126 | app.stat({ | 126 | app.stat({ |
127 | classify: "hide", | 127 | classify: "hide", |
128 | action: "hide_play_end", | 128 | action: "hide_play_end", |
129 | primaryCode: this.data.detailData.videoCode, | 129 | primaryCode: this.data.detailData.videoCode, |
130 | }); | 130 | }); |
131 | }, | 131 | }, |
132 | 132 | ||
133 | 133 | ||
134 | /** | 134 | /** |
135 | * 播放开始 | 135 | * 播放开始 |
136 | */ | 136 | */ |
137 | onVideoPlayHandler(evt) { | 137 | onVideoPlayHandler(evt) { |
138 | // 打点 | 138 | // 打点 |
139 | app.stat({ | 139 | app.stat({ |
140 | classify: "hide", | 140 | classify: "hide", |
141 | action: "hide_play", | 141 | action: "hide_play", |
142 | primaryCode: this.data.detailData.videoCode, | 142 | primaryCode: this.data.detailData.videoCode, |
143 | }); | 143 | }); |
144 | }, | 144 | }, |
145 | 145 | ||
146 | /** | 146 | /** |
... | @@ -154,12 +154,12 @@ Page({ | ... | @@ -154,12 +154,12 @@ Page({ |
154 | this.setData({ | 154 | this.setData({ |
155 | isVideoEnded: false | 155 | isVideoEnded: false |
156 | }) | 156 | }) |
157 | // 打点 | 157 | // // 打点 |
158 | app.stat({ | 158 | // app.stat({ |
159 | classify: "hide", | 159 | // classify: "hide", |
160 | action: "hide_play", | 160 | // action: "hide_play", |
161 | primaryCode: this.data.detailData.videoCode, | 161 | // primaryCode: this.data.detailData.videoCode, |
162 | }); | 162 | // }); |
163 | }, | 163 | }, |
164 | 164 | ||
165 | /** | 165 | /** |
... | @@ -230,7 +230,9 @@ Page({ | ... | @@ -230,7 +230,9 @@ Page({ |
230 | this.setData({ | 230 | this.setData({ |
231 | vidHeight: vidHeight, | 231 | vidHeight: vidHeight, |
232 | }); | 232 | }); |
233 | 233 | if (!result.videoCode) { | |
234 | result.videoCode = result.hideCode | ||
235 | } | ||
234 | resolve(result); | 236 | resolve(result); |
235 | }).catch((err) => { | 237 | }).catch((err) => { |
236 | reject(err); | 238 | reject(err); | ... | ... |
... | @@ -38,26 +38,25 @@ Page({ | ... | @@ -38,26 +38,25 @@ Page({ |
38 | }, | 38 | }, |
39 | ] | 39 | ] |
40 | }, | 40 | }, |
41 | onShareAppMessage(res) {}, | 41 | onShareAppMessage(res) { |
42 | if (res.from === 'button') { | ||
43 | // 来自页面内转发按钮 | ||
44 | } else { | ||
45 | // 打点 | ||
46 | |||
47 | } | ||
48 | }, | ||
42 | showAuth() { | 49 | showAuth() { |
43 | this.setData({ | 50 | this.setData({ |
44 | authorizeVisible: true | 51 | authorizeVisible: true |
45 | }) | 52 | }) |
46 | }, | 53 | }, |
47 | onLoad(options) { | 54 | onLoad(options) { |
48 | 55 | app.stat({ | |
49 | if (res.from === 'button') { | 56 | classify: "page", |
50 | // 来自页面内转发按钮 | 57 | action: "reword_page", |
51 | } else { | 58 | primaryCode: "", |
52 | // 打点 | 59 | }); |
53 | app.stat({ | ||
54 | classify: "page", | ||
55 | action: "reword_page", | ||
56 | primaryCode: "", | ||
57 | }); | ||
58 | } | ||
59 | |||
60 | |||
61 | }, | 60 | }, |
62 | 61 | ||
63 | /** | 62 | /** | ... | ... |
-
Please register or sign in to post a comment