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
d471676f
Commit
d471676f
authored
Oct 30, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
442597b8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
6 deletions
+15
-6
MainBase.ts
egret/libs/new_wx/MainBase.ts
+2
-0
H5Scene.ts
egret/src/H5Scene.ts
+4
-1
MapScene.ts
egret/src/mapScene/MapScene.ts
+4
-0
BackPanel.ts
egret/src/panels/BackPanel.ts
+1
-1
getBackReward.json
mock/happyclear/getBackReward.json
+1
-1
home.json
mock/happyclear/home.json
+3
-3
No files found.
egret/libs/new_wx/MainBase.ts
View file @
d471676f
...
@@ -324,10 +324,12 @@ export default class MainBase extends eui.UILayer {
...
@@ -324,10 +324,12 @@ export default class MainBase extends eui.UILayer {
}
}
if
(
window
[
'isInvitePage'
]
==
1
)
{
if
(
window
[
'isInvitePage'
]
==
1
)
{
this
.
ajaxElement
().
then
(()
=>
{
this
.
ajaxElement
().
then
(()
=>
{
Buried
.
init
();
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
INVITE_SCENE
);
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
INVITE_SCENE
);
})
})
}
else
if
(
window
[
'isInvitePage'
]
==
2
)
{
}
else
if
(
window
[
'isInvitePage'
]
==
2
)
{
this
.
ajaxElement
().
then
(()
=>
{
this
.
ajaxElement
().
then
(()
=>
{
Buried
.
init
();
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
INVITE_SCENE2
);
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
INVITE_SCENE2
);
})
})
}
}
...
...
egret/src/H5Scene.ts
View file @
d471676f
import
Scene
from
"../libs/new_wx/components/Scene"
;
import
Scene
from
"../libs/new_wx/components/Scene"
;
import
Utils
from
"./Utils"
;
import
Utils
from
"./Utils"
;
import
PanelCtrl
from
"../libs/new_wx/ctrls/panelCtrl"
;
import
PanelCtrl
from
"../libs/new_wx/ctrls/panelCtrl"
;
import
{
NetManager
}
from
"../libs/tw/manager/NetManager"
;
import
{
getlogItem
}
from
"./Main"
;
export
default
class
H5Scene
extends
Scene
{
export
default
class
H5Scene
extends
Scene
{
async
start
(
data
?)
{
async
start
(
data
?)
{
super
.
start
();
super
.
start
();
NetManager
.
ins
.
showLog
(
getlogItem
(
35
));
this
[
'rulebtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,()
=>
{
this
[
'rulebtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,()
=>
{
PanelCtrl
.
instance
.
show
(
'inviterule'
)
PanelCtrl
.
instance
.
show
(
'inviterule'
)
},
this
);
},
this
);
this
[
'gobtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,()
=>
{
this
[
'gobtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
35
));
const
code
=
Utils
.
getRequestByKey
(
'shareCode'
);
const
code
=
Utils
.
getRequestByKey
(
'shareCode'
);
window
.
location
.
href
=
`
${
window
[
'targetUrl'
]}
&shareCode=
${
code
}
`
window
.
location
.
href
=
`
${
window
[
'targetUrl'
]}
&shareCode=
${
code
}
`
},
this
);
},
this
);
}
}
get
skinKey
()
{
return
'H5'
}
get
skinKey
()
{
return
'H5'
}
}
}
egret/src/mapScene/MapScene.ts
View file @
d471676f
...
@@ -801,6 +801,10 @@ export default class MapScene extends Scene {
...
@@ -801,6 +801,10 @@ export default class MapScene extends Scene {
showToast
(
'哎呀!奖励与您擦肩而过!快继续闯关!'
);
showToast
(
'哎呀!奖励与您擦肩而过!快继续闯关!'
);
}
}
NetManager
.
ins
.
hc_home
(()
=>
{
this
.
updateScene
();
},
window
[
'collectRuleId'
]);
}
else
{
}
else
{
PanelCtrl
.
instance
.
show
(
'box2'
);
PanelCtrl
.
instance
.
show
(
'box2'
);
}
}
...
...
egret/src/panels/BackPanel.ts
View file @
d471676f
...
@@ -26,7 +26,7 @@ export default class BackPanel extends Panel {
...
@@ -26,7 +26,7 @@ export default class BackPanel extends Panel {
}
}
onTapInvite
()
{
onTapInvite
()
{
gotoNextLevel
();
//
gotoNextLevel();
}
}
updateOption
(
option
:
any
)
{
updateOption
(
option
:
any
)
{
...
...
mock/happyclear/getBackReward.json
View file @
d471676f
...
@@ -16,6 +16,6 @@
...
@@ -16,6 +16,6 @@
"value"
:
"虚拟商品标识符"
"value"
:
"虚拟商品标识符"
},
},
"desc"
:
"OK"
,
"desc"
:
"OK"
,
"success"
:
0
,
"success"
:
1
,
"timestamp"
:
1572079274940
"timestamp"
:
1572079274940
}
}
\ No newline at end of file
mock/happyclear/home.json
View file @
d471676f
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
"desc"
:
"OK"
,
"desc"
:
"OK"
,
"timestamp"
:
1571819565824
,
"timestamp"
:
1571819565824
,
"data"
:
{
"data"
:
{
"wealth"
:
140
,
"wealth"
:
999
,
"totalStars"
:
359
,
"totalStars"
:
359
,
"levels"
:
[
"levels"
:
[
],
],
...
@@ -25,8 +25,8 @@
...
@@ -25,8 +25,8 @@
"remainEnargy"
:
5
,
"remainEnargy"
:
5
,
"askForEnergy"
:
false
,
"askForEnergy"
:
false
,
"canReceiveTreasureBoxNum"
:
10
,
"canReceiveTreasureBoxNum"
:
10
,
"nextRangeStarsNum"
:
0
,
"nextRangeStarsNum"
:
10
0
,
"isGetAllTreasureBox"
:
tru
e
,
"isGetAllTreasureBox"
:
fals
e
,
"refectionCountdown"
:
1685
"refectionCountdown"
:
1685
}
}
}
}
\ 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