Commit 2b7e512e by Jaxon

feat: 服务中心 - 优秀案例 - 案例详情 - 埋点

1 parent 971b786d
import { getCompanyNoticeDetail } from "~/api/serviceCenter/index.js"; import { getCompanyNoticeDetail } from "~/api/serviceCenter/index.js";
import reportPageTrackMixin from "~/mixins/reportPageTrackMixin";
Page({ Page({
behaviors: [reportPageTrackMixin],
data: { data: {
navBarHeight: 0, navBarHeight: 0,
navStyle: "border-bottom: 0;box-shadow: none;", navStyle: "border-bottom: 0;box-shadow: none;",
caseData: {}, caseData: {},
track_event_code: "service_center_case_detail", //埋点动作类型
}, },
navbarReady(e) { navbarReady(e) {
...@@ -50,6 +52,8 @@ Page({ ...@@ -50,6 +52,8 @@ Page({
} finally { } finally {
wx.$util.hideLoading(); wx.$util.hideLoading();
} }
wx.$track.setTrackData(0, "reception_records", {}, "", 0);
}, },
/** /**
* *
...@@ -62,15 +66,22 @@ Page({ ...@@ -62,15 +66,22 @@ Page({
} }
}, },
onShow() {
this.onPageShow();
},
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide() {}, onHide() {
this.onPageHide();
},
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload() {}, onUnload() {
this.onPageHide();
},
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!