Commit 997fdc5c authored by haiyoucuv's avatar haiyoucuv

整理一下代码

parent 5fd5ee06
......@@ -9,7 +9,7 @@ import {
} from 'cc';
import Panel from '../../../Module/Panel';
import TaskCenter from '../../TaskCenter';
import { strFormat } from '../../Utils/Utils';
import { _asyncThrottle, strFormat } from '../../Utils/Utils';
import { sendWebNet, sendWebNetWithToken, WebNetName } from '../../Utils/WebNet/WebNet';
import { CircleItem } from './CircleItem';
import { HandItem } from './HandItem';
......@@ -360,7 +360,7 @@ export class ChangeEquipPanel extends Panel {
}
/** 更换套圈 */
async changeLoop() {
changeLoop = _asyncThrottle(async () => {
const data = this.loopList?.[this.middleIndex];
const {loopType} = data || {};
this.btnEnable(this.mainBtn, false);
......@@ -370,7 +370,7 @@ export class ChangeEquipPanel extends Panel {
}
this.taskRender();
this.btnEnable(this.mainBtn, true);
}
})
/** 关闭弹窗 */
closePannel() {
......
......@@ -39,7 +39,7 @@
<script src="//yun.duiba.com.cn/polaris/SVGA.Lite.v2.1.1.d3a67cbc13c591c53c6f87ab34c57ce387010374.js" crossorigin="anonymous"></script>
<script src="//yun.duiba.com.cn/aurora/assets/2403d1edf2acd15b179306b6ddaa5f0967d78a8f.js"></script>
<link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1720598408858/style.css"/>
<link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1720758851523/style.css"/>
<style>
.sui-captcha {
......@@ -101,16 +101,16 @@
</script>
<!-- Polyfills bundle. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1720598408858/src/polyfills.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1720758851523/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1720598408858/src/system.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1720758851523/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1720598408858/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1720758851523/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>
<script>
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1720598408858/index.js').catch(function (err) {
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1720758851523/index.js').catch(function (err) {
console.error(err);
})
</script>
......
......@@ -6,7 +6,7 @@
{
"buttonText": "请邀请好友给你助力",
"code": "it",
"completedSize": 0,
"completedSize": 2,
"desc": "{\"taskType\":2}",
"extra": null,
"icon": null,
......@@ -37,13 +37,13 @@
"ruleId": "spPrize@sp_challenge_times@1",
"sendPrize": null,
"subTitle": "挑战次数*1/人,可邀请10人挑战次数*1/人,可邀请10人",
"taskStatus": 0,
"taskStatus": 2,
"title": "请好友助力挑战次"
},
{
"buttonText": "/",
"code": "login_3",
"completedSize": 1,
"completedSize": 3,
"desc": "{\"taskType\":1}",
"extra": null,
"icon": null,
......@@ -60,13 +60,13 @@
"ruleId": "spPrize@undefined@1",
"sendPrize": null,
"subTitle": "/",
"taskStatus": 0,
"taskStatus": 2,
"title": "累计登录3天获得"
},
{
"buttonText": "/",
"code": "join_3",
"completedSize": 1,
"completedSize": 3,
"desc": "{\"taskType\":1}",
"extra": null,
"icon": null,
......@@ -83,13 +83,13 @@
"ruleId": "spPrize@undefined@undefined",
"sendPrize": null,
"subTitle": "/",
"taskStatus": 0,
"taskStatus": 2,
"title": "累计参与3次获得"
},
{
"buttonText": "/",
"code": "score_300",
"completedSize": 0,
"completedSize": 300,
"desc": "{\"taskType\":1}",
"extra": null,
"icon": null,
......@@ -106,13 +106,13 @@
"ruleId": "spPrize@undefined@undefined",
"sendPrize": null,
"subTitle": "/",
"taskStatus": 0,
"taskStatus": 2,
"title": "累计达到300积分获得"
},
{
"buttonText": "/",
"code": "score_400",
"completedSize": 0,
"completedSize": 400,
"desc": "{\"taskType\":2}",
"extra": null,
"icon": null,
......@@ -129,13 +129,13 @@
"ruleId": "spPrize@undefined@undefined",
"sendPrize": null,
"subTitle": "/",
"taskStatus": 0,
"taskStatus": 2,
"title": "累计达到400积分获得"
},
{
"buttonText": "去完成",
"code": "bt_1",
"completedSize": 0,
"completedSize": 100,
"desc": "{\"jumpInfoList\":[{\"subTitle\":\"百度1副标题\",\"title\":\"百度1\",\"url\":\"https://www.baidu.com1\"},{\"subTitle\":\"百度2副标题\",\"title\":\"百度2\",\"url\":\"https://www.baidu.com2\"},{\"subTitle\":\"百度3副标题\",\"title\":\"百度3\",\"url\":\"https://www.baidu.com3\"},{\"subTitle\":\"百度4副标题\",\"title\":\"百度4\",\"url\":\"https://www.baidu.com4\"}],\"taskType\":2}",
"extra": null,
"icon": null,
......@@ -205,7 +205,7 @@
"ruleId": "ru_loop",
"sendPrize": null,
"subTitle": "百度1副标题",
"taskStatus": 0,
"taskStatus": 2,
"title": "百度1"
},
{
......@@ -242,7 +242,7 @@
"ruleId": "spPrize@sp_challenge_times@1",
"sendPrize": null,
"subTitle": "/",
"taskStatus": 0,
"taskStatus": 2,
"title": "手机话费充值"
},
{
......@@ -318,7 +318,7 @@
"ruleId": "ru_loop",
"sendPrize": null,
"subTitle": "/",
"taskStatus": 0,
"taskStatus": 2,
"title": "开通生物识别登录方式"
},
{
......@@ -355,7 +355,7 @@
"ruleId": "spPrize@sp_challenge_times@1",
"sendPrize": null,
"subTitle": "/",
"taskStatus": 0,
"taskStatus": 2,
"title": "开通消息通知通知权限"
},
{
......@@ -378,7 +378,7 @@
"ruleId": "spPrize@undefined@undefined",
"sendPrize": null,
"subTitle": "/",
"taskStatus": 0,
"taskStatus": 2,
"title": "【圈圈】资产提升10000元任务"
},
{
......@@ -420,7 +420,7 @@
"ruleId": "spPrize@sp_challenge_times@3",
"sendPrize": true,
"subTitle": "/",
"taskStatus": 0,
"taskStatus": 2,
"title": "资产每提升1000元得次数*1"
}
],
......
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