Commit 2fb30f60 authored by cc's avatar cc
parents 6f7bd53c e6e73ddd
...@@ -102,10 +102,10 @@ ...@@ -102,10 +102,10 @@
// alert("【警告】检测到活动url中没有appID参数\n缺少该参数会导致埋点、分享、app信息获取错误。") // alert("【警告】检测到活动url中没有appID参数\n缺少该参数会导致埋点、分享、app信息获取错误。")
} }
</script> </script>
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1748509698394/assets/index-D8ghzAZv.js"></script> <script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1748513454371/assets/index-Cmv9ZIh3.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1748509698394/assets/vendor-BRPha8lS.js"> <link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1748513454371/assets/vendor-BKxbf8sD.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1748509698394/assets/vendor-NZxPxbcK.css"> <link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1748513454371/assets/vendor-NZxPxbcK.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1748509698394/assets/index-jw_2aFb2.css"> <link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1748513454371/assets/index-BjplQnj8.css">
<script type="module">import.meta.url;import("_").catch(()=>1);(async function*(){})().next();if(location.protocol!="file:"){window.__vite_is_modern_browser=true}</script> <script type="module">import.meta.url;import("_").catch(()=>1);(async function*(){})().next();if(location.protocol!="file:"){window.__vite_is_modern_browser=true}</script>
<script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script> <script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
</head> </head>
...@@ -113,8 +113,8 @@ ...@@ -113,8 +113,8 @@
<body> <body>
<div id="root"></div> <div id="root"></div>
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script> <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
<script nomodule crossorigin id="vite-legacy-polyfill" src="https://yun.duiba.com.cn/db_games/spark/v3/1748509698394/assets/polyfills-legacy-C2MhNPfJ.js"></script> <script nomodule crossorigin id="vite-legacy-polyfill" src="https://yun.duiba.com.cn/db_games/spark/v3/1748513454371/assets/polyfills-legacy-C2MhNPfJ.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1748509698394/assets/index-legacy-BYqaa1jm.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script> <script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1748513454371/assets/index-legacy-Bf9crt_C.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -3,6 +3,7 @@ import {observer} from "mobx-react"; ...@@ -3,6 +3,7 @@ import {observer} from "mobx-react";
import "./TipPanel.less"; import "./TipPanel.less";
import {Button} from "@grace/ui"; import {Button} from "@grace/ui";
import { ModalCtrl } from "@/core/ctrls/ModalCtrl.tsx"; import { ModalCtrl } from "@/core/ctrls/ModalCtrl.tsx";
import { LOG_KEY, pageView, sensorLog } from "@/utils/sensors";
export interface ITipPanelProps { export interface ITipPanelProps {
tip: string; tip: string;
...@@ -13,15 +14,34 @@ export interface ITipPanelProps { ...@@ -13,15 +14,34 @@ export interface ITipPanelProps {
class TipPanel extends React.Component<ITipPanelProps> { class TipPanel extends React.Component<ITipPanelProps> {
componentDidMount() { 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 = () => { clickClose = () => {
ModalCtrl.closeModal(); ModalCtrl.closeModal();
sensorLog(LOG_KEY.click, "b14273", "d14275", {
page_name: "提示弹窗",
button_name: "关闭按钮",
});
this.props.onClose && this.props.onClose(); this.props.onClose && this.props.onClose();
}; };
clickBtn = () => { clickBtn = () => {
ModalCtrl.closeModal(); ModalCtrl.closeModal();
sensorLog(LOG_KEY.click, "b14273", "d14274", {
page_name: "提示弹窗",
button_name: "我知道了按钮",
});
this.props.onClose && this.props.onClose(); 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