Commit 2fb30f60 authored by cc's avatar cc
parents 6f7bd53c e6e73ddd
This diff is collapsed.
......@@ -3,6 +3,7 @@ import {observer} from "mobx-react";
import "./TipPanel.less";
import {Button} from "@grace/ui";
import { ModalCtrl } from "@/core/ctrls/ModalCtrl.tsx";
import { LOG_KEY, pageView, sensorLog } from "@/utils/sensors";
export interface ITipPanelProps {
tip: string;
......@@ -13,15 +14,34 @@ export interface ITipPanelProps {
class TipPanel extends React.Component<ITipPanelProps> {
componentDidMount() {
pageView("b14273", {
page_name: "提示弹窗"
});
sensorLog(LOG_KEY.exposure, "b14273", "d14275", {
page_name: "提示弹窗",
button_name: "关闭按钮",
});
sensorLog(LOG_KEY.exposure, "b14273", "d14274", {
page_name: "提示弹窗",
button_name: "我知道了按钮",
});
}
clickClose = () => {
ModalCtrl.closeModal();
sensorLog(LOG_KEY.click, "b14273", "d14275", {
page_name: "提示弹窗",
button_name: "关闭按钮",
});
this.props.onClose && this.props.onClose();
};
clickBtn = () => {
ModalCtrl.closeModal();
sensorLog(LOG_KEY.click, "b14273", "d14274", {
page_name: "提示弹窗",
button_name: "我知道了按钮",
});
this.props.onClose && this.props.onClose();
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment