Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
xiaoxiaole
Commits
d7048479
Commit
d7048479
authored
Dec 16, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3467d374
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
RechargePanel.ts
egret/src/panels/RechargePanel.ts
+2
-4
No files found.
egret/src/panels/RechargePanel.ts
View file @
d7048479
...
...
@@ -101,7 +101,7 @@ export default class RechargePanel extends Panel {
}
private
setNumBtn
()
{
/// TODO
低效方式来处理按钮状态,
每次按数字按钮都会执行以下逻辑,待优化
/// TODO 每次按数字按钮都会执行以下逻辑,待优化
btnNum
.
forEach
((
v
)
=>
{
this
[
`btn_
${
v
}
`
].
source
=
`recharge_
${
v
}
_ds_png`
;
this
[
`btn_
${
v
}
`
].
touchEnabled
=
true
;
...
...
@@ -114,7 +114,7 @@ export default class RechargePanel extends Panel {
}
private
setNum
()
{
/// TODO
低效方式,
每次改变this.nowNumber值都会执行以下逻辑,待优化
/// TODO 每次改变this.nowNumber值都会执行以下逻辑,待优化
this
.
addBtn
.
touchEnabled
=
true
;
this
.
addBtn
.
source
=
'recharge_add_en_png'
;
this
.
subBtn
.
touchEnabled
=
true
;
...
...
@@ -134,7 +134,6 @@ export default class RechargePanel extends Panel {
}
private
onTouchBtn
(
e
:
egret
.
TouchEvent
)
{
/// TODO 发接口兑换
NetManager
.
ins
.
clickLog
(
getlogItem
(
73
));
if
(
this
.
nowNumber
*
10
>
this
.
totalNum
)
{
showToast
(
'抱歉,您的云钻不足哦'
);
...
...
@@ -167,7 +166,6 @@ export default class RechargePanel extends Panel {
}
private
getYunZuan
()
{
/// TODO 通过接口获取云钻数量并显示
this
.
zuanLabel
.
text
=
'我的云钻:0'
;
NetManager
.
ins
.
getCloudNum
((
success
,
res
)
=>
{
if
(
!
success
)
{
...
...
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