Commit 1e075a4c authored by 徐士卿's avatar 徐士卿

dabao

parent d175d4c4
......@@ -56,10 +56,10 @@
// alert("【警告】检测到活动url中没有appID参数\n缺少该参数会导致埋点、分享、app信息获取错误。")
}
</script>
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1747639085084/assets/index-D8h8yOhx.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747639085084/assets/vendor-DdwO98ss.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747639085084/assets/vendor-BQh5NVNk.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747639085084/assets/index-CPIZp9tn.css">
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1747646741670/assets/index-CJ2la97Q.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747646741670/assets/vendor-CqVmyQtN.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747646741670/assets/vendor-BQh5NVNk.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747646741670/assets/index-C3XGu9T-.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/1747639085084/assets/polyfills-legacy-arANKBzQ.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1747639085084/assets/index-legacy-S8o1xsgX.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/1747646741670/assets/polyfills-legacy-arANKBzQ.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1747646741670/assets/index-legacy-b-kOZsnL.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>
</html>
\ No newline at end of file
......@@ -8,14 +8,15 @@ export default [
"success": true,
"message": "dolor reprehenderit ex culpa veniam",
"data": {
"choosedChallengeId": "2",
"choosedChallengeId": "1",
"challengeStartTime": 27404105.225178465,
"challengeEndTime": -87229323.37597737,
"boolShowFailPop": false,
"challengeSuccessPopInfo": {
"prizeName": "30天的奖励",
"prizeImg": "//yun.duiba.com.cn/polaris/045CCBB8-F6C7-43DB-9F81-45F52430A878.441c8f13daf61c48b85fe383e764d9089f1d4a66.png"
},
"challengeSuccessPopInfo": null,
// {
// "prizeName": "30天的奖励",
// "prizeImg": "//yun.duiba.com.cn/polaris/045CCBB8-F6C7-43DB-9F81-45F52430A878.441c8f13daf61c48b85fe383e764d9089f1d4a66.png",
// },
"challengeConfigList": [
{
"challengeId": "1",
......@@ -50,8 +51,8 @@ export default [
"resignQg": 999,
}
],
"hasChallengeDay": 60,
"boolNeedResign": false,
"hasChallengeDay": 23,
"boolNeedResign": true,
"boolNeedResignPop": false,
"taskInfoList": [
{
......
......@@ -31,10 +31,9 @@ class Choice_challenge extends React.Component {
});
console.log(id);
if (success) {
store.getTaskInfo();
ModalCtrl.closeModal();
store.getTaskInfo();
}
store.getTaskInfo()
};
// handleclose = () => {
......
......@@ -23,7 +23,7 @@ class Consume_credits extends React.Component {
await pre_reduce_score(
{
toPlaywayId: "challenge",
toActionId: "taskComplet",
toActionId: "taskComplete",
desc: "taskComplete_credits_desc",
credits: n,
},
......@@ -35,9 +35,9 @@ class Consume_credits extends React.Component {
if (success) {
ModalCtrl.closeModal();
}
store.getTaskInfo()
}
);
store.getTaskInfo()
};
handleclose = () => {
......
......@@ -40,7 +40,7 @@ class Consume_qg extends React.Component {
<span className="tip1">消耗{n}青果</span>
<span className="tip2">完成打卡</span>
<Button className="close" onClick={this.handleclose} />
<Button className="clock" onClick={this.handleclock} />
<Button className="clock" onClick={() => this.handleclock(code)} />
<span className="icon"></span>
<span className="ditu"></span>
</div>
......
......@@ -33,10 +33,9 @@ class Renewmodule extends React.Component {
};
handleUse = async (activeChoice, inferQg, inferJf, resignJf) => {
handleLogClick(18)
handleLogClick(18);
if (activeChoice === "credits") {
// 执行积分续签逻辑 todo
ModalCtrl.closeModal();
if (!inferJf) return Toast.show("积分不足");
await pre_reduce_score(
{
......@@ -54,23 +53,23 @@ class Renewmodule extends React.Component {
ModalCtrl.closeModal();
ModalCtrl.showModal(Finish_resign);
}
store.getTaskInfo();
}
);
} else {
// 执行青果续签逻辑 todo
ModalCtrl.closeModal();
if (!inferQg) return Toast.show("青果不足");
const { success } = await API.getChallengeResign({ costType: 1 });
if (success) {
ModalCtrl.closeModal();
ModalCtrl.showModal(Finish_resign);
}
}
store.getTaskInfo();
}
};
render() {
handleLogExposure(18)
handleLogExposure(18);
const { activeChoice } = this.state;
const { hasChallengeDay, resignJf, resignQg } = this.props;
const { jfNum, qgNum } = store?.baseInfo || {};
......
......@@ -315,6 +315,15 @@
.webpBg("HomePage/sampleBg.png");
}
.duigou {
position: absolute;
top: 48px;
width: 19px;
height: 15px;
.webpBg("HomePage/duigou.png");
}
.renew {
position: absolute;
width: 67px;
......
......@@ -46,18 +46,18 @@ class Check extends React.Component<any, any> {
if (n <= qgNum) {
ModalCtrl.showModal(Consume_qg, { n, code, title });
} else {
Toast.show("很抱歉,您的青果不足");
Toast.show("青果不足!");
}
} else if (type === "xhjf") {
if (n <= jfNum) {
ModalCtrl.showModal(Consume_credits, { n, code, title });
} else {
Toast.show("很抱歉,您的积分不足");
Toast.show("积分不足!");
}
} else if (type === "yqzl" || type === "yqzl_new") {
store.doInvite(code)
} else if (type === "scan") {
await API.getChallenegeComplete({ taskCode: code });
// await API.getChallenegeComplete({ taskCode: code });
wx.miniProgram.switchTab({ url: jumpUrl });
} else if (type === "browse") {
await API.getChallenegeComplete({ taskCode: code });
......@@ -155,7 +155,7 @@ class Check extends React.Component<any, any> {
{Array.isArray(taskInfoList) &&
taskInfoList.length > 0 &&
taskInfoList?.map((v, i) => {
const { title, subTitle, icon, code, completedSize, intervalLimitSize, jumpUrl, id } = v || {};
const { title, subTitle, icon, code, completedSize, intervalLimitSize, jumpUrl, id, } = v || {};
// 获取按钮状态
const renderActionButton = (code, completedSize, intervalLimitSize) => {
......@@ -250,7 +250,7 @@ class Check extends React.Component<any, any> {
{/* <span className="item-bg"></span> */}
<img className="item-icon" src={icon} alt="" />
<div className="item-name">
<span className="item-title">{title}</span>
<span className="item-title">{title}(completedSize / intervalLimitSize) </span>
<span className="item-tip">{subTitle}</span>
</div>
{renderActionButton(code, completedSize, intervalLimitSize)}
......@@ -271,8 +271,11 @@ class Check extends React.Component<any, any> {
className={`sample ${dayIndex === challengeTotalDay - 1 ? 'new-style' : ''}`}
key={dayIndex}
>
{dayIndex < hasChallengeDay - 1 && (
{dayIndex <= hasChallengeDay - 1 && challengeTotalDay !== dayIndex + 1 && (
<>
<span className="done"></span>
<span className="duigou"></span>
</>
)}
{boolNeedResign && dayIndex === hasChallengeDay && (
<Button className="renew md6" onClick={() => this.handlegosign(hasChallengeDay, resignJf, resignQg, 'calendar')} />
......
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