默认提交
Showing
5 changed files
with
33 additions
and
32 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 | } |
| ... | @@ -126,8 +126,8 @@ Page({ | ... | @@ -126,8 +126,8 @@ Page({ |
| 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 | }, |
| ... | @@ -138,8 +138,8 @@ Page({ | ... | @@ -138,8 +138,8 @@ Page({ |
| 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 | }, |
| ... | @@ -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", | ... | ... |
| ... | @@ -26,7 +26,7 @@ Page({ | ... | @@ -26,7 +26,7 @@ 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", |
| ... | @@ -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 | |||
| 49 | if (res.from === 'button') { | ||
| 50 | // 来自页面内转发按钮 | ||
| 51 | } else { | ||
| 52 | // 打点 | ||
| 53 | app.stat({ | 55 | app.stat({ |
| 54 | classify: "page", | 56 | classify: "page", |
| 55 | action: "reword_page", | 57 | action: "reword_page", |
| 56 | primaryCode: "", | 58 | primaryCode: "", |
| 57 | }); | 59 | }); |
| 58 | } | ||
| 59 | |||
| 60 | |||
| 61 | }, | 60 | }, |
| 62 | 61 | ||
| 63 | /** | 62 | /** | ... | ... |
-
Please register or sign in to post a comment