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
1a096253
Commit
1a096253
authored
Aug 23, 2019
by
wjf
Browse files
Options
Browse Files
Download
Plain Diff
l
parents
e662614e
4d0d43fc
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
11 deletions
+34
-11
Alert.ts
egret/libs/new_wx/components/Alert.ts
+1
-1
NoPrizePanel.ts
egret/libs/new_wx/components/NoPrizePanel.ts
+12
-1
PrizePanel.ts
egret/libs/new_wx/components/PrizePanel.ts
+6
-4
onNotSuccess.ts
egret/libs/new_wx/onNotSuccess.ts
+1
-1
MainScene.ts
egret/src/mainScene/MainScene.ts
+2
-1
FailedPanel.ts
egret/src/panels/FailedPanel.ts
+11
-2
StartScene.ts
egret/src/startScene/StartScene.ts
+1
-1
No files found.
egret/libs/new_wx/components/Alert.ts
View file @
1a096253
import
Panel
from
"./Panel"
;
import
Panel
from
"./Panel"
;
import
SceneCtrl
from
"../ctrls/sceneCtrl"
;
import
SceneCtrl
from
"../ctrls/sceneCtrl"
;
import
{
ModuleTypes
}
from
"../types/sceneTypes"
;
import
{
ModuleTypes
}
from
"../types/sceneTypes"
;
import
StartScene
from
"../../../src/startScene/StartScene"
;
import
StartScene
,
{
createData
}
from
"../../../src/startScene/StartScene"
;
export
default
class
Alert
extends
Panel
{
export
default
class
Alert
extends
Panel
{
start
(
data
)
{
start
(
data
)
{
super
.
start
(
data
);
super
.
start
(
data
);
...
...
egret/libs/new_wx/components/NoPrizePanel.ts
View file @
1a096253
...
@@ -2,21 +2,32 @@ import { getlogItem } from "../../../src/Main";
...
@@ -2,21 +2,32 @@ import { getlogItem } from "../../../src/Main";
import
setGray
from
"../../../src/setGray"
;
import
setGray
from
"../../../src/setGray"
;
import
{
NetManager
}
from
"../../tw/manager/NetManager"
;
import
{
NetManager
}
from
"../../tw/manager/NetManager"
;
import
Panel
from
"./Panel"
;
import
Panel
from
"./Panel"
;
import
SceneCtrl
from
"../ctrls/sceneCtrl"
;
import
{
ModuleTypes
}
from
"../types/sceneTypes"
;
import
{
createData
}
from
"../../../src/startScene/StartScene"
;
export
default
class
NoPrizePanel
extends
Panel
{
export
default
class
NoPrizePanel
extends
Panel
{
start
(
data
)
{
start
(
data
)
{
super
.
start
();
super
.
start
();
// this.data.score = `本局分数 ${DataManager.ins.getData('ngameSubmit').data.score}`;
// this.data.score = `本局分数 ${DataManager.ins.getData('ngameSubmit').data.score}`;
this
.
setStar
(
0
);
this
.
setStar
(
0
);
this
[
'shareBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
[
'shareBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
16
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
16
));
},
this
);
},
this
);
this
.
showlog
();
this
.
showlog
();
NetManager
.
ins
.
hc_home
(()
=>
{
},
window
[
'collectRuleId'
]);
}
}
showlog
()
{
showlog
()
{
NetManager
.
ins
.
showLog
(
getlogItem
(
16
));
NetManager
.
ins
.
showLog
(
getlogItem
(
16
));
}
}
onTouchTap_closeBtn
()
{
super
.
onTouchTap_closeBtn
();
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
MAP_SCENE
,
createData
());
}
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
],
this
[
'goBtn'
]]
}
setStar
(
nums
:
number
)
{
setStar
(
nums
:
number
)
{
if
(
nums
==
0
)
{
if
(
nums
==
0
)
{
setGray
(
this
[
'pic1'
]);
setGray
(
this
[
'pic1'
]);
...
...
egret/libs/new_wx/components/PrizePanel.ts
View file @
1a096253
...
@@ -2,6 +2,9 @@ import setGray from "../../../src/setGray";
...
@@ -2,6 +2,9 @@ import setGray from "../../../src/setGray";
import
Panel
from
"./Panel"
;
import
Panel
from
"./Panel"
;
import
{
NetManager
}
from
"../../tw/manager/NetManager"
;
import
{
NetManager
}
from
"../../tw/manager/NetManager"
;
import
{
getlogItem
}
from
"../../../src/Main"
;
import
{
getlogItem
}
from
"../../../src/Main"
;
import
{
createData
}
from
"../../../src/startScene/StartScene"
;
import
SceneCtrl
from
"../ctrls/sceneCtrl"
;
import
{
ModuleTypes
}
from
"../types/sceneTypes"
;
export
default
class
PrizePanel
extends
Panel
{
export
default
class
PrizePanel
extends
Panel
{
start
(
data
)
{
start
(
data
)
{
super
.
start
();
super
.
start
();
...
@@ -20,6 +23,7 @@ export default class PrizePanel extends Panel {
...
@@ -20,6 +23,7 @@ export default class PrizePanel extends Panel {
},
this
);
},
this
);
this
.
showlog
();
this
.
showlog
();
NetManager
.
ins
.
hc_home
(()
=>
{},
window
[
'collectRuleId'
]);
}
}
showlog
()
{
showlog
()
{
NetManager
.
ins
.
showLog
(
getlogItem
(
15
));
NetManager
.
ins
.
showLog
(
getlogItem
(
15
));
...
@@ -43,7 +47,7 @@ export default class PrizePanel extends Panel {
...
@@ -43,7 +47,7 @@ export default class PrizePanel extends Panel {
onTouchTap_closeBtn
():
any
{
onTouchTap_closeBtn
():
any
{
super
.
onTouchTap_closeBtn
();
super
.
onTouchTap_closeBtn
();
// SceneCtrl.instance.change(ModuleTypes.START_SCENE
);
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
MAP_SCENE
,
createData
()
);
}
}
get
picBigWidth
()
{
return
510
};
get
picBigWidth
()
{
return
510
};
...
@@ -53,7 +57,5 @@ export default class PrizePanel extends Panel {
...
@@ -53,7 +57,5 @@ export default class PrizePanel extends Panel {
useBtn
:
eui
.
Button
;
useBtn
:
eui
.
Button
;
get
skinKey
()
{
return
'Prize'
}
get
skinKey
()
{
return
'Prize'
}
protected
get
closeBtns
():
eui
.
Button
[]
{
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
],
this
[
'goBtn'
]]
}
return
[
this
[
'closeBtn'
]]
}
}
}
\ No newline at end of file
egret/libs/new_wx/onNotSuccess.ts
View file @
1a096253
...
@@ -10,7 +10,7 @@ export default (data?: Data, netname?: NetName) => {
...
@@ -10,7 +10,7 @@ export default (data?: Data, netname?: NetName) => {
showToast
(
'网络异常
\
n请隔一段时间再尝试'
);
showToast
(
'网络异常
\
n请隔一段时间再尝试'
);
else
if
(
data
.
code
==
'2002007013'
)
else
if
(
data
.
code
==
'2002007013'
)
showToast
(
'元宝不足哦,快去玩游戏赢元宝吧'
);
showToast
(
'元宝不足哦,快去玩游戏赢元宝吧'
);
else
if
(
data
.
code
==
'E1002070002'
)
{
else
if
(
data
.
code
==
'E1002070002'
||
data
.
code
==
'E1002070001'
)
{
showToast
(
'游戏分数提交失败~
\
n如有疑问,请联系客服'
)
showToast
(
'游戏分数提交失败~
\
n如有疑问,请联系客服'
)
}
}
else
if
(
data
.
code
==
'600005'
)
else
if
(
data
.
code
==
'600005'
)
...
...
egret/src/mainScene/MainScene.ts
View file @
1a096253
...
@@ -44,6 +44,7 @@ import PropType from '../PropType';
...
@@ -44,6 +44,7 @@ import PropType from '../PropType';
import
{
PropNumShow
}
from
'../something/uis/PropNumShow'
;
import
{
PropNumShow
}
from
'../something/uis/PropNumShow'
;
import
SceneCtrl
from
'../../libs/new_wx/ctrls/sceneCtrl'
;
import
SceneCtrl
from
'../../libs/new_wx/ctrls/sceneCtrl'
;
import
{
PropGuide
}
from
'../something/uis/PropGuide'
;
import
{
PropGuide
}
from
'../something/uis/PropGuide'
;
import
{
createData
}
from
'../startScene/StartScene'
;
import
{
Loading2
}
from
'../something/uis/Loading2'
;
import
{
Loading2
}
from
'../something/uis/Loading2'
;
const
aniClass
=
{
const
aniClass
=
{
...
@@ -2124,7 +2125,7 @@ export default class MainScene extends Scene {
...
@@ -2124,7 +2125,7 @@ export default class MainScene extends Scene {
var
txt
=
codeMsgs
[
data
.
code
]
||
"活动太火爆了
\n
请稍后再来"
;
var
txt
=
codeMsgs
[
data
.
code
]
||
"活动太火爆了
\n
请稍后再来"
;
showToast
(
txt
);
showToast
(
txt
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
MAP_SCENE
);
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
MAP_SCENE
,
createData
()
);
},
1300
)
},
1300
)
}
}
}
}
...
...
egret/src/panels/FailedPanel.ts
View file @
1a096253
import
Panel
from
"../../libs/new_wx/components/Panel"
;
import
Panel
from
"../../libs/new_wx/components/Panel"
;
import
SceneCtrl
from
"../../libs/new_wx/ctrls/sceneCtrl"
;
import
{
ModuleTypes
}
from
"../../libs/new_wx/types/sceneTypes"
;
import
{
createData
}
from
"../startScene/StartScene"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
export
default
class
FailedPanel
extends
Panel
{
export
default
class
FailedPanel
extends
Panel
{
start
(
data
)
{
start
(
data
)
{
super
.
start
();
super
.
start
();
NetManager
.
ins
.
hc_home
(()
=>
{},
window
[
'collectRuleId'
]);
}
onTouchTap_closeBtn
()
{
super
.
onTouchTap_closeBtn
();
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
MAP_SCENE
,
createData
());
}
}
get
skinKey
()
{
return
'Fail'
}
get
skinKey
()
{
return
'Fail'
}
...
...
egret/src/startScene/StartScene.ts
View file @
1a096253
...
@@ -78,7 +78,7 @@ export default class StartScene extends Scene {
...
@@ -78,7 +78,7 @@ export default class StartScene extends Scene {
setTimeout
(()
=>
{
setTimeout
(()
=>
{
egret
.
Tween
.
removeTweens
(
this
[
'progressmask2'
]);
egret
.
Tween
.
removeTweens
(
this
[
'progressmask2'
]);
egret
.
Tween
.
get
(
this
[
'progressmask2'
]).
to
({
scaleX
:
1
},
200
).
wait
(
200
).
call
(()
=>
{
egret
.
Tween
.
get
(
this
[
'progressmask2'
]).
to
({
scaleX
:
1
},
200
).
wait
(
200
).
call
(()
=>
{
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
MAP_SCENE
,
d
)
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
MAP_SCENE
,
d
)
;
});
});
this
[
'percentTxt'
].
text
=
`100%`
this
[
'percentTxt'
].
text
=
`100%`
clearInterval
(
this
.
_timer
);
clearInterval
(
this
.
_timer
);
...
...
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