Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yyh
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
yyh
Commits
83776c66
Commit
83776c66
authored
Dec 11, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab2.dui88.com/wanghongyuan/yyh
into dev
parents
911b16ee
863ba395
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
89 additions
and
15 deletions
+89
-15
Main.ts
egret/src/Main.ts
+12
-2
RankPanel.ts
egret/src/rankPanel/RankPanel.ts
+6
-1
StartScene.ts
egret/src/startScene/StartScene.ts
+35
-6
PKScene.ts
egret/src/yazuwei/PKScene.ts
+12
-2
PKScorePanel.ts
egret/src/yazuwei/PKScorePanel.ts
+6
-1
PlacePanel.ts
egret/src/yazuwei/PlacePanel.ts
+6
-1
RecordMapScene.ts
egret/src/yazuwei/RecordMapScene.ts
+6
-1
RecordScene.ts
egret/src/yazuwei/RecordScene.ts
+6
-1
No files found.
egret/src/Main.ts
View file @
83776c66
...
@@ -175,7 +175,12 @@ class Main extends MainBase {
...
@@ -175,7 +175,12 @@ class Main extends MainBase {
// if (GameConst.getQueryString("InviteSource")) {
// if (GameConst.getQueryString("InviteSource")) {
yzwNet
.
homeBaseInfo
((
s
)
=>
{
yzwNet
.
homeBaseInfo
((
s
)
=>
{
if
(
!
s
)
{
if
(
!
s
)
{
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"homeBaseInfo"
).
message
)
if
((
DataManager
.
ins
.
getData
(
"homeBaseInfo"
).
message
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"homeBaseInfo"
).
message
)
}
else
{
ToastCtrl
.
instance
.
show
(
"网络异常请重试~"
);
}
// ToastCtrl.instance.show("网络异常请重试~");
// ToastCtrl.instance.show("网络异常请重试~");
return
;
return
;
}
}
...
@@ -228,7 +233,12 @@ class Main extends MainBase {
...
@@ -228,7 +233,12 @@ class Main extends MainBase {
// } else {
// } else {
yzwNet
.
homeBaseInfo
((
s
)
=>
{
yzwNet
.
homeBaseInfo
((
s
)
=>
{
if
(
!
s
)
{
if
(
!
s
)
{
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"homeBaseInfo"
).
message
)
if
(
DataManager
.
ins
.
getData
(
"homeBaseInfo"
)
&&
DataManager
.
ins
.
getData
(
"homeBaseInfo"
).
message
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"homeBaseInfo"
).
message
)
}
else
{
ToastCtrl
.
instance
.
show
(
"网络异常请重试~"
);
}
// ToastCtrl.instance.show("网络异常请重试~");
// ToastCtrl.instance.show("网络异常请重试~");
return
;
return
;
}
}
...
...
egret/src/rankPanel/RankPanel.ts
View file @
83776c66
...
@@ -74,7 +74,12 @@ export default class RankPanel extends Panel{
...
@@ -74,7 +74,12 @@ export default class RankPanel extends Panel{
Waiting
.
instance
.
show
();
Waiting
.
instance
.
show
();
yzwNet
.
homeBaseInfo
((
s
)
=>
{
yzwNet
.
homeBaseInfo
((
s
)
=>
{
if
(
!
s
){
if
(
!
s
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"homeBaseInfo"
).
message
)
if
(
DataManager
.
ins
.
getData
(
"homeBaseInfo"
)
&&
DataManager
.
ins
.
getData
(
"homeBaseInfo"
).
message
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"homeBaseInfo"
).
message
)
}
else
{
ToastCtrl
.
instance
.
show
(
"网络异常请重试~"
);
}
// ToastCtrl.instance.show("网络异常请重试~");
// ToastCtrl.instance.show("网络异常请重试~");
return
;
return
;
}
}
...
...
egret/src/startScene/StartScene.ts
View file @
83776c66
...
@@ -260,7 +260,12 @@ export default class StartScene extends Scene {
...
@@ -260,7 +260,12 @@ export default class StartScene extends Scene {
NetManager
.
ins
.
clickLog
(
this
.
chuandiExposure
);
NetManager
.
ins
.
clickLog
(
this
.
chuandiExposure
);
yzwNet
.
doStart
((
s
)
=>
{
yzwNet
.
doStart
((
s
)
=>
{
if
(
!
s
){
if
(
!
s
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"doStart"
).
message
)
if
(
DataManager
.
ins
.
getData
(
"doStart"
)
&&
DataManager
.
ins
.
getData
(
"doStart"
).
message
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"doStart"
).
message
)
}
else
{
ToastCtrl
.
instance
.
show
(
"网络异常请重试~"
);
}
// ToastCtrl.instance.show("网络异常请重试~");
// ToastCtrl.instance.show("网络异常请重试~");
return
;
return
;
}
}
...
@@ -268,7 +273,12 @@ export default class StartScene extends Scene {
...
@@ -268,7 +273,12 @@ export default class StartScene extends Scene {
yzwNet
.
unlockArea
((
ss
)
=>
{
yzwNet
.
unlockArea
((
ss
)
=>
{
Waiting
.
instance
.
hide
();
Waiting
.
instance
.
hide
();
if
(
!
ss
){
if
(
!
ss
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"unlockArea"
).
message
)
if
(
DataManager
.
ins
.
getData
(
"unlockArea"
).
message
&&
DataManager
.
ins
.
getData
(
"unlockArea"
).
message
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"unlockArea"
).
message
)
}
else
{
ToastCtrl
.
instance
.
show
(
"网络异常请重试~"
);
}
// ToastCtrl.instance.show("网络异常请重试~");
// ToastCtrl.instance.show("网络异常请重试~");
return
return
}
}
...
@@ -291,7 +301,12 @@ export default class StartScene extends Scene {
...
@@ -291,7 +301,12 @@ export default class StartScene extends Scene {
yzwNet
.
rankInfo
((
s
)
=>
{
yzwNet
.
rankInfo
((
s
)
=>
{
Waiting
.
instance
.
hide
();
Waiting
.
instance
.
hide
();
if
(
!
s
){
if
(
!
s
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"rankInfo"
).
message
)
if
(
DataManager
.
ins
.
getData
(
"rankInfo"
)
&&
DataManager
.
ins
.
getData
(
"rankInfo"
).
message
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"rankInfo"
).
message
)
}
else
{
ToastCtrl
.
instance
.
show
(
"网络异常请重试~"
);
}
// ToastCtrl.instance.show("网络异常请重试~");
// ToastCtrl.instance.show("网络异常请重试~");
return
;
return
;
}
}
...
@@ -311,14 +326,23 @@ export default class StartScene extends Scene {
...
@@ -311,14 +326,23 @@ export default class StartScene extends Scene {
NetManager
.
ins
.
clickLog
(
this
.
chuandiExposure
);
NetManager
.
ins
.
clickLog
(
this
.
chuandiExposure
);
yzwNet
.
doStart
((
s
)
=>
{
yzwNet
.
doStart
((
s
)
=>
{
if
(
!
s
){
if
(
!
s
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"doStart"
).
message
)
if
(
DataManager
.
ins
.
getData
(
"doStart"
)
&&
DataManager
.
ins
.
getData
(
"doStart"
).
message
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"doStart"
).
message
)
}
else
{
ToastCtrl
.
instance
.
show
(
"网络异常请重试~"
);
}
// ToastCtrl.instance.show("网络异常请重试~");
// ToastCtrl.instance.show("网络异常请重试~");
return
;
return
;
}
}
yzwNet
.
unlockArea
((
ss
)
=>
{
yzwNet
.
unlockArea
((
ss
)
=>
{
Waiting
.
instance
.
hide
();
Waiting
.
instance
.
hide
();
if
(
!
ss
){
if
(
!
ss
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"unlockArea"
).
message
)
if
(
DataManager
.
ins
.
getData
(
"unlockArea"
)
&&
DataManager
.
ins
.
getData
(
"unlockArea"
).
message
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"unlockArea"
).
message
)
}
else
{
ToastCtrl
.
instance
.
show
(
"网络异常请重试~"
);
}
// ToastCtrl.instance.show("网络异常请重试~");
// ToastCtrl.instance.show("网络异常请重试~");
return
return
}
}
...
@@ -339,7 +363,12 @@ export default class StartScene extends Scene {
...
@@ -339,7 +363,12 @@ export default class StartScene extends Scene {
yzwNet
.
unlockArea
((
s
)
=>
{
yzwNet
.
unlockArea
((
s
)
=>
{
Waiting
.
instance
.
hide
();
Waiting
.
instance
.
hide
();
if
(
!
s
){
if
(
!
s
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"unlockArea"
).
message
)
if
(
DataManager
.
ins
.
getData
(
"unlockArea"
)
&&
DataManager
.
ins
.
getData
(
"unlockArea"
).
message
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"unlockArea"
).
message
)
}
else
{
ToastCtrl
.
instance
.
show
(
"网络异常请重试~"
);
}
// ToastCtrl.instance.show("网络异常请重试~");
// ToastCtrl.instance.show("网络异常请重试~");
return
return
}
}
...
...
egret/src/yazuwei/PKScene.ts
View file @
83776c66
...
@@ -210,7 +210,12 @@ export default class PKScene extends Scene{
...
@@ -210,7 +210,12 @@ export default class PKScene extends Scene{
yzwNet
.
genInvite
((
s
)
=>
{
yzwNet
.
genInvite
((
s
)
=>
{
Waiting
.
instance
.
hide
();
Waiting
.
instance
.
hide
();
if
(
!
s
){
if
(
!
s
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"genInvite"
).
message
)
if
(
DataManager
.
ins
.
getData
(
"genInvite"
)
&&
DataManager
.
ins
.
getData
(
"genInvite"
).
message
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"genInvite"
).
message
)
}
else
{
ToastCtrl
.
instance
.
show
(
"网络异常请重试~"
)
}
// ToastCtrl.instance.show("网络异常请重试~")
// ToastCtrl.instance.show("网络异常请重试~")
return
return
}
}
...
@@ -224,7 +229,12 @@ export default class PKScene extends Scene{
...
@@ -224,7 +229,12 @@ export default class PKScene extends Scene{
yzwNet
.
genInvite
((
s
)
=>
{
yzwNet
.
genInvite
((
s
)
=>
{
Waiting
.
instance
.
hide
();
Waiting
.
instance
.
hide
();
if
(
!
s
){
if
(
!
s
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"genInvite"
).
message
)
if
(
DataManager
.
ins
.
getData
(
"genInvite"
)
&&
DataManager
.
ins
.
getData
(
"genInvite"
).
message
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"genInvite"
).
message
)
}
else
{
ToastCtrl
.
instance
.
show
(
"网络异常请重试~"
)
}
// ToastCtrl.instance.show("网络异常请重试~")
// ToastCtrl.instance.show("网络异常请重试~")
return
return
}
}
...
...
egret/src/yazuwei/PKScorePanel.ts
View file @
83776c66
...
@@ -114,7 +114,12 @@ export default class PKScorePanel extends Panel{
...
@@ -114,7 +114,12 @@ export default class PKScorePanel extends Panel{
yzwNet
.
getPkBaseInfo
((
s
)
=>
{
yzwNet
.
getPkBaseInfo
((
s
)
=>
{
Waiting
.
instance
.
hide
();
Waiting
.
instance
.
hide
();
if
(
!
s
){
if
(
!
s
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"getPkBaseInfo"
).
message
)
if
(
DataManager
.
ins
.
getData
(
"getPkBaseInfo"
)
&&
DataManager
.
ins
.
getData
(
"getPkBaseInfo"
).
message
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"getPkBaseInfo"
).
message
)
}
else
{
ToastCtrl
.
instance
.
show
(
"网络异常请重试~"
);
}
// ToastCtrl.instance.show("网络异常请重试~");
// ToastCtrl.instance.show("网络异常请重试~");
return
return
}
}
...
...
egret/src/yazuwei/PlacePanel.ts
View file @
83776c66
...
@@ -48,7 +48,12 @@ export default class PlacePanel extends Panel{
...
@@ -48,7 +48,12 @@ export default class PlacePanel extends Panel{
yzwNet
.
homeBaseInfo
((
s
)
=>
{
yzwNet
.
homeBaseInfo
((
s
)
=>
{
Waiting
.
instance
.
hide
();
Waiting
.
instance
.
hide
();
if
(
!
s
){
if
(
!
s
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"homeBaseInfo"
).
message
)
if
(
DataManager
.
ins
.
getData
(
"homeBaseInfo"
)
&&
DataManager
.
ins
.
getData
(
"homeBaseInfo"
).
message
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"homeBaseInfo"
).
message
)
}
else
{
ToastCtrl
.
instance
.
show
(
"网络异常请重试~"
);
}
// ToastCtrl.instance.show("网络异常请重试~");
// ToastCtrl.instance.show("网络异常请重试~");
return
;
return
;
}
}
...
...
egret/src/yazuwei/RecordMapScene.ts
View file @
83776c66
...
@@ -62,7 +62,12 @@ export default class RecordMapScene extends Scene{
...
@@ -62,7 +62,12 @@ export default class RecordMapScene extends Scene{
yzwNet
.
shareFootprint
((
s
)
=>
{
yzwNet
.
shareFootprint
((
s
)
=>
{
Waiting
.
instance
.
hide
();
Waiting
.
instance
.
hide
();
if
(
!
s
){
if
(
!
s
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"shareFootprint"
).
message
)
if
(
DataManager
.
ins
.
getData
(
"shareFootprint"
)
&&
DataManager
.
ins
.
getData
(
"shareFootprint"
).
message
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"shareFootprint"
).
message
)
}
else
{
ToastCtrl
.
instance
.
show
(
"网络异常请重试~"
)
}
// ToastCtrl.instance.show("网络异常请重新分享~")
// ToastCtrl.instance.show("网络异常请重新分享~")
return
return
}
}
...
...
egret/src/yazuwei/RecordScene.ts
View file @
83776c66
...
@@ -51,7 +51,12 @@ export default class RecordScene extends Scene{
...
@@ -51,7 +51,12 @@ export default class RecordScene extends Scene{
yzwNet
.
shareFootprintList
((
s
)
=>
{
yzwNet
.
shareFootprintList
((
s
)
=>
{
Waiting
.
instance
.
hide
();
Waiting
.
instance
.
hide
();
if
(
!
s
){
if
(
!
s
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"shareFootprintList"
).
message
)
if
(
DataManager
.
ins
.
getData
(
"shareFootprintList"
)
&&
DataManager
.
ins
.
getData
(
"shareFootprintList"
).
message
){
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"shareFootprintList"
).
message
)
}
else
{
ToastCtrl
.
instance
.
show
(
"网路异常请重试~"
);
}
// ToastCtrl.instance.show("网路异常请重试~");
// ToastCtrl.instance.show("网路异常请重试~");
return
return
}
}
...
...
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