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
d7b67162
Commit
d7b67162
authored
Mar 25, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix20200325' into dev
parents
fab95b7a
aa1f2945
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
96 additions
and
40 deletions
+96
-40
MainBase.ts
egret/libs/new_wx/MainBase.ts
+2
-0
MapScene.ts
egret/src/mapScene/MapScene.ts
+2
-2
HelpBloodPanel.ts
egret/src/panels/help/HelpBloodPanel.ts
+11
-8
HelpInvitePanel.ts
egret/src/panels/help/HelpInvitePanel.ts
+25
-21
HelpInvitePanel2.ts
egret/src/panels/help/HelpInvitePanel2.ts
+50
-0
HelpScratchPanel.ts
egret/src/panels/help/HelpScratchPanel.ts
+3
-6
doHelp.json
mock/happyclear/doHelp.json
+1
-1
doHelpNew.json
mock/happyclear/doHelpNew.json
+1
-1
scratchDoHelp.json
mock/happyclear/scratchDoHelp.json
+1
-1
No files found.
egret/libs/new_wx/MainBase.ts
View file @
d7b67162
...
@@ -81,6 +81,7 @@ import BackIndexPanel from "../../src/panels/BackIndexPanel";
...
@@ -81,6 +81,7 @@ import BackIndexPanel from "../../src/panels/BackIndexPanel";
import
HelpBloodPanel
from
"../../src/panels/help/HelpBloodPanel"
;
import
HelpBloodPanel
from
"../../src/panels/help/HelpBloodPanel"
;
import
HelpInvitePanel
from
"../../src/panels/help/HelpInvitePanel"
;
import
HelpInvitePanel
from
"../../src/panels/help/HelpInvitePanel"
;
import
HelpScratchPanel
from
"../../src/panels/help/HelpScratchPanel"
;
import
HelpScratchPanel
from
"../../src/panels/help/HelpScratchPanel"
;
import
HelpInvitePanel2
from
"../../src/panels/help/HelpInvitePanel2"
;
export
default
class
MainBase
extends
eui
.
UILayer
{
export
default
class
MainBase
extends
eui
.
UILayer
{
constructor
()
{
constructor
()
{
...
@@ -171,6 +172,7 @@ export default class MainBase extends eui.UILayer {
...
@@ -171,6 +172,7 @@ export default class MainBase extends eui.UILayer {
[
'recharge'
,
{
cls
:
RechargePanel
}],
[
'recharge'
,
{
cls
:
RechargePanel
}],
[
'HelpBloodPanel'
,
{
cls
:
HelpBloodPanel
}],
[
'HelpBloodPanel'
,
{
cls
:
HelpBloodPanel
}],
[
'HelpInvitePanel'
,
{
cls
:
HelpInvitePanel
}],
[
'HelpInvitePanel'
,
{
cls
:
HelpInvitePanel
}],
[
'HelpInvitePanel2'
,
{
cls
:
HelpInvitePanel2
}],
[
'HelpScratchPanel'
,
{
cls
:
HelpScratchPanel
}],
[
'HelpScratchPanel'
,
{
cls
:
HelpScratchPanel
}],
];
];
...
...
egret/src/mapScene/MapScene.ts
View file @
d7b67162
...
@@ -74,8 +74,8 @@ export default class MapScene extends Scene {
...
@@ -74,8 +74,8 @@ export default class MapScene extends Scene {
else
if
(
code
.
indexOf
(
"12345678"
)
==
-
1
)
{
// 邀请有礼
else
if
(
code
.
indexOf
(
"12345678"
)
==
-
1
)
{
// 邀请有礼
const
dojoin
=
DataManager
.
ins
.
getData
(
'hc_doJoin'
);
const
dojoin
=
DataManager
.
ins
.
getData
(
'hc_doJoin'
);
if
(
!
dojoin
)
{
if
(
!
dojoin
)
{
showToast
(
"开启消除之旅"
);
panels
.
push
(
'HelpInvitePanel2'
);
return
fals
e
;
return
tru
e
;
}
}
const
netCallback
=
()
=>
{
doHelpFlag
=
true
;
};
const
netCallback
=
()
=>
{
doHelpFlag
=
true
;
};
panels
.
push
(
'HelpInvitePanel'
);
panels
.
push
(
'HelpInvitePanel'
);
...
...
egret/src/panels/help/HelpBloodPanel.ts
View file @
d7b67162
...
@@ -11,16 +11,15 @@ import wait from "../../../libs/new_tc/wait";
...
@@ -11,16 +11,15 @@ import wait from "../../../libs/new_tc/wait";
export
default
class
HelpBloodPanel
extends
Panel
{
export
default
class
HelpBloodPanel
extends
Panel
{
netCallback
;
netCallback
;
code
;
code
;
// mv1;
success
;
// mv2;
list
:
any
[];
list
:
any
[];
async
start
(
data
)
{
async
start
(
data
)
{
this
.
netCallback
=
data
.
netCallback
;
this
.
netCallback
=
data
.
netCallback
;
this
.
code
=
data
.
code
;
this
.
code
=
data
.
code
;
NetManager
.
ins
.
showLog
(
getlogItem
(
87
));
NetManager
.
ins
.
showLog
(
getlogItem
(
87
));
const
s
=
new
egret
.
Sprite
();
const
s
=
new
egret
.
Sprite
();
this
.
addChildAt
(
s
,
0
);
this
.
addChildAt
(
s
,
0
);
s
.
y
=
-
250
;
s
.
y
=
-
250
;
this
[
'txt_standby'
].
visible
=
true
;
this
[
'txt_standby'
].
visible
=
true
;
this
[
'helpbtn'
].
visible
=
true
;
this
[
'helpbtn'
].
visible
=
true
;
...
@@ -50,7 +49,10 @@ export default class HelpBloodPanel extends Panel {
...
@@ -50,7 +49,10 @@ export default class HelpBloodPanel extends Panel {
}
}
onclick_gobtn
()
{
onclick_gobtn
()
{
if
(
this
.
success
)
NetManager
.
ins
.
clickLog
(
getlogItem
(
88
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
88
));
// else
// NetManager.ins.clickLog(getlogItem(0));
this
.
hidePanel
();
this
.
hidePanel
();
gotoNextLevel
();
gotoNextLevel
();
}
}
...
@@ -58,11 +60,11 @@ export default class HelpBloodPanel extends Panel {
...
@@ -58,11 +60,11 @@ export default class HelpBloodPanel extends Panel {
onClick
()
{
onClick
()
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
87
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
87
));
NetManager
.
ins
.
showLog
(
getlogItem
(
88
));
NetManager
.
ins
.
doHelpNew
(
async
(
s
,
res
)
=>
{
NetManager
.
ins
.
doHelpNew
(
async
(
s
,
res
)
=>
{
this
.
netCallback
();
this
.
netCallback
();
if
(
s
)
{
if
(
s
)
{
this
.
success
=
1
;
NetManager
.
ins
.
showLog
(
getlogItem
(
88
));
play2
(
this
.
list
[
1
]);
play2
(
this
.
list
[
1
]);
this
.
list
[
0
].
visible
=
false
;
this
.
list
[
0
].
visible
=
false
;
this
.
list
[
1
].
visible
=
true
;
this
.
list
[
1
].
visible
=
true
;
...
@@ -72,6 +74,7 @@ export default class HelpBloodPanel extends Panel {
...
@@ -72,6 +74,7 @@ export default class HelpBloodPanel extends Panel {
this
[
'txt_standby'
].
visible
=
false
;
this
[
'txt_standby'
].
visible
=
false
;
this
[
'txt_success'
].
visible
=
true
;
this
[
'txt_success'
].
visible
=
true
;
}
else
{
}
else
{
// NetManager.ins.showLog(getlogItem(0));
this
.
list
[
2
].
visible
=
true
;
this
.
list
[
2
].
visible
=
true
;
play2
(
this
.
list
[
2
]);
play2
(
this
.
list
[
2
]);
this
[
'helpbtn'
].
visible
=
false
;
this
[
'helpbtn'
].
visible
=
false
;
...
...
egret/src/panels/help/HelpInvitePanel.ts
View file @
d7b67162
...
@@ -6,20 +6,22 @@ import { NetManager } from "../../../libs/tw/manager/NetManager";
...
@@ -6,20 +6,22 @@ import { NetManager } from "../../../libs/tw/manager/NetManager";
import
{
loadSvga
}
from
"../../loadSvga"
;
import
{
loadSvga
}
from
"../../loadSvga"
;
import
{
gotoNextLevel
}
from
"../gotoNextLevel"
;
import
{
gotoNextLevel
}
from
"../gotoNextLevel"
;
import
{
getlogItem
}
from
"../../Main"
;
import
{
getlogItem
}
from
"../../Main"
;
import
wait
from
"../../../libs/new_tc/wait"
;
export
default
class
HelpInvitePanel
extends
Panel
{
export
default
class
HelpInvitePanel
extends
Panel
{
netCallback
;
netCallback
;
code
;
code
;
success
;
async
start
(
data
)
{
async
start
(
data
)
{
this
.
netCallback
=
data
.
netCallback
;
this
.
netCallback
=
data
.
netCallback
;
this
.
code
=
data
.
code
;
this
.
code
=
data
.
code
;
NetManager
.
ins
.
showLog
(
getlogItem
(
91
));
const
s
=
new
egret
.
Sprite
();
const
s
=
new
egret
.
Sprite
();
this
.
addChildAt
(
s
,
0
);
this
.
addChildAt
(
s
,
0
);
this
[
'txt_standby'
].
visible
=
true
;
this
[
'txt_standby'
].
visible
=
false
;
this
[
'helpbtn'
].
visible
=
true
;
this
[
'helpbtn'
].
visible
=
false
;
this
[
'gobtn'
].
visible
=
true
;
loadSvga
(
getResPath
()
+
'resource/assets/svgas/invitebg.svga'
,
this
).
then
((
mv
:
egret
.
DisplayObject
)
=>
{
loadSvga
(
getResPath
()
+
'resource/assets/svgas/invitebg.svga'
,
this
).
then
((
mv
:
egret
.
DisplayObject
)
=>
{
s
.
addChild
(
mv
);
s
.
addChild
(
mv
);
...
@@ -33,45 +35,47 @@ export default class HelpInvitePanel extends Panel {
...
@@ -33,45 +35,47 @@ export default class HelpInvitePanel extends Panel {
]);
]);
// this['list'][0].visible=false;
// this['list'][0].visible=false;
this
[
'list'
][
1
].
visible
=
false
;
this
[
'list'
][
1
].
visible
=
false
;
this
[
'list'
][
2
].
visible
=
false
;
this
[
'list'
][
2
].
visible
=
false
;
this
[
'list'
][
0
].
y
=
-
140
;
this
[
'list'
][
0
].
y
=
-
140
;
this
[
'list'
][
1
].
y
=
-
140
;
this
[
'list'
][
1
].
y
=
-
140
;
this
[
'list'
][
2
].
y
=
-
140
;
this
[
'list'
][
2
].
y
=
-
140
;
this
.
addChild
(
this
[
'list'
][
0
]);
this
.
addChild
(
this
[
'list'
][
0
]);
this
.
addChild
(
this
[
'list'
][
1
]);
this
.
addChild
(
this
[
'list'
][
1
]);
this
.
addChild
(
this
[
'list'
][
2
]);
this
.
addChild
(
this
[
'list'
][
2
]);
this
[
'gobtn'
].
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onclick_gobtn
,
this
);
this
[
'gobtn'
].
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onclick_gobtn
,
this
);
this
[
'helpbtn'
].
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onClick
,
this
);
// wait(100).then(()=>{
this
.
onClick
();
// })
}
}
onclick_gobtn
()
{
onclick_gobtn
()
{
// NetManager.ins.clickLog(getlogItem(88));
// NetManager.ins.clickLog(getlogItem(88));
this
.
hidePanel
();
this
.
hidePanel
();
gotoNextLevel
();
gotoNextLevel
();
if
(
this
.
success
)
NetManager
.
ins
.
clickLog
(
getlogItem
(
92
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
92
));
// else
// NetManager.ins.clickLog(getlogItem(0));
}
}
onClick
()
{
onClick
()
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
91
));
NetManager
.
ins
.
showLog
(
getlogItem
(
92
));
this
[
'helpbtn'
].
visible
=
false
;
this
[
'gobtn'
].
visible
=
true
;
const
dojoin
=
DataManager
.
ins
.
getData
(
'hc_doJoin'
);
const
dojoin
=
DataManager
.
ins
.
getData
(
'hc_doJoin'
);
NetManager
.
ins
.
doHelp
((
success
,
res
)
=>
{
NetManager
.
ins
.
doHelp
((
success
,
res
)
=>
{
this
.
netCallback
();
this
.
netCallback
();
this
[
'list'
][
0
].
visible
=
false
;
this
[
'list'
][
0
].
visible
=
false
;
this
[
'txt_standby'
].
visible
=
false
;
if
(
success
)
{
if
(
success
)
{
this
[
'list'
][
1
].
visible
=
true
;
this
.
success
=
1
;
NetManager
.
ins
.
showLog
(
getlogItem
(
92
));
this
[
'list'
][
1
].
visible
=
true
;
this
[
'list'
][
1
].
gotoAndPlay
(
1
);
this
[
'list'
][
1
].
gotoAndPlay
(
1
);
this
[
'txt_success'
].
visible
=
true
;
this
[
'txt_success'
].
visible
=
true
;
}
else
{
}
else
{
// NetManager.ins.showLog(getlogItem(0));
this
[
'list'
][
2
].
gotoAndPlay
(
1
);
this
[
'list'
][
2
].
gotoAndPlay
(
1
);
this
[
'list'
][
2
].
visible
=
true
;
this
[
'list'
][
2
].
visible
=
true
;
var
codeMsgs
=
{
var
codeMsgs
=
{
"400017"
:
"您不是新用户呢~"
,
"400017"
:
"您不是新用户呢~"
,
"0000022"
:
"不可以给自己助力哦~"
,
"0000022"
:
"不可以给自己助力哦~"
,
...
...
egret/src/panels/help/HelpInvitePanel2.ts
0 → 100644
View file @
d7b67162
import
getResPath
from
"../../../libs/new_tc/getResPath"
;
import
Panel
from
"../../../libs/new_wx/components/Panel"
;
import
{
showToast
}
from
"../../../libs/new_wx/ctrls/toastCtrl"
;
import
{
DataManager
}
from
"../../../libs/tw/manager/DataManager"
;
import
{
NetManager
}
from
"../../../libs/tw/manager/NetManager"
;
import
{
loadSvga
}
from
"../../loadSvga"
;
import
{
gotoNextLevel
}
from
"../gotoNextLevel"
;
import
{
getlogItem
}
from
"../../Main"
;
export
default
class
HelpInvitePanel2
extends
Panel
{
// netCallback;
// code;
async
start
(
data
)
{
// this.netCallback = data.netCallback;
// this.code = data.code;
NetManager
.
ins
.
showLog
(
getlogItem
(
91
));
const
s
=
new
egret
.
Sprite
();
this
.
addChildAt
(
s
,
0
);
this
[
'txt_standby'
].
visible
=
true
;
this
[
'helpbtn'
].
visible
=
true
;
loadSvga
(
getResPath
()
+
'resource/assets/svgas/invitebg.svga'
,
this
).
then
((
mv
:
egret
.
DisplayObject
)
=>
{
s
.
addChild
(
mv
);
mv
.
y
=
-
180
;
});
this
[
'list'
]
=
await
Promise
.
all
([
loadSvga
(
getResPath
()
+
'resource/assets/svgas/inviteAct1.svga'
)
]);
this
[
'list'
][
0
].
y
=-
140
;
this
.
addChild
(
this
[
'list'
][
0
]);
this
[
'helpbtn'
].
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onClick
,
this
);
}
onClick
()
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
91
));
this
.
hidePanel
();
gotoNextLevel
();
}
get
skinResKey
()
{
return
'helpGroup'
}
get
skinKey
()
{
return
'HelpInvite'
}
}
\ No newline at end of file
egret/src/panels/help/HelpScratchPanel.ts
View file @
d7b67162
...
@@ -9,6 +9,7 @@ import wait from "../../../libs/new_tc/wait";
...
@@ -9,6 +9,7 @@ import wait from "../../../libs/new_tc/wait";
import
{
getlogItem
}
from
"../../Main"
;
import
{
getlogItem
}
from
"../../Main"
;
export
default
class
HelpScratchPanel
extends
Panel
{
export
default
class
HelpScratchPanel
extends
Panel
{
netCallback
;
netCallback
;
code
;
code
;
list
:
any
[];
list
:
any
[];
...
@@ -85,12 +86,6 @@ export default class HelpScratchPanel extends Panel {
...
@@ -85,12 +86,6 @@ export default class HelpScratchPanel extends Panel {
await
play2
(
this
.
list
[
0
]);
await
play2
(
this
.
list
[
0
]);
this
[
'light'
].
visible
=
true
;
this
[
'light'
].
visible
=
true
;
});
});
// setTimeout(() => {
// }, 2000);
}
}
startAni
()
{
startAni
()
{
...
@@ -109,6 +104,7 @@ export default class HelpScratchPanel extends Panel {
...
@@ -109,6 +104,7 @@ export default class HelpScratchPanel extends Panel {
onclick_gobtn2
()
{
onclick_gobtn2
()
{
this
.
hidePanel
();
this
.
hidePanel
();
gotoNextLevel
();
gotoNextLevel
();
// NetManager.ins.clickLog(getlogItem(0));
}
}
onClick
()
{
onClick
()
{
...
@@ -130,6 +126,7 @@ export default class HelpScratchPanel extends Panel {
...
@@ -130,6 +126,7 @@ export default class HelpScratchPanel extends Panel {
await
play2
(
this
.
list
[
1
]);
await
play2
(
this
.
list
[
1
]);
this
[
'light'
].
visible
=
true
;
this
[
'light'
].
visible
=
true
;
}
else
{
}
else
{
// NetManager.ins.showLog(getlogItem(0));
this
[
'go2btn'
].
visible
=
true
;
this
[
'go2btn'
].
visible
=
true
;
this
.
list
[
2
].
visible
=
true
;
this
.
list
[
2
].
visible
=
true
;
var
codeMsgs
=
{
var
codeMsgs
=
{
...
...
mock/happyclear/doHelp.json
View file @
d7b67162
{
{
"success"
:
0
,
"success"
:
1
,
"code"
:
"0200202"
,
"code"
:
"0200202"
,
"desc"
:
null
,
"desc"
:
null
,
"timestamp"
:
1566199822308
,
"timestamp"
:
1566199822308
,
...
...
mock/happyclear/doHelpNew.json
View file @
d7b67162
{
{
"success"
:
1
,
"success"
:
0
,
"code"
:
"2002002036"
,
"code"
:
"2002002036"
,
"desc"
:
"OK"
,
"desc"
:
"OK"
,
"timestamp"
:
1571052938097
,
"timestamp"
:
1571052938097
,
...
...
mock/happyclear/scratchDoHelp.json
View file @
d7b67162
{
{
"success"
:
1
,
"success"
:
0
,
"code"
:
"0000023"
,
"code"
:
"0000023"
,
"desc"
:
null
,
"desc"
:
null
,
"timestamp"
:
1566199822308
,
"timestamp"
:
1566199822308
,
...
...
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