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
30683fac
Commit
30683fac
authored
Jul 29, 2024
by
俞嘉婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 天降财神道具购买 去掉二次确认弹窗
parent
0caf6301
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
ToolBuyPanel.ts
assets/Scripts/Panels/ToolBuyPanel.ts
+17
-5
No files found.
assets/Scripts/Panels/ToolBuyPanel.ts
View file @
30683fac
import
Panel
from
"../../Module/Panel"
;
import
{
_decorator
,
Button
,
Label
,
Node
,
RichText
}
from
"cc"
;
import
{
showPanel
}
from
"../../Module/UIFast"
;
import
{
showPanel
,
showToast
}
from
"../../Module/UIFast"
;
import
ToolBuyConfirmPanel
from
"./ToolBuyConfirmPanel"
;
import
store
from
"../../store/store"
;
import
{
_asyncThrottle
}
from
"../Utils/Utils"
;
import
{
sendWebNetWithToken
,
WebNetName
}
from
"../Utils/WebNet/WebNet"
;
const
{
ccclass
,
property
}
=
_decorator
;
...
...
@@ -34,9 +36,19 @@ export default class ToolBuyPanel extends Panel {
}
/** 立即购买 */
async
buyHandle
()
{
this
.
hidePanel
()
showPanel
(
ToolBuyConfirmPanel
);
}
// async buyHandle() {
// this.hidePanel()
// showPanel(ToolBuyConfirmPanel);
// }
// 20240729 去掉二次确认弹窗
/** 确认购买 */
buyHandle
=
_asyncThrottle
(
async
()
=>
{
const
res
=
await
sendWebNetWithToken
(
WebNetName
.
buyRichSp
);
if
(
!
res
?.
success
)
return
;
showToast
(
"购买成功~快去使用吧"
);
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