Commit cf0195c1 authored by zhangyuan's avatar zhangyuan

提交

parent a8124b12
......@@ -26,9 +26,9 @@
<script>
if (typeof window.queueMicrotask !== "function") {
window.queueMicrotask = function(callback) {
Promise.resolve().then(callback).catch(function(error) {
setTimeout(function() { throw error; });
window.queueMicrotask = function (callback) {
Promise.resolve().then(callback).catch(function (error) {
setTimeout(function () { throw error; });
});
};
}
......@@ -55,16 +55,20 @@
CFG.prize = '/projectx/' + CFG.projectId + '/prize.html?appID=' + CFG.appID + '&channel=' + CFG.channel;
// 提示弹窗二维码短链链接(目的页是 首页xx/index.html?off=1) 线上正式 TODO 域名记得改为dexfu的
CFG.prizePageQrcodeUrl = CFG.domain + CFG.prize + "&off=1";
// 分享落地页
CFG.shareUrl = "/projectx/" + CFG.projectId + "/share.html?appID=" + CFG.appID + '&channel=' + CFG.channel;
CFG.inviteCode = getUrlParam('inviteCode');
if (!getUrlParam("appID")) {
// alert("【警告】检测到活动url中没有appID参数\n缺少该参数会导致埋点、分享、app信息获取错误。")
}
</script>
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1753428645001/assets/index-CB-W6p1n.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1753428645001/assets/vendor-oDoDBzst.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1753428645001/assets/vendor-BQh5NVNk.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1753428645001/assets/index-DhjTSNw1.css">
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1753668715420/assets/index-CyPVzCbA.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1753668715420/assets/vendor-m8HXMiLc.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1753668715420/assets/vendor-BQh5NVNk.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1753668715420/assets/index-BhL2Z-Bh.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>
......@@ -72,8 +76,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/1753428645001/assets/polyfills-legacy-D0AVcSo7.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1753428645001/assets/index-legacy-BMxz7C-1.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/1753668715420/assets/polyfills-legacy-D0AVcSo7.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1753668715420/assets/index-legacy-B7yXrHcm.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>
</html>
</html>
\ No newline at end of file
......@@ -135,7 +135,8 @@ class HomePage extends React.Component<any, any> {
newUserFun = _asyncThrottle(() => {
if (!store.judgeActTime(true, false)) return
// TODO
ModalCtrl.showModal(NewbieModal)
const { giftPop } = store.indexData;
ModalCtrl.showModal(NewbieModal, { type: giftPop?.type, actPrizeVO: giftPop?.actPrizeVO })
})
// 倒计时
countDownFun = _asyncThrottle(() => {
......@@ -204,7 +205,7 @@ class HomePage extends React.Component<any, any> {
}
render() {
const { curTab } = this.state;
const { bigStartConfig, virtualAssets, checkIn, recommendProductConfig, productEnd, endPoint, currentTime, redRainCountDownTime } = store.indexData
const { bigStartConfig, virtualAssets, checkIn, recommendProductConfig, productEnd, endPoint, currentTime, redRainCountDownTime, giftPop } = store.indexData
// 推荐产品
const rProductList = recommendProductConfig?.filter((item) => +item.status === 0)
// 我的持仓
......@@ -359,7 +360,7 @@ class HomePage extends React.Component<any, any> {
</div>
<Button className="rule_btn md5" onClick={this.ruleHandle} />
<Button className="prize_btn" onClick={this.reallyPrizeHandle} />
<Button className="newUser_btn" onClick={this.newUserFun} />
{giftPop && <Button className="newUser_btn" onClick={this.newUserFun} />}
<Button className="redpack_btn" onClick={this.countDownFun} >
<Countdown
leftT={redRainCountDownTime * 1000}
......
......@@ -68,6 +68,13 @@ class Store {
endPoint?: number,
ruleText?: string,
uid?: string,
giftPop?: {
type?: string,
actPrizeVO?: Array<{
pirzeName?: string,
pirzeImg?: string
}>
}
// 大明星配置
bigStartConfig?: Array<{
prizeImg?: string,
......
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