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
00182b16
Commit
00182b16
authored
Nov 08, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab2.dui88.com/wanghongyuan/xiaoxiaole
into dev
parents
0bf0a998
5e3d19bc
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
39 additions
and
9 deletions
+39
-9
Toast2.ts
egret/libs/new_wx/components/Toast2.ts
+1
-1
闯关失败.png
egret/resource/assets/faild/闯关失败.png
+0
-0
FailSkin.exml
egret/resource/skins/FailSkin.exml
+1
-0
MapSkin.exml
egret/resource/skins/MapSkin.exml
+1
-1
MainScene.ts
egret/src/mainScene/MainScene.ts
+3
-3
MapScene.ts
egret/src/mapScene/MapScene.ts
+14
-1
Buy1Panel.ts
egret/src/panels/Buy1Panel.ts
+7
-1
Buy2Panel.ts
egret/src/panels/Buy2Panel.ts
+6
-1
Buy3Panel.ts
egret/src/panels/Buy3Panel.ts
+6
-1
No files found.
egret/libs/new_wx/components/Toast2.ts
View file @
00182b16
...
@@ -12,7 +12,7 @@ export default class Toast2 extends ComponentBase {
...
@@ -12,7 +12,7 @@ export default class Toast2 extends ComponentBase {
toastLabel
:
eui
.
Label
;
toastLabel
:
eui
.
Label
;
start
()
{
start
()
{
this
.
touchEnabled
=
false
;
this
.
touchEnabled
=
false
;
this
.
touchChildren
=
false
;
//
this.touchChildren=false;
this
.
toastLabel
.
textFlow
=
(
new
HtmlTextParser
).
parser
(
'<u>继续闯关赢好礼</u>'
);
this
.
toastLabel
.
textFlow
=
(
new
HtmlTextParser
).
parser
(
'<u>继续闯关赢好礼</u>'
);
this
.
toastLabel
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,()
=>
{
this
.
toastLabel
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,()
=>
{
if
(
SceneCtrl
.
instance
.
currentScene
instanceof
MainScene
){
if
(
SceneCtrl
.
instance
.
currentScene
instanceof
MainScene
){
...
...
egret/resource/assets/faild/闯关失败.png
View replaced file @
0bf0a998
View file @
00182b16
288 KB
|
W:
|
H:
238 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/skins/FailSkin.exml
View file @
00182b16
...
@@ -18,4 +18,5 @@
...
@@ -18,4 +18,5 @@
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
<e:Label
text=
"闯关成功即可获得现金券、\n游戏道具等更多好礼哦~"
y=
"477.24"
anchorOffsetX=
"0"
width=
"578.54"
anchorOffsetY=
"0"
height=
"81.52"
horizontalCenter=
"0"
textAlign=
"center"
verticalAlign=
"middle"
textColor=
"0xf54501"
size=
"25"
lineSpacing=
"15"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/resource/skins/MapSkin.exml
View file @
00182b16
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"MapSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
class=
"MapSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Rect
id=
"rectbg"
width=
"750"
height=
"1206"
visible=
"false"
/>
<e:Rect
id=
"rectbg"
width=
"750"
height=
"1206"
/>
<e:Scroller
id=
"scroll"
width=
"750"
height=
"1624"
x=
"0"
y=
"0"
scrollPolicyH=
"off"
scrollPolicyV=
"on"
locked=
"true"
>
<e:Scroller
id=
"scroll"
width=
"750"
height=
"1624"
x=
"0"
y=
"0"
scrollPolicyH=
"off"
scrollPolicyV=
"on"
locked=
"true"
>
<e:Group
id=
"scrollGroup"
>
<e:Group
id=
"scrollGroup"
>
</e:Group>
</e:Group>
...
...
egret/src/mainScene/MainScene.ts
View file @
00182b16
...
@@ -387,7 +387,7 @@ export default class MainScene extends Scene {
...
@@ -387,7 +387,7 @@ export default class MainScene extends Scene {
this
.
propBtnCon
.
hammerBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_hammerBtn
,
this
)
this
.
propBtnCon
.
hammerBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_hammerBtn
,
this
)
this
.
propBtnCon
.
stepBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_stepBtn
,
this
)
this
.
propBtnCon
.
stepBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_stepBtn
,
this
)
//初始化道具信息
//初始化道具信息
this
.
update
PropNum
();
this
.
update
Scene
();
//选择框 无需加入场景
//选择框 无需加入场景
var
textureChoosed
:
egret
.
Texture
=
RES
.
getRes
(
"chooseRect_png"
)
var
textureChoosed
:
egret
.
Texture
=
RES
.
getRes
(
"chooseRect_png"
)
this
.
choosed
=
new
eui
.
Image
(
textureChoosed
);
this
.
choosed
=
new
eui
.
Image
(
textureChoosed
);
...
@@ -753,7 +753,7 @@ export default class MainScene extends Scene {
...
@@ -753,7 +753,7 @@ export default class MainScene extends Scene {
/**
/**
* 更新三个道具
* 更新三个道具
*/
*/
update
PropNum
()
{
update
Scene
()
{
this
.
propBtnCon
.
boomBtn
.
propNumShow
.
count
=
getPropNums
(
PropType
.
BOOM
);
this
.
propBtnCon
.
boomBtn
.
propNumShow
.
count
=
getPropNums
(
PropType
.
BOOM
);
this
.
propBtnCon
.
hammerBtn
.
propNumShow
.
count
=
getPropNums
(
PropType
.
HAMMER
);
this
.
propBtnCon
.
hammerBtn
.
propNumShow
.
count
=
getPropNums
(
PropType
.
HAMMER
);
this
.
propBtnCon
.
stepBtn
.
propNumShow
.
count
=
getPropNums
(
PropType
.
CHANCE_NUM
);
this
.
propBtnCon
.
stepBtn
.
propNumShow
.
count
=
getPropNums
(
PropType
.
CHANCE_NUM
);
...
@@ -1020,7 +1020,7 @@ export default class MainScene extends Scene {
...
@@ -1020,7 +1020,7 @@ export default class MainScene extends Scene {
//如果有返回数据,没有说明是网络问题,不发home
//如果有返回数据,没有说明是网络问题,不发home
//更新道具数量
//更新道具数量
NetManager
.
ins
.
hc_home
(()
=>
{
NetManager
.
ins
.
hc_home
(()
=>
{
this
.
update
PropNum
();
this
.
update
Scene
();
},
window
[
'collectRuleId'
]);
},
window
[
'collectRuleId'
]);
}
}
},
prop
)
},
prop
)
...
...
egret/src/mapScene/MapScene.ts
View file @
00182b16
...
@@ -295,7 +295,20 @@ export default class MapScene extends Scene {
...
@@ -295,7 +295,20 @@ export default class MapScene extends Scene {
onAllPanelHide
=
()
=>
{
onAllPanelHide
=
()
=>
{
if
(
!
localStorage
.
getItem
(
'activityguide'
))
{
if
(
!
localStorage
.
getItem
(
'activityguide'
))
{
NetManager
.
ins
.
hbRainBaseInfo
((
success
,
res
)
=>
{
if
(
!
success
)
{
if
(
res
.
code
==
"600054"
||
res
.
code
==
"600055"
)
{
this
[
'guide'
].
visible
=
false
;
}
return
;
}
const
data
=
res
.
data
;
if
(
!
data
.
currentSession
&&
!
data
.
nextSession
)
{
this
[
'guide'
].
visible
=
false
;
return
;
}
this
[
'guide'
].
visible
=
true
;
this
[
'guide'
].
visible
=
true
;
});
}
}
}
}
...
...
egret/src/panels/Buy1Panel.ts
View file @
00182b16
...
@@ -8,6 +8,7 @@ import setGlow from "../setGlow";
...
@@ -8,6 +8,7 @@ import setGlow from "../setGlow";
import
getHomeData
from
"../getHomeData"
;
import
getHomeData
from
"../getHomeData"
;
import
{
showToast2
}
from
"../../libs/new_wx/ctrls/toastCtrl2"
;
import
{
showToast2
}
from
"../../libs/new_wx/ctrls/toastCtrl2"
;
import
PanelCtrl
from
"../../libs/new_wx/ctrls/panelCtrl"
;
import
PanelCtrl
from
"../../libs/new_wx/ctrls/panelCtrl"
;
import
MainScene
from
"../mainScene/MainScene"
;
export
default
class
Buy1Panel
extends
Panel
{
export
default
class
Buy1Panel
extends
Panel
{
buyBtn
:
eui
.
Button
buyBtn
:
eui
.
Button
...
@@ -39,7 +40,12 @@ export default class Buy1Panel extends Panel {
...
@@ -39,7 +40,12 @@ export default class Buy1Panel extends Panel {
this
.
buyBtn
.
enabled
=
true
;
this
.
buyBtn
.
enabled
=
true
;
if
(
success
)
{
if
(
success
)
{
this
.
hidePanel
();
this
.
hidePanel
();
if
(
SceneCtrl
.
instance
.
currentScene
instanceof
MainScene
){
showToast
(
'兑换成功'
);
}
else
{
showToast2
();
showToast2
();
}
NetManager
.
ins
.
hc_home
(()
=>
{
NetManager
.
ins
.
hc_home
(()
=>
{
SceneCtrl
.
instance
.
updateScene
();
SceneCtrl
.
instance
.
updateScene
();
},
window
[
'collectRuleId'
]);
},
window
[
'collectRuleId'
]);
...
...
egret/src/panels/Buy2Panel.ts
View file @
00182b16
...
@@ -8,6 +8,7 @@ import setGlow from "../setGlow";
...
@@ -8,6 +8,7 @@ import setGlow from "../setGlow";
import
getHomeData
from
"../getHomeData"
;
import
getHomeData
from
"../getHomeData"
;
import
{
showToast2
}
from
"../../libs/new_wx/ctrls/toastCtrl2"
;
import
{
showToast2
}
from
"../../libs/new_wx/ctrls/toastCtrl2"
;
import
PanelCtrl
from
"../../libs/new_wx/ctrls/panelCtrl"
;
import
PanelCtrl
from
"../../libs/new_wx/ctrls/panelCtrl"
;
import
MainScene
from
"../mainScene/MainScene"
;
export
default
class
Buy2Panel
extends
Panel
{
export
default
class
Buy2Panel
extends
Panel
{
onTouchTap_closeBtn
(){
onTouchTap_closeBtn
(){
...
@@ -33,7 +34,11 @@ export default class Buy2Panel extends Panel {
...
@@ -33,7 +34,11 @@ export default class Buy2Panel extends Panel {
NetManager
.
ins
.
hc_exchange
((
success
)
=>
{
NetManager
.
ins
.
hc_exchange
((
success
)
=>
{
this
.
buyBtn
.
enabled
=
true
;
this
.
buyBtn
.
enabled
=
true
;
if
(
success
)
{
if
(
success
)
{
if
(
SceneCtrl
.
instance
.
currentScene
instanceof
MainScene
){
showToast
(
'兑换成功'
);
}
else
{
showToast2
();
showToast2
();
}
this
.
hidePanel
();
this
.
hidePanel
();
NetManager
.
ins
.
hc_home
(()
=>
{
NetManager
.
ins
.
hc_home
(()
=>
{
SceneCtrl
.
instance
.
updateScene
();
SceneCtrl
.
instance
.
updateScene
();
...
...
egret/src/panels/Buy3Panel.ts
View file @
00182b16
...
@@ -8,6 +8,7 @@ import setGlow from "../setGlow";
...
@@ -8,6 +8,7 @@ import setGlow from "../setGlow";
import
getHomeData
from
"../getHomeData"
;
import
getHomeData
from
"../getHomeData"
;
import
{
showToast2
}
from
"../../libs/new_wx/ctrls/toastCtrl2"
;
import
{
showToast2
}
from
"../../libs/new_wx/ctrls/toastCtrl2"
;
import
PanelCtrl
from
"../../libs/new_wx/ctrls/panelCtrl"
;
import
PanelCtrl
from
"../../libs/new_wx/ctrls/panelCtrl"
;
import
MainScene
from
"../mainScene/MainScene"
;
export
default
class
Buy3Panel
extends
Panel
{
export
default
class
Buy3Panel
extends
Panel
{
onTouchTap_closeBtn
(){
onTouchTap_closeBtn
(){
...
@@ -34,7 +35,11 @@ export default class Buy3Panel extends Panel {
...
@@ -34,7 +35,11 @@ export default class Buy3Panel extends Panel {
NetManager
.
ins
.
hc_exchange
((
success
)
=>
{
NetManager
.
ins
.
hc_exchange
((
success
)
=>
{
this
.
buyBtn
.
enabled
=
true
;
this
.
buyBtn
.
enabled
=
true
;
if
(
success
)
{
if
(
success
)
{
if
(
SceneCtrl
.
instance
.
currentScene
instanceof
MainScene
){
showToast
(
'兑换成功'
);
}
else
{
showToast2
();
showToast2
();
}
this
.
hidePanel
();
this
.
hidePanel
();
NetManager
.
ins
.
hc_home
(()
=>
{
NetManager
.
ins
.
hc_home
(()
=>
{
SceneCtrl
.
instance
.
updateScene
();
SceneCtrl
.
instance
.
updateScene
();
...
...
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