Commit 53049f77 authored by haiyoucuv's avatar haiyoucuv

整理一下代码

parent af1b4cec
......@@ -48,8 +48,13 @@ export class TaskItem extends ScrollListItem {
desc,
} = data;
if (code?.startsWith("it")) {
this.title.string = strFormat(`${title}(${completedSize}/${intervalLimitSize})`, 24);
} else if (code === "bank_2202") {
const descObj = desc ? JSON.parse(desc) : {};
const t = ~~((descObj?.progressAmount || 0) / 1000);
this.title.string = strFormat(`${title}(${t}/10)`, 30);
} else {
this.title.string = strFormat(title, 24);
}
......
......@@ -231,7 +231,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -290,
"x": -300,
"y": 20,
"z": 0
},
......@@ -311,8 +311,8 @@
"_string": "",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 30,
"_fontSize": 30,
"_actualFontSize": 28,
"_fontSize": 28,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 0,
......@@ -390,7 +390,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -290,
"x": -300,
"y": -20,
"z": 0
},
......
......@@ -3,7 +3,22 @@
<head>
<meta charset="utf-8">
<title>套圈挑战赛</title>
<title>套圈挑战赛</title>
<script id="monitorjs" src="//yun.duiba.com.cn/woodpecker/sdk/0.0.36/woodpecker_outer.js" ></script>
<script id="registerMonitor">
// 烽火台注入前端监控脚本,请勿修改
try {
woodpecker.setConfig({
projectId: "pc9c1ee11",
developer: [
"fa17c4667c62b5ba014f382c0802a462"
],
});
} catch (e) {
console.error(e);
}
</script>
<!--http://www.html5rocks.com/en/mobile/mobifying/-->
<meta name="viewport"
......
......@@ -3,6 +3,43 @@
"data": {
"endTimestamp": 1785495731000,
"item": [
{
"buttonText": null,
"code": "bank_2202",
"completedSize": 0,
"desc": "{\"taskType\":2,\"hasReceivedNum\":10, \"progressAmount\":10000}",
"extra": null,
"icon": null,
"id": "savjpxbs",
"index": null,
"indexes": null,
"intervalLimitSize": 1,
"intervalType": 0,
"jumpUrl": "/",
"options": [
{
"degree": null,
"icon": null,
"icon2": null,
"id": "sp_challenge_times",
"index": null,
"name": "挑战次数",
"prizeId": "sp_challenge_times",
"prizeType": null,
"refId": null,
"refType": null,
"sendCount": 3
}
],
"playwayId": "task_1",
"prizePendingCode": null,
"prizePendingCodeList": null,
"ruleId": "spPrize@sp_challenge_times@3",
"sendPrize": null,
"subTitle": "/",
"taskStatus": 0,
"title": "资产每提升1000元得次数*1"
},
{
"buttonText": "请邀请好友给你助力",
"code": "it",
......@@ -302,43 +339,6 @@
"subTitle": "/",
"taskStatus": 0,
"title": "资产提升10000元任务"
},
{
"buttonText": null,
"code": "bank_2202",
"completedSize": 0,
"desc": "{\"taskType\":2,\"hasReceivedNum\":10}",
"extra": null,
"icon": null,
"id": "savjpxbs",
"index": null,
"indexes": null,
"intervalLimitSize": 1,
"intervalType": 0,
"jumpUrl": "/",
"options": [
{
"degree": null,
"icon": null,
"icon2": null,
"id": "sp_challenge_times",
"index": null,
"name": "挑战次数",
"prizeId": "sp_challenge_times",
"prizeType": null,
"refId": null,
"refType": null,
"sendCount": 3
}
],
"playwayId": "task_1",
"prizePendingCode": null,
"prizePendingCodeList": null,
"ruleId": "spPrize@sp_challenge_times@3",
"sendPrize": null,
"subTitle": "/",
"taskStatus": 0,
"title": "资产每提升1000元任务"
}
],
"startTimestamp": 1718190131000,
......
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