Commit 504cab5d authored by 王勇霞's avatar 王勇霞

feat: 联调

parent ab832cd4
......@@ -68,10 +68,10 @@
}
</script>
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1765538671030/assets/index-DoIwQvV3.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1765538671030/assets/vendor-Bobat79A.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1765538671030/assets/vendor-BQh5NVNk.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1765538671030/assets/index-CtU1grGc.css">
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1765545979698/assets/index-DpXau8AO.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1765545979698/assets/vendor-Bobat79A.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1765545979698/assets/vendor-BQh5NVNk.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1765545979698/assets/index-D0SVxWeK.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">!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>
......@@ -79,8 +79,8 @@
<body>
<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 crossorigin id="vite-legacy-polyfill" src="https://yun.duiba.com.cn/db_games/spark/v3/1765538671030/assets/polyfills-legacy-C-49g-A3.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1765538671030/assets/index-legacy-v9HfWnZN.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
<script nomodule crossorigin id="vite-legacy-polyfill" src="https://yun.duiba.com.cn/db_games/spark/v3/1765545979698/assets/polyfills-legacy-C-49g-A3.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1765545979698/assets/index-legacy-C8YRHRSd.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>
</html>
\ No newline at end of file
......@@ -68,10 +68,10 @@
}
</script>
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1765538671030/assets/index-DoIwQvV3.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1765538671030/assets/vendor-Bobat79A.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1765538671030/assets/vendor-BQh5NVNk.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1765538671030/assets/index-CtU1grGc.css">
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1765545979698/assets/index-DpXau8AO.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1765545979698/assets/vendor-Bobat79A.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1765545979698/assets/vendor-BQh5NVNk.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1765545979698/assets/index-D0SVxWeK.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">!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>
......@@ -79,8 +79,8 @@
<body>
<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 crossorigin id="vite-legacy-polyfill" src="https://yun.duiba.com.cn/db_games/spark/v3/1765538671030/assets/polyfills-legacy-C-49g-A3.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1765538671030/assets/index-legacy-v9HfWnZN.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
<script nomodule crossorigin id="vite-legacy-polyfill" src="https://yun.duiba.com.cn/db_games/spark/v3/1765545979698/assets/polyfills-legacy-C-49g-A3.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1765545979698/assets/index-legacy-C8YRHRSd.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>
</html>
\ No newline at end of file
......@@ -67,22 +67,13 @@ function dealPageRemainTime() {
windowVisibility((visibility) => {
if (visibility) {
startTimer = new Date().getTime();
//console.log('starttimer', startTimer)
} else {
endTimer = new Date().getTime();
//console.log('endTimer', endTimer);
sendData();
}
})
const sendData = () => {
const t0 = endTimer - startTimer;
//console.log('duration', t0);
accessLog(156, {
remain: t0,
});
};
document.body['onbeforeunload'] = () => {
......
......@@ -278,7 +278,7 @@ class HomePage extends React.Component<any, any> {
<span className="recommend_products_bg">
<div className="r_products_list">
{bannerInfo?.map((item, index) => (
<div className="r_products_item" key={`r_prdct_${index}`} onClick={this.handleClickBanner}>
<div className="r_products_item" key={`r_prdct_${index}`} onClick={() => this.handleClickBanner(item)}>
<img className="r_product_bg" src={item.bannerImg} alt="" />
</div>
))}
......
......@@ -6,8 +6,6 @@ import './index.less';
import store from '../../store/store';
import { Button } from '@grace/ui';
import { _asyncThrottle } from "../../utils/utils";
import { ModalCtrl } from "@/core/ctrls/ModalCtrl";
import { Toast } from '@grace/ui';
@observer
class BlackPop extends React.Component {
......@@ -19,7 +17,7 @@ class BlackPop extends React.Component {
}
handleClose = _asyncThrottle(() => {
window.location.href = `${CFG.domain}/projectx/${store.frontVariable.otherProjectId}/index.html?appID=${CFG.appID}&channel=${CFG.channel}`
window.location.href = `${CFG.domain}/projectx/${store.frontVariable.otherProjectId}/index.html?appID=${CFG.appID}`
})
render() {
......
......@@ -11,9 +11,6 @@ import store from "@/store/store";
import API from "@/api";
import { NoPrizePanel } from "@/panels/NoPrizePanel/NoPrizePanel.tsx";
import { PrizePanel } from "@/panels/PrizePanel/PrizePanel.tsx";
import { waitTime } from "@/utils/utils";
@observer
class SetupSuccessPop extends React.Component {
......@@ -53,7 +50,9 @@ class SetupSuccessPop extends React.Component {
this.turntableRef.launch();
const index = store.indexData?.giftPop?.actPrizeVO?.findIndex((item) => item.prizeId === this.drawResultInfo.prizeId);
this.turntableRef.braking(index);
if(index != -1) {
this.turntableRef.braking(index);
}
});
handleClose = _asyncThrottle(() => {
......
......@@ -15,6 +15,9 @@ class SignTaskPop extends React.Component {
handleToLink = _asyncThrottle(async () => {
this.props.callback?.();
setTimeout(() => {
ModalCtrl.closeModal()
}, 100)
location.href = this.props.otherPrizeInfo?.link || ''
})
......
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