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
c260e295
Commit
c260e295
authored
Dec 12, 2024
by
陈子煜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
07453ccf
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
18 deletions
+25
-18
prizeBg.prefab
assets/Bundles/PropPage/png/prizeBg.prefab
+3
-3
ExchangeSuccess.ts
assets/Scripts/Panels/ExchangeSuccess.ts
+8
-2
MyBagPanel.ts
assets/Scripts/Panels/MyBagPanel.ts
+3
-2
ProPop.ts
assets/Scripts/Panels/ProPop.ts
+7
-7
queryStatus.do.json
preview-template/mock/credits/queryStatus.do.json
+1
-1
builder.json
profiles/v2/packages/builder.json
+3
-3
No files found.
assets/Bundles/PropPage/png/prizeBg.prefab
View file @
c260e295
...
@@ -152,7 +152,7 @@
...
@@ -152,7 +152,7 @@
},
},
"_lpos": {
"_lpos": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
"x": 1
6.455000000000013
,
"x": 1
9.681999999999988
,
"y": 0.3269999999999911,
"y": 0.3269999999999911,
"z": 0
"z": 0
},
},
...
@@ -193,7 +193,7 @@
...
@@ -193,7 +193,7 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 1
8.431991577148438
,
"width": 1
10.59194946289062
,
"height": 50.4
"height": 50.4
},
},
"_anchorPoint": {
"_anchorPoint": {
...
@@ -229,7 +229,7 @@
...
@@ -229,7 +229,7 @@
"b": 255,
"b": 255,
"a": 255
"a": 255
},
},
"_string": "
0
",
"_string": "
999999
",
"_horizontalAlign": 1,
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 32,
"_actualFontSize": 32,
...
...
assets/Scripts/Panels/ExchangeSuccess.ts
View file @
c260e295
import
Panel
from
"../../Module/Panel"
;
import
Panel
from
"../../Module/Panel"
;
import
{
_decorator
,
Button
,
RichText
,
UITransform
,
Node
,
Sprite
,
Texture2D
,
ImageAsset
,
SpriteFrame
,
Label
}
from
"cc"
;
import
{
_decorator
,
Button
,
RichText
,
UITransform
,
Node
,
Sprite
,
Texture2D
,
ImageAsset
,
SpriteFrame
,
Label
}
from
"cc"
;
import
{
observer
,
render
}
from
"../store/decorators"
;
import
{
observer
,
render
}
from
"../store/decorators"
;
import
{
sendWebNetWithToken
,
WebNetName
}
from
"db://assets/Scripts/Utils/WebNet/WebNet"
;
import
{
changeScene
,
showPanel
}
from
"db://assets/Module/UIFast"
;
import
{
MyBagPanel
}
from
"db://assets/Scripts/Panels/MyBagPanel"
;
const
{
ccclass
,
property
}
=
_decorator
;
const
{
ccclass
,
property
}
=
_decorator
;
...
@@ -30,11 +33,14 @@ export default class ExchangeSuccess extends Panel {
...
@@ -30,11 +33,14 @@ export default class ExchangeSuccess extends Panel {
}
}
clickLook
()
{
clickLook
()
{
console
.
log
(
12312312
);
showPanel
(
MyBagPanel
,
{
tab
:
"TOOL"
})
this
.
hidePanel
()
}
}
clickClose
=
()
=>
{
clickClose
=
async
()
=>
{
this
.
hidePanel
()
this
.
hidePanel
()
await
sendWebNetWithToken
(
WebNetName
.
propExchange
)
}
}
}
}
assets/Scripts/Panels/MyBagPanel.ts
View file @
c260e295
...
@@ -56,7 +56,7 @@ export class MyBagPanel extends Panel {
...
@@ -56,7 +56,7 @@ export class MyBagPanel extends Panel {
toolDate
:
any
[]
=
[];
toolDate
:
any
[]
=
[];
onLoad
()
{
onLoad
()
{
this
.
tab
=
TAB
.
PRIZE
;
this
.
tab
=
TAB
.
PRIZE
;
this
.
closeBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickClose
,
this
);
this
.
closeBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickClose
,
this
);
this
.
prize_btn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickSheng
,
this
);
this
.
prize_btn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickSheng
,
this
);
...
@@ -65,6 +65,7 @@ export class MyBagPanel extends Panel {
...
@@ -65,6 +65,7 @@ export class MyBagPanel extends Panel {
async
start
()
{
async
start
()
{
this
.
Prize_List
.
numberOfItems
=
()
=>
this
.
prizeDate
.
length
;
this
.
Prize_List
.
numberOfItems
=
()
=>
this
.
prizeDate
.
length
;
this
.
Prize_List
.
onCellDisplay
=
this
.
onShengCellDisplay
;
this
.
Prize_List
.
onCellDisplay
=
this
.
onShengCellDisplay
;
...
@@ -98,7 +99,7 @@ export class MyBagPanel extends Panel {
...
@@ -98,7 +99,7 @@ export class MyBagPanel extends Panel {
this
.
hidePanel
();
this
.
hidePanel
();
}
}
// 点击省榜
// 点击省榜
clickSheng
()
{
clickSheng
()
{
this
.
tab
=
TAB
.
PRIZE
;
this
.
tab
=
TAB
.
PRIZE
;
// this.Prize.getChildByName(`goCheck`).active = true;
// this.Prize.getChildByName(`goCheck`).active = true;
...
...
assets/Scripts/Panels/ProPop.ts
View file @
c260e295
import
Panel
from
"../../Module/Panel"
;
import
Panel
from
"../../Module/Panel"
;
import
{
_decorator
,
Button
,
Node
,
Sprite
,
Label
}
from
"cc"
;
import
{
_decorator
,
Button
,
Node
,
Sprite
,
Label
}
from
"cc"
;
import
{
observer
}
from
"../store/decorators"
;
import
{
observer
}
from
"../store/decorators"
;
import
{
showPanel
,
showToast
}
from
"db://assets/Module/UIFast"
;
import
{
showPanel
,
showToast
}
from
"db://assets/Module/UIFast"
;
import
ExchangeSuccess
from
"db://assets/Scripts/Panels/ExchangeSuccess"
;
import
ExchangeSuccess
from
"db://assets/Scripts/Panels/ExchangeSuccess"
;
import
{
creditsCost
,
sendWebNetWithToken
,
WebNetName
}
from
"db://assets/Scripts/Utils/WebNet/WebNet"
;
import
{
creditsCost
,
sendWebNetWithToken
,
WebNetName
}
from
"db://assets/Scripts/Utils/WebNet/WebNet"
;
import
{
_asyncThrottle
}
from
"../Utils/Utils"
;
import
{
_asyncThrottle
}
from
"../Utils/Utils"
;
const
{
ccclass
,
property
}
=
_decorator
;
const
{
ccclass
,
property
}
=
_decorator
;
...
@@ -47,7 +47,7 @@ export default class ProPop extends Panel {
...
@@ -47,7 +47,7 @@ export default class ProPop extends Panel {
}
}
clickExchange
=
_asyncThrottle
(
async
()
=>
{
clickExchange
=
_asyncThrottle
(
async
()
=>
{
const
{
consumeSp
,
item
,
conditionsItem
}
=
this
.
data
;
const
{
consumeSp
,
item
,
conditionsItem
}
=
this
.
data
;
const
{
const
{
success
:
costSuc
,
success
:
costSuc
,
...
@@ -60,7 +60,7 @@ export default class ProPop extends Panel {
...
@@ -60,7 +60,7 @@ export default class ProPop extends Panel {
}
}
//兑换接口
//兑换接口
const
{
success
,
data
}
=
await
sendWebNetWithToken
(
WebNetName
.
propExchange
,
{
const
{
success
,
data
}
=
await
sendWebNetWithToken
(
WebNetName
.
propExchange
,
{
ticketNum
:
ticket
,
ticketNum
:
ticket
,
ruId
:
item
.
ruleId
,
ruId
:
item
.
ruleId
,
gear
:
conditionsItem
.
gear
,
gear
:
conditionsItem
.
gear
,
...
@@ -72,8 +72,8 @@ export default class ProPop extends Panel {
...
@@ -72,8 +72,8 @@ export default class ProPop extends Panel {
// if (conditionsItem.credits >= consumeSp.quantity) {
// if (conditionsItem.credits >= consumeSp.quantity) {
showPanel
(
ExchangeSuccess
,
{
consumeSp
,
item
,
conditionsItem
})
showPanel
(
ExchangeSuccess
,
{
consumeSp
,
item
,
conditionsItem
})
this
.
hidePanel
();
// }
// }
})
})
}
}
preview-template/mock/credits/queryStatus.do.json
View file @
c260e295
{
{
"success"
:
true
,
"success"
:
true
,
"message"
:
"ok"
,
"message"
:
"ok"
,
"data"
:
2
"data"
:
1
}
}
\ No newline at end of file
profiles/v2/packages/builder.json
View file @
c260e295
...
@@ -45,8 +45,8 @@
...
@@ -45,8 +45,8 @@
"progress"
:
1
,
"progress"
:
1
,
"state"
:
"success"
,
"state"
:
"success"
,
"stage"
:
"build"
,
"stage"
:
"build"
,
"message"
:
"2024-12-12 1
4:33:29 build success in 1 min 14
s!"
,
"message"
:
"2024-12-12 1
2:38:18 build success in 1 min 23
s!"
,
"detailMessage"
:
"%c兑吧发布插件 >> 版本号:17339
85135346
\r
color: green
\r
"
,
"detailMessage"
:
"%c兑吧发布插件 >> 版本号:17339
78214944
\r
color: green
\r
"
,
"options"
:
{
"options"
:
{
"name"
:
"cocos-template-3d"
,
"name"
:
"cocos-template-3d"
,
"server"
:
""
,
"server"
:
""
,
...
@@ -109,7 +109,7 @@
...
@@ -109,7 +109,7 @@
"__version__"
:
"1.3.8"
,
"__version__"
:
"1.3.8"
,
"logDest"
:
"project://temp/builder/log/web-mobile2024-11-6 15-39.log"
"logDest"
:
"project://temp/builder/log/web-mobile2024-11-6 15-39.log"
},
},
"time"
:
"2024-12-12 1
4:32:15
"
,
"time"
:
"2024-12-12 1
2:36:54
"
,
"dirty"
:
false
"dirty"
:
false
}
}
}
}
...
...
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