Commit 13d84662 authored by 徐士卿's avatar 徐士卿

dabao

parent 0fd1a2c3
......@@ -56,10 +56,10 @@
// alert("【警告】检测到活动url中没有appID参数\n缺少该参数会导致埋点、分享、app信息获取错误。")
}
</script>
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1747654685775/assets/index-ChRjuC-m.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747654685775/assets/vendor-DYON2G8a.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747654685775/assets/vendor-BQh5NVNk.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747654685775/assets/index-2x85y1kH.css">
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1747707139818/assets/index-DDlnoCrt.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747707139818/assets/vendor-DlvOOccp.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747707139818/assets/vendor-BQh5NVNk.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747707139818/assets/index-C4ncAaIM.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>
......@@ -67,8 +67,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/1747654685775/assets/polyfills-legacy-arANKBzQ.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1747654685775/assets/index-legacy-Cu40uu8V.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/1747707139818/assets/polyfills-legacy-arANKBzQ.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1747707139818/assets/index-legacy-ujAL9jhq.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>
</html>
\ No newline at end of file
......@@ -51,7 +51,7 @@ export default [
"resignQg": 999,
}
],
"hasChallengeDay": 2,
"hasChallengeDay": 30,
"boolNeedResign": false,
"boolNeedResignPop": false,
"taskInfoList": [
......
......@@ -151,8 +151,10 @@ class Check extends React.Component<any, any> {
<div className="task">
<div className="task-bg">
{hasChallengeDay !== challengeTotalDay && (
<div className="task-plan">打卡任务 {completedTasks}{taskCount}</div>
{Array.isArray(taskInfoList) &&
)}
{hasChallengeDay !== challengeTotalDay && Array.isArray(taskInfoList) &&
taskInfoList.length > 0 &&
taskInfoList?.map((v, i) => {
const { title, subTitle, icon, code, completedSize, intervalLimitSize, jumpUrl, id, } = v || {};
......@@ -269,14 +271,20 @@ class Check extends React.Component<any, any> {
<Button className="subcribe" onClick={this.handlesubscribe}>去订阅</Button>
<div className="list">
{Array.from({ length: challengeTotalDay }).map((_, dayIndex) => (
<div className="sample" key={dayIndex}>
<div
className={`sample ${dayIndex + 1 === challengeTotalDay && !(boolNeedResign && dayIndex === hasChallengeDay)
? 'new-style'
: ''
}`}
key={dayIndex}
>
{dayIndex <= hasChallengeDay - 1 && dayIndex + 1 !== challengeTotalDay && (
<>
<span className="done"></span>
<span className="duigou"></span>
</>
)}
{boolNeedResign && dayIndex === hasChallengeDay && (
{(boolNeedResign && dayIndex === hasChallengeDay) && (
<Button className="renew md6" onClick={() => this.handlegosign(hasChallengeDay, resignJf, resignQg, 'calendar')} />
)}
{dayIndex !== challengeTotalDay - 1 && (
......@@ -289,6 +297,7 @@ class Check extends React.Component<any, any> {
</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