Commit 3383a62d authored by haiyoucuv's avatar haiyoucuv

init

parent ec8c48ba
...@@ -46,10 +46,10 @@ ...@@ -46,10 +46,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/1752116315679/assets/index-BHGf3goQ.js"></script> <script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1752127973097/assets/index-Cl-EuRPq.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1752116315679/assets/vendor-pyrxJLW_.js"> <link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1752127973097/assets/vendor-pyrxJLW_.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1752116315679/assets/vendor-BQh5NVNk.css"> <link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1752127973097/assets/vendor-BQh5NVNk.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1752116315679/assets/index-B188UM1s.css"> <link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1752127973097/assets/index-BTmSwAZL.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>
...@@ -57,8 +57,8 @@ ...@@ -57,8 +57,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/1752116315679/assets/polyfills-legacy-D0AVcSo7.js"></script> <script nomodule crossorigin id="vite-legacy-polyfill" src="https://yun.duiba.com.cn/db_games/spark/v3/1752127973097/assets/polyfills-legacy-D0AVcSo7.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1752116315679/assets/index-legacy-Sd2NT3bF.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/1752127973097/assets/index-legacy-BFUp6Pwl.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body> </body>
</html> </html>
......
...@@ -34,6 +34,17 @@ ...@@ -34,6 +34,17 @@
.webpBg("RecordPage/backBtn.png"); .webpBg("RecordPage/backBtn.png");
} }
.listNone {
position: absolute;
top: 400px;
left: 0;
width: 100%;
font-size: 32px;
color: #d62928;
text-align: center;
font-weight: bold;
}
.list { .list {
position: absolute; position: absolute;
top: 143px; top: 143px;
......
...@@ -49,27 +49,30 @@ class RecordPage extends React.Component<any, any> { ...@@ -49,27 +49,30 @@ class RecordPage extends React.Component<any, any> {
return <div className={styles.RecordPage}> return <div className={styles.RecordPage}>
<div className={styles.pageTitle}/> <div className={styles.pageTitle}/>
<Button className={styles.backBtn} onClick={this.clickBack}/> <Button className={styles.backBtn} onClick={this.clickBack}/>
<div className={styles.list}> {list?.length
{ ? <div className={styles.list}>
list.map((item) => { {
list.map((item) => {
const state = {
0: { txt: "购买待确认", color: "rgba(0,0,0,0.6)" }, const state = {
1: { txt: "购买成功", color: "#ee4e32" }, 0: { txt: "购买待确认", color: "rgba(0,0,0,0.6)" },
2: { txt: "赎回成功", color: "#1b8a4f" }, 1: { txt: "购买成功", color: "#ee4e32" },
3: { txt: "购买失败", color: "rgba(0,0,0,0.6)" }, 2: { txt: "赎回成功", color: "#1b8a4f" },
}[item.tradeStatus]; 3: { txt: "购买失败", color: "rgba(0,0,0,0.6)" },
}[item.tradeStatus];
return <div className={styles.item}>
<div className={styles.title}>{item.desc}</div> return <div className={styles.item}>
<div className={styles.date}>{dateFormatter(item.gmtCreate, "yyyy.MM.dd hh:mm:ss")}</div> <div className={styles.title}>{item.desc}</div>
<div className={styles.num}>¥{item.amount / 100}</div> <div
<div className={styles.state} style={{ color: state.color }}>{state.txt}</div> className={styles.date}>{dateFormatter(item.gmtCreate, "yyyy.MM.dd hh:mm:ss")}</div>
</div> <div className={styles.num}>¥{item.amount / 100}</div>
}) <div className={styles.state} style={{ color: state.color }}>{state.txt}</div>
} </div>
</div> })
}
</div>
: <div className={styles.listNone}>暂无交易记录哦</div>
}
</div>; </div>;
} }
} }
......
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