Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
ZheShangBank_TaoQuan_20240612
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
ZheShangBank_TaoQuan_20240612
Commits
53049f77
Commit
53049f77
authored
Jul 09, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理一下代码
parent
af1b4cec
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
42 deletions
+62
-42
TaskItem.ts
assets/Scripts/Panels/TaskPanel/TaskItem.ts
+5
-0
TaskItem.prefab
assets/resources/TaskPanel/prefab/TaskItem.prefab
+4
-4
index.html
build/web-mobile/index.html
+16
-1
queryTasks.do.json
preview-template/mock/task_1/queryTasks.do.json
+37
-37
No files found.
assets/Scripts/Panels/TaskPanel/TaskItem.ts
View file @
53049f77
...
...
@@ -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
);
}
...
...
assets/resources/TaskPanel/prefab/TaskItem.prefab
View file @
53049f77
...
...
@@ -231,7 +231,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -
29
0,
"x": -
30
0,
"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": -
29
0,
"x": -
30
0,
"y": -20,
"z": 0
},
...
...
build/web-mobile/index.html
View file @
53049f77
...
...
@@ -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"
...
...
preview-template/mock/task_1/queryTasks.do.json
View file @
53049f77
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment