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
d7801716
Commit
d7801716
authored
Oct 26, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Plain Diff
1
parents
a91eff16
b0c046a0
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
7 deletions
+5
-7
index.html
egret/index.html
+1
-1
Buy2Panel.ts
egret/src/panels/Buy2Panel.ts
+1
-1
Buy3Panel.ts
egret/src/panels/Buy3Panel.ts
+1
-1
ExchangePanel.ts
egret/src/panels/ExchangePanel.ts
+1
-1
Turntable.ts
egret/src/panels/TurntablePanel/Turntable.ts
+0
-2
exchange.json
mock/happyclear/exchange.json
+1
-1
No files found.
egret/index.html
View file @
d7801716
...
...
@@ -31,7 +31,7 @@
<body>
<div
style=
"margin: auto;width: 100%;height: 100%;"
class=
"egret-player"
data-entry-class=
"Main"
data-orientation=
"auto"
data-scale-mode=
"showAll"
data-frame-rate=
"60"
data-content-width=
"750"
data-content-height=
"1624"
data-multi-fingered=
"2"
data-show-fps=
"
tru
e"
data-show-log=
"false"
data-content-height=
"1624"
data-multi-fingered=
"2"
data-show-fps=
"
fals
e"
data-show-log=
"false"
data-show-fps-style=
"x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9"
>
</div>
...
...
egret/src/panels/Buy2Panel.ts
View file @
d7801716
...
...
@@ -32,8 +32,8 @@ export default class Buy2Panel extends Panel {
this
.
buyBtn
.
enabled
=
false
;
NetManager
.
ins
.
hc_exchange
((
success
)
=>
{
this
.
buyBtn
.
enabled
=
true
;
showToast2
();
if
(
success
)
{
showToast2
();
this
.
hidePanel
();
NetManager
.
ins
.
hc_home
(()
=>
{
SceneCtrl
.
instance
.
updateScene
();
...
...
egret/src/panels/Buy3Panel.ts
View file @
d7801716
...
...
@@ -32,9 +32,9 @@ export default class Buy3Panel extends Panel {
NetManager
.
ins
.
clickLog
(
getlogItem
(
14
));
this
.
buyBtn
.
enabled
=
false
;
NetManager
.
ins
.
hc_exchange
((
success
)
=>
{
showToast2
();
this
.
buyBtn
.
enabled
=
true
;
if
(
success
)
{
showToast2
();
this
.
hidePanel
();
NetManager
.
ins
.
hc_home
(()
=>
{
SceneCtrl
.
instance
.
updateScene
();
...
...
egret/src/panels/ExchangePanel.ts
View file @
d7801716
...
...
@@ -32,9 +32,9 @@ export default class ExchangePanel extends Panel {
this
.
buyBtn
.
enabled
=
false
;
NetManager
.
ins
.
hc_exchange
((
success
)
=>
{
showToast2
();
this
.
buyBtn
.
enabled
=
true
;
if
(
success
)
{
showToast2
();
this
.
hidePanel
();
NetManager
.
ins
.
hc_home
(()
=>
{
SceneCtrl
.
instance
.
updateScene
();
...
...
egret/src/panels/TurntablePanel/Turntable.ts
View file @
d7801716
...
...
@@ -143,7 +143,6 @@ export default class Turntable extends Panel {
loadSvga
(
getResPath
()
+
'resource/assets/svgas/turnprize.svga'
).
then
(
async
(
mv
:
any
)
=>
{
let
_data
=
Utils
.
deepClone
(
data
);
_data
.
mv
=
mv
;
console
.
log
(
_data
);
PanelCtrl
.
instance
.
show
(
'TurnPrize2Panel'
,
_data
);
});
}
else
if
(
!
data
.
option
)
{
...
...
@@ -152,7 +151,6 @@ export default class Turntable extends Panel {
loadSvga
(
getResPath
()
+
'resource/assets/svgas/turnprize.svga'
).
then
(
async
(
mv
:
any
)
=>
{
let
_data
=
Utils
.
deepClone
(
data
);
_data
.
mv
=
mv
;
console
.
log
(
_data
);
PanelCtrl
.
instance
.
show
(
'TurnPrizePanel'
,
_data
);
});
}
...
...
mock/happyclear/exchange.json
View file @
d7801716
{
"success"
:
1
"success"
:
0
}
\ No newline at end of file
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