23e73af5 by simon

默认提交

1 parent f95b8646
......@@ -106,7 +106,7 @@ button {
.comp {
bottom: auto;
// top: 56%;
bottom: 10%;
bottom: 30%;
}
}
......
......@@ -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",
......
......@@ -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",
......
......@@ -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);
......
......@@ -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: "",
});
},
/**
......