Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MingSnake_241120
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
MingSnake_241120
Commits
cb64b75e
Commit
cb64b75e
authored
Dec 11, 2024
by
王杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 排行榜和签到
parent
61a3cc95
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
176 additions
and
116 deletions
+176
-116
HomeScene.scene
assets/Bundles/HomeScene/HomeScene.scene
+17
-17
MyBagPanel.ts
assets/Scripts/Panels/MyBagPanel.ts
+1
-1
SignPanel.ts
assets/Scripts/Panels/SignPanel.ts
+5
-5
RankScene.ts
assets/Scripts/Scenes/RankScene.ts
+5
-3
queryOptions.do.json
preview-template/mock/checkin_1/queryOptions.do.json
+144
-86
personRank.do.json
preview-template/mock/rank/personRank.do.json
+2
-2
information.json
settings/v2/packages/information.json
+2
-2
No files found.
assets/Bundles/HomeScene/HomeScene.scene
View file @
cb64b75e
...
...
@@ -185,7 +185,7 @@
"_priority": 1073741824,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight":
822.7549668874173
,
"_orthoHeight":
771.6521739130435
,
"_near": 1,
"_far": 2000,
"_color": {
...
...
@@ -478,7 +478,7 @@
"y": -180,
"z": -12.000012657215834
},
"_id": "
b1dhF68lVDwaT9JkxeBSct
"
"_id": "
1084+AEb1AyKZ7KQ2BsGUR
"
},
{
"__type__": "cc.UITransform",
...
...
@@ -500,7 +500,7 @@
"x": 0,
"y": 1
},
"_id": "
c5Zxm9fnZKdaBLOg0yf2ep
"
"_id": "
89GuVPT4FPvo37aJt0HIS9
"
},
{
"__type__": "cc.Sprite",
...
...
@@ -536,7 +536,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "
42rgIa33VHIIHPKHDQRq8/
"
"_id": "
97lZUCnq5EUpFBwanjW0OG
"
},
{
"__type__": "cc.Node",
...
...
@@ -584,7 +584,7 @@
"y": -180,
"z": -11.00000220913452
},
"_id": "
382Dp+Bm5JjoMQegVXQM4B
"
"_id": "
68D5CSTIFNPovzzKb4kHg5
"
},
{
"__type__": "cc.UITransform",
...
...
@@ -606,7 +606,7 @@
"x": 0,
"y": 1
},
"_id": "
98yJ/gP6NCU6JKpuujWyUX
"
"_id": "
d5SmSONF1CgpECJGBWvLTF
"
},
{
"__type__": "cc.Sprite",
...
...
@@ -642,7 +642,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "
90dB0Kuh1Kx7ZdTIYYg0EG
"
"_id": "
502nIvZNhNB7LbHGpIwwJw
"
},
{
"__type__": "cc.Node",
...
...
@@ -690,7 +690,7 @@
"y": -180,
"z": -64.00000614258742
},
"_id": "
0f0LJRiwBPj6q0iSLsGwC6
"
"_id": "
b2wucxdx5AsLloPLAwaS+U
"
},
{
"__type__": "cc.UITransform",
...
...
@@ -712,7 +712,7 @@
"x": 0,
"y": 1
},
"_id": "
94gEE3efFLp5binFtMWx0z
"
"_id": "
125VomLvdIhaps2cLF00+8
"
},
{
"__type__": "cc.Sprite",
...
...
@@ -748,7 +748,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "
43AYwoXalK5p+iENHeRo0u
"
"_id": "
d8YDknAc1EupSx7D2NygQO
"
},
{
"__type__": "cc.Node",
...
...
@@ -796,7 +796,7 @@
"y": 180,
"z": 25.99999385741257
},
"_id": "
90l5TuA7RGo7dpsUOBkaLS
"
"_id": "
5eGN0N7oxLnrf0NGLVk7yL
"
},
{
"__type__": "cc.UITransform",
...
...
@@ -818,7 +818,7 @@
"x": 0,
"y": 1
},
"_id": "
33CLRJ3m9B0oTHaFoxIir
U"
"_id": "
84JDpMuYpBkbKrJd2QqDP
U"
},
{
"__type__": "cc.Sprite",
...
...
@@ -854,7 +854,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "3
cG/8f/SdOQ6lEPuYbF85Y
"
"_id": "3
bcMQA0ShGFLme4ryw9wLc
"
},
{
"__type__": "cc.UITransform",
...
...
@@ -6014,7 +6014,7 @@
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x":
0
,
"x":
-5
,
"y": 65.19999999999999,
"z": 0
},
...
...
@@ -6053,7 +6053,7 @@
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 1
2
2,
"width": 1
1
2,
"height": 130.39999999999998
},
"_anchorPoint": {
...
...
@@ -6083,7 +6083,7 @@
"b": 255,
"a": 255
},
"_string": "文案看看能有多大呢我也不
知道啊
",
"_string": "文案看看能有多大呢我也不",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 20,
...
...
@@ -6283,7 +6283,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 1624,
"height": 750
"height": 750
.0000000000001
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
assets/Scripts/Panels/MyBagPanel.ts
View file @
cb64b75e
...
...
@@ -126,7 +126,7 @@ export class MyBagPanel extends Panel {
if
(
!
success
)
return
;
const
excludeSp
=
fals
e
;
//排除道具
const
excludeSp
=
tru
e
;
//排除道具
let
records
=
[]
...
...
assets/Scripts/Panels/SignPanel.ts
View file @
cb64b75e
...
...
@@ -77,9 +77,9 @@ export default class SignPanel extends Panel {
for
(
let
i
=
0
;
i
<=
6
;
i
++
)
{
const
node
=
this
[
`day
${
i
+
1
}
`
]
node
.
getChildByName
(
"prizeNum"
).
getComponent
(
Label
).
string
=
"x"
+
data
[
0
].
options
[
i
].
sendCount
;
node
.
getChildByName
(
"prizeName"
).
getComponent
(
Label
).
string
=
strFormat
(
data
[
0
].
options
[
i
].
name
,
8
);
node
.
getChildByName
(
"img_bg"
).
getComponent
(
Sprite
).
spriteFrame
=
data
[
0
].
options
[
i
].
icon
;
node
.
getChildByName
(
"prizeNum"
).
getComponent
(
Label
).
string
=
data
[
0
].
options
[
0
].
sendCount
?
"x"
+
data
[
0
].
options
[
0
].
sendCount
:
"x0"
;
node
.
getChildByName
(
"prizeName"
).
getComponent
(
Label
).
string
=
strFormat
(
data
[
0
].
options
[
0
].
name
,
8
);
node
.
getChildByName
(
"img_bg"
).
getComponent
(
Sprite
).
spriteFrame
=
data
[
0
].
options
[
0
].
icon
;
}
}
...
...
@@ -87,9 +87,9 @@ export default class SignPanel extends Panel {
async
doSign
()
{
const
{
success
,
data
}
=
await
sendWebNetWithToken
(
WebNetName
.
doSign
);
if
(
success
)
{
showPanel
(
SignSucPanel
,
{
prizeInfo
:
data
});
showPanel
(
SignSucPanel
,
{
prizeInfo
:
data
});
hidePanel
()
await
store
.
updateIndex
()
// this.getSignInfo();
// this.getSignPrize();
...
...
assets/Scripts/Scenes/RankScene.ts
View file @
cb64b75e
...
...
@@ -204,10 +204,10 @@ export class RankScence extends Scene {
if
(
awardConfigs
.
length
>
0
)
{
this
.
leftPirzeImg
.
spriteFrame
=
awardConfigs
[
0
].
prizeImage
;
this
.
leftPirzeName
.
string
=
strFormat
(
awardConfigs
[
0
].
prizeName
,
12
);
this
.
leftRank
.
string
=
awardConfigs
[
0
].
rankRange
;
this
.
leftRank
.
string
=
`第
${
awardConfigs
[
0
].
rankRange
}
名`
;
this
.
rightPirzeImg
.
spriteFrame
=
awardConfigs
[
1
].
prizeImage
;
this
.
rightPirzeName
.
string
=
strFormat
(
awardConfigs
[
1
].
prizeName
,
12
);
this
.
rightRank
.
string
=
awardConfigs
[
1
].
rankRange
;
this
.
rightRank
.
string
=
`第
${
awardConfigs
[
1
].
rankRange
}
名`
;
}
this
.
singleDate
=
data
.
rankInfos
;
...
...
@@ -252,7 +252,7 @@ export class RankScence extends Scene {
onCellDisplay
=
(
cell
:
Node
,
data
)
=>
{
if
(
!
data
)
return
let
{
index
=
0
,
province
=
""
,
score
=
0
,
nickname
=
""
}
=
data
;
let
rankTxt
=
index
;
...
...
@@ -266,6 +266,8 @@ export class RankScence extends Scene {
}
}
console
.
log
(
"111111"
);
cell
.
getChildByName
(
`rank`
).
getComponent
(
Label
).
string
=
rankTxt
;
cell
.
getChildByName
(
`sheng`
).
getComponent
(
Label
).
string
=
province
||
strFormat
(
`
${
nickname
||
"鸣鸣很忙用户"
}
`
,
12
);
cell
.
getChildByName
(
`length`
).
getComponent
(
Label
).
string
=
(
score
>
99999999
?
"99999999+"
:
score
)
||
"0"
;
...
...
preview-template/mock/checkin_1/queryOptions.do.json
View file @
cb64b75e
{
"code"
:
null
,
"data"
:
[
{
"index"
:
"ullamco reprehenderit"
,
"ruleId"
:
"et deserunt id ullamco"
,
"options"
:
[
{
"id"
:
"laboris"
,
"name"
:
"trud do"
,
"icon"
:
"https://yun.duiba.com.cn/polaris/1.380dff33883285a6186d0a408d6c0c7400734a4b.png"
,
"prizeType"
:
40041197.278270304
,
"index"
:
"anim non eu"
,
"prizeId"
:
"aute id"
,
"sendCount"
:
2
,
"degree"
:
"occaecat ut do"
,
"refType"
:
"dolor et aliquip"
},
{
"id"
:
"consequat id dolore"
,
"name"
:
"让我随便起一个名字看看呢"
,
"icon"
:
"https://yun.duiba.com.cn/polaris/2.7a80aabfd61412894efe95b5144d35fa8ee93170.png"
,
"prizeType"
:
14640490.0381452
,
"index"
:
"consequat ex ad est in"
,
"prizeId"
:
"dd"
,
"sendCount"
:
5
,
"degree"
:
"cupidatat"
,
"refType"
:
"commodo exercitation"
},
{
"id"
:
"dolore"
,
"name"
:
"dolor nisi in cupidatat aliqua"
,
"icon"
:
"https://yun.duiba.com.cn/polaris/3.480327307b5f8bb719ef0681e37f5ad1d9d18197.png"
,
"prizeType"
:
-4614921.317699313
,
"index"
:
"commodo adipisicing velit proident"
,
"prizeId"
:
"proident tempor dolore et aute"
,
"sendCount"
:
12
,
"degree"
:
"mollit Excepteur ex ullamco"
,
"refType"
:
"in"
},
{
"id"
:
"dolore"
,
"name"
:
"dolor nisi in cupidatat aliqua"
,
"icon"
:
"https://yun.duiba.com.cn/polaris/1.380dff33883285a6186d0a408d6c0c7400734a4b.png"
,
"prizeType"
:
-4614921.317699313
,
"index"
:
"commodo adipisicing velit proident"
,
"prizeId"
:
"proident tempor dolore et aute"
,
"sendCount"
:
3
,
"degree"
:
"mollit Excepteur ex ullamco"
,
"refType"
:
"in"
},
{
"id"
:
"dolore"
,
"name"
:
"dolor nisi in cupidatat aliqua"
,
"icon"
:
"https://yun.duiba.com.cn/spark/assets/f77861647e7b55e9c95e9c49d891a21526157a76.jpg"
,
"prizeType"
:
-4614921.317699313
,
"index"
:
"commodo adipisicing velit proident"
,
"prizeId"
:
"proident tempor dolore et aute"
,
"sendCount"
:
4
,
"degree"
:
"mollit Excepteur ex ullamco"
,
"refType"
:
"in"
},
{
"id"
:
"dolore"
,
"name"
:
"dolor nisi in cupidatat aliqua"
,
"icon"
:
"https://yun.duiba.com.cn/spark/assets/f77861647e7b55e9c95e9c49d891a21526157a76.jpg"
,
"prizeType"
:
-4614921.317699313
,
"index"
:
"commodo adipisicing velit proident"
,
"prizeId"
:
"proident tempor dolore et aute"
,
"sendCount"
:
6
,
"degree"
:
"mollit Excepteur ex ullamco"
,
"refType"
:
"in"
},
{
"id"
:
"proident sunt commodo consequat"
,
"name"
:
"nostrud mollit non consequat Duis"
,
"icon"
:
"https://yun.duiba.com.cn/polaris/1.380dff33883285a6186d0a408d6c0c7400734a4b.png"
,
"prizeType"
:
32279523.564944327
,
"index"
:
"dolore dolore laboris sunt"
,
"prizeId"
:
"adipisicing anim labore Duis nostrud"
,
"sendCount"
:
7
,
"degree"
:
"consectetur laborum in incididunt"
,
"refType"
:
"Lorem voluptate magna"
}
]
}
{
"index"
:
1
,
"indexes"
:
null
,
"options"
:
[
{
"degree"
:
null
,
"icon"
:
"//yun.duiba.com.cn/polaris/FastJSON 解析异常.6a6c99a2b0fed4b35bb30613d4cf19a63156940e.png"
,
"icon2"
:
"//yun.duiba.com.cn/polaris/FastJSON 解析异常.6a6c99a2b0fed4b35bb30613d4cf19a63156940e.png"
,
"id"
:
"o0de75da1"
,
"index"
:
1
,
"name"
:
"复活卡"
,
"prizeId"
:
"sp_revival_card"
,
"prizeType"
:
1
,
"refId"
:
null
,
"refType"
:
null
,
"sendCount"
:
1
}
],
"ruleId"
:
"ru_1"
},
{
"index"
:
2
,
"indexes"
:
null
,
"options"
:
[
{
"degree"
:
null
,
"icon"
:
"//yun.duiba.com.cn/polaris/FastJSON 解析异常 (1).2d631128e63c95cf429c2531068260f1058fb8b7.png"
,
"icon2"
:
"//yun.duiba.com.cn/polaris/FastJSON 解析异常 (1).2d631128e63c95cf429c2531068260f1058fb8b7.png"
,
"id"
:
"o5204cb4b"
,
"index"
:
1
,
"name"
:
"护盾卡"
,
"prizeId"
:
"sp_shield_card"
,
"prizeType"
:
1
,
"refId"
:
null
,
"refType"
:
null
,
"sendCount"
:
1
}
],
"ruleId"
:
"ru_2"
},
{
"index"
:
3
,
"indexes"
:
null
,
"options"
:
[
{
"degree"
:
null
,
"icon"
:
"//yun.duiba.com.cn/polaris/FastJSON 解析异常 (2).3f0fb2162944e601d209c6454fec47253fd1af97.png"
,
"icon2"
:
"//yun.duiba.com.cn/polaris/FastJSON 解析异常 (2).3f0fb2162944e601d209c6454fec47253fd1af97.png"
,
"id"
:
"o3c062fc0"
,
"index"
:
1
,
"name"
:
"移速卡"
,
"prizeId"
:
"sp_agility_card"
,
"prizeType"
:
1
,
"refId"
:
null
,
"refType"
:
null
,
"sendCount"
:
1
}
],
"ruleId"
:
"ru_3"
},
{
"index"
:
4
,
"indexes"
:
null
,
"options"
:
[
{
"degree"
:
null
,
"icon"
:
"//yun.duiba.com.cn/polaris/FastJSON 解析异常 (6).2ae3d8b23743cf1e63efa3a6b336cce647d6bd53.png"
,
"icon2"
:
"//yun.duiba.com.cn/polaris/FastJSON 解析异常 (6).2ae3d8b23743cf1e63efa3a6b336cce647d6bd53.png"
,
"id"
:
"o0b9639cc"
,
"index"
:
1
,
"name"
:
"加长卡"
,
"prizeId"
:
"sp_add_length"
,
"prizeType"
:
1
,
"refId"
:
null
,
"refType"
:
null
,
"sendCount"
:
1
}
],
"ruleId"
:
"ru_4"
},
{
"index"
:
5
,
"indexes"
:
null
,
"options"
:
[
{
"degree"
:
null
,
"icon"
:
"//yun.duiba.com.cn/polaris/FastJSON 解析异常.6a6c99a2b0fed4b35bb30613d4cf19a63156940e.png"
,
"icon2"
:
"//yun.duiba.com.cn/polaris/FastJSON 解析异常.6a6c99a2b0fed4b35bb30613d4cf19a63156940e.png"
,
"id"
:
"o0de75da1"
,
"index"
:
1
,
"name"
:
"复活111卡"
,
"prizeId"
:
"sp_revival_card"
,
"prizeType"
:
1
,
"refId"
:
null
,
"refType"
:
null
,
"sendCount"
:
1
}
],
"ruleId"
:
"ru_1"
},
{
"index"
:
6
,
"indexes"
:
null
,
"options"
:
[
{
"degree"
:
"10"
,
"icon"
:
"//yun.dui88.com/projectxh5/credit-250-250.png"
,
"icon2"
:
null
,
"id"
:
"o75685c5b"
,
"index"
:
1
,
"name"
:
"积分"
,
"prizeId"
:
"sss_1"
,
"prizeType"
:
2
,
"refId"
:
null
,
"refType"
:
"increase-credits"
,
"sendCount"
:
1
}
],
"ruleId"
:
"ru_5"
},
{
"index"
:
7
,
"indexes"
:
null
,
"options"
:
[
{
"degree"
:
"10"
,
"icon"
:
"//yun.dui88.com/projectxh5/credit-250-250.png"
,
"icon2"
:
null
,
"id"
:
"o75685c5b"
,
"index"
:
1
,
"name"
:
"积分"
,
"prizeId"
:
"sss_1"
,
"prizeType"
:
2
,
"refId"
:
null
,
"refType"
:
"increase-credits"
,
"sendCount"
:
1
}
],
"ruleId"
:
"ru_5"
}
],
"
code"
:
"dolore sunt consectetur dolore minim"
,
"
message"
:
"laborum ipsum occaecat in"
,
"
success"
:
true
"
message"
:
null
,
"
success"
:
true
,
"
timeStamp"
:
1733895555999
}
\ No newline at end of file
preview-template/mock/rank/personRank.do.json
View file @
cb64b75e
...
...
@@ -89,13 +89,13 @@
],
"awardConfigs"
:
[
{
"rankRange"
:
"
第1名
"
,
"rankRange"
:
"
1
"
,
"prizeName"
:
"nulla dolor ut non sit"
,
"prizeImage"
:
"https://yun.duiba.com.cn/polaris/1.380dff33883285a6186d0a408d6c0c7400734a4b.png"
,
"sendCount"
:
20060982.664708853
},
{
"rankRange"
:
"
第2-10名
"
,
"rankRange"
:
"
2-10
"
,
"prizeName"
:
"aliquip eu ut"
,
"prizeImage"
:
"https://yun.duiba.com.cn/polaris/2.7a80aabfd61412894efe95b5144d35fa8ee93170.png"
,
"sendCount"
:
16180576.760792673
...
...
settings/v2/packages/information.json
View file @
cb64b75e
...
...
@@ -7,7 +7,7 @@
"enable"
:
true
,
"customSplash"
:
{
"complete"
:
true
,
"form"
:
"https://creator-api.cocos.com/api/form/show?sid=
441e6f8e3e7ba0c9581ed7936daee45d
"
"form"
:
"https://creator-api.cocos.com/api/form/show?sid=
70540cf45afa7a2c72a42f171972359f
"
}
},
"removeSplash"
:
{
...
...
@@ -16,7 +16,7 @@
"enable"
:
true
,
"removeSplash"
:
{
"complete"
:
true
,
"form"
:
"https://creator-api.cocos.com/api/form/show?sid=
441e6f8e3e7ba0c9581ed7936daee45d
"
"form"
:
"https://creator-api.cocos.com/api/form/show?sid=
70540cf45afa7a2c72a42f171972359f
"
}
}
}
...
...
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