Commit 8bef106c authored by 王勇霞's avatar 王勇霞

feat: 调整

parent fe53ebdb
......@@ -68,10 +68,10 @@
}
</script>
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1765453344117/assets/index-wZ7KUPB1.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1765453344117/assets/vendor-BqxpW0HD.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1765453344117/assets/vendor-BQh5NVNk.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1765453344117/assets/index-CqLXLGDH.css">
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1765508887662/assets/index-DkYTJS3P.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1765508887662/assets/vendor-BqxpW0HD.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1765508887662/assets/vendor-BQh5NVNk.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1765508887662/assets/index-Cbat6BOc.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/1765453344117/assets/polyfills-legacy-DTQxxLmk.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1765453344117/assets/index-legacy-CC7qJdgF.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/1765508887662/assets/polyfills-legacy-DTQxxLmk.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1765508887662/assets/index-legacy-DVS6kZ4o.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>
</html>
\ No newline at end of file
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<link rel="dns-prefetch" href="//yun.duiba.com.cn" />
<link rel="preconnect" href="//embedlog.duiba.com.cn">
<title>模拟理财 月度争霸赛</title>
<script type="text/javascript">
if (localStorage && localStorage.isWebp) {
document
.getElementsByTagName('html')[0]
.setAttribute('duiba-webp', 'true');
}
</script>
<script src="//yun.duiba.com.cn/js-libs/rem/1.1.3/rem.min.js"></script>
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
<!-- 华夏银行app文件 -->
<script src="//yun.duiba.com.cn/polaris/hxbExtLib.min.f2e3022c5ce5dd92689bff0a5b6c5cb0e9193cd1.js"></script>
<script>
if (typeof window.queueMicrotask !== "function") {
window.queueMicrotask = function (callback) {
Promise.resolve().then(callback).catch(function (error) {
setTimeout(function () { throw error; });
});
};
}
</script>
<script>
var CFG = CFG || {};
CFG.projectId = location.pathname.split('/')[2] || '1';
function getUrlParam(name) {
var search = window.location.search;
var matched = search
.slice(1)
.match(new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'));
return search.length ? matched && matched[2] : null;
}
CFG.appID = '${APPID}';
CFG.domain = location.origin
// 渠道
CFG.channel = getUrlParam("channel");
// 首页
CFG.index = '/projectx/' + CFG.projectId + '/index.html?appID=' + CFG.appID + '&channel=' + CFG.channel;
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.index + "&off=1";
// 分享落地页
CFG.shareUrl = "/projectx/" + CFG.projectId + "/share.html?appID=" + CFG.appID + '&channel=' + CFG.channel + "&appKey=3oLQF9j3y7BKJUquwGn56hL6zzCW&openBs=openbs";
if (CFG.projectId === 'pe8805796') {
// 测试环境
// http://activity.m.duibatest.com.cn/projectx/pe8805796/share.html?appKey=jlg88lyxz7siqtmr&openBs=openbs&appID=1
CFG.shareUrl = CFG.shareUrl + "&appKey=jlg88lyxz7siqtmr&openBs=openbs"
}
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/1765503954432/assets/index-DRWnQ8Js.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1765503954432/assets/vendor-BqxpW0HD.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1765503954432/assets/vendor-BQh5NVNk.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1765503954432/assets/index-DQJ0HK4d.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>
<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/1765503954432/assets/polyfills-legacy-DTQxxLmk.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1765503954432/assets/index-legacy-BwPPsPcp.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>
</html>
\ No newline at end of file
......@@ -109,7 +109,7 @@ export default [
"url": "enim",
"userRecordId": -64633769.59404985,
"prizeType": -81808785,
"prizeId": "prizeId3",
"prizeId": "prizeId9",
"optionImg": "quis nisi adipisicing",
"optionName": "cupidatat",
"optionId": "commodo nulla ut minim",
......
......@@ -5,7 +5,6 @@ import store from "@/store/store.ts";
import { Button, Toast } from "@grace/ui";
import Rulepop from '@/panels/rulepop/rulepop';
import Positionpop from '@/panels/positionpop/positionpop';
import Endpop from '@/panels/endPop/index.jsx';
import TaskPanel from '@/panels/taskPanel/index.jsx';
import { PageCtrl } from '@/core/ctrls/PageCtrl';
......@@ -50,7 +49,6 @@ class HomePage extends React.Component<any, any> {
componentDidMount() {
store.updateIndex()
// ModalCtrl.showModal(Endpop)
// 分享页
// PageCtrl.changePage(SharePage)
this.getQueryRankInfo(this.state.rankingTab);
......@@ -140,7 +138,7 @@ class HomePage extends React.Component<any, any> {
render() {
const { curTab, rankingTab, rankOptions, rankInfos, myRank } = this.state;
const { virtualAssets, recommendProductConfig, giftPop, bannerInfo, lcGradeIcon, endPoint, currentTime } = store.indexData
const { virtualAssets, recommendProductConfig, giftPop, bannerInfo, lcGradeIcon, endPoint, currentTime, productEnd } = store.indexData
// 我的持仓
const mProductList = recommendProductConfig?.filter((item) => item.mineProduct)
// 当前tab的产品列表
......@@ -257,12 +255,10 @@ class HomePage extends React.Component<any, any> {
<span className={this.state.isExpand ? 'expandSty-1' : 'expandSty-2'} onClick={() => this.setState({isExpand: !this.state.isExpand})}></span>
</div>
</div>
</div>
{/* 模拟资产 */}
<div className="actual_assets">
{!productEnd &&<div className="actual_assets">
<div className='exchange_record md10' onClick={this.recordHadnle}></div>
<div className="rate_wrap">
<div className="yield_rate">
......@@ -312,7 +308,7 @@ class HomePage extends React.Component<any, any> {
/>
: <div className="time_box">理财体验金已失效</div>
}
</div>
</div>}
{/* banner */}
{!!bannerInfo?.length && <div className="recommend_products">
......@@ -328,7 +324,7 @@ class HomePage extends React.Component<any, any> {
</div>}
{/* 签到区 */}
<SignCom></SignCom>
{!productEnd && <SignCom></SignCom>}
{/* 产品列表 */}
<div className="bottom_products">
......@@ -375,7 +371,7 @@ class HomePage extends React.Component<any, any> {
{/* 其他icon */}
{giftPop?.show && <Button className="new-user-gift-icon md7" onClick={this.newUserFun}></Button>}
<Button className="finance-achievement-icon md9" onClick={this.prizeHandle}></Button>
{lcGradeIcon && <Button className='mnlcj-icon md8' onClick={this.lcGradeHandle}></Button>}
{lcGradeIcon && !productEnd && <Button className='mnlcj-icon md8' onClick={this.lcGradeHandle}></Button>}
</div>
</div>
);
......
......@@ -49,7 +49,7 @@ class FirstPop extends React.Component {
<div className="check_text" dangerouslySetInnerHTML={{ __html: notifyText }}></div>
</div>}
<Button className="happy_btn md2" onClick={this.handleSubmit}></Button>
<Button className="close" onClick={this.close}></Button>
{/* <Button className="close" onClick={this.close}></Button> */}
</div>
</>);
}
......
......@@ -53,7 +53,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(() => {
......
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