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
75354f8a
Commit
75354f8a
authored
Jun 21, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理一下代码
parent
f8277b40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ToolBuyConfirmPanel.ts
assets/Scripts/Panels/ToolBuyConfirmPanel.ts
+3
-2
No files found.
assets/Scripts/Panels/ToolBuyConfirmPanel.ts
View file @
75354f8a
...
@@ -3,6 +3,7 @@ import { _decorator, Button, Label, Node } from "cc";
...
@@ -3,6 +3,7 @@ import { _decorator, Button, Label, Node } from "cc";
import
{
sendWebNetWithToken
,
WebNetName
}
from
"../Utils/WebNet/WebNet"
;
import
{
sendWebNetWithToken
,
WebNetName
}
from
"../Utils/WebNet/WebNet"
;
import
{
showToast
}
from
"../../Module/UIFast"
;
import
{
showToast
}
from
"../../Module/UIFast"
;
import
store
from
"../../store/store"
;
import
store
from
"../../store/store"
;
import
{
_asyncThrottle
}
from
"../Utils/Utils"
;
const
{
ccclass
,
property
}
=
_decorator
;
const
{
ccclass
,
property
}
=
_decorator
;
...
@@ -37,12 +38,12 @@ export default class ToolBuyConfirmPanel extends Panel {
...
@@ -37,12 +38,12 @@ export default class ToolBuyConfirmPanel extends Panel {
}
}
/** 确认购买 */
/** 确认购买 */
async
buyHandle
()
{
buyHandle
=
_asyncThrottle
(
async
()
=>
{
const
res
=
await
sendWebNetWithToken
(
WebNetName
.
buyRichSp
);
const
res
=
await
sendWebNetWithToken
(
WebNetName
.
buyRichSp
);
if
(
!
res
?.
success
)
return
;
if
(
!
res
?.
success
)
return
;
showToast
(
"购买成功~快去使用吧"
);
showToast
(
"购买成功~快去使用吧"
);
this
.
hidePanel
();
this
.
hidePanel
();
}
}
)
}
}
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