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
b1972501
Commit
b1972501
authored
Oct 24, 2019
by
wjf
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab2.dui88.com:wanghongyuan/xiaoxiaole into dev
parents
5664963a
d63f67ed
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
57 additions
and
55 deletions
+57
-55
ad_icon.png
egret/resource/assets/map/ad_icon.png
+0
-0
map刮现金红包.png
egret/resource/assets/map/map刮现金红包.png
+0
-0
map大转盘.png
egret/resource/assets/map/map大转盘.png
+0
-0
default.res.json
egret/resource/default.res.json
+14
-0
MapSkin.exml
egret/resource/skins/MapSkin.exml
+17
-3
ScratchSkin.exml
egret/resource/skins/ScratchSkin.exml
+1
-1
MapScene.ts
egret/src/mapScene/MapScene.ts
+21
-19
InvitePanel.ts
egret/src/panels/InvitePanel.ts
+0
-1
ScratchPanel.ts
egret/src/panels/ScratchPanel.ts
+3
-4
advert.json
mock/happyclear/advert.json
+1
-27
No files found.
egret/resource/assets/map/ad_icon.png
View replaced file @
5664963a
View file @
b1972501
21.4 KB
|
W:
|
H:
34.3 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/assets/map/map刮现金红包.png
0 → 100644
View file @
b1972501
12.3 KB
egret/resource/assets/map/map大转盘.png
0 → 100644
View file @
b1972501
16.4 KB
egret/resource/default.res.json
View file @
b1972501
...
...
@@ -139,6 +139,10 @@
{
"keys"
:
"scratch_rule_bg_png"
,
"name"
:
"scratchrulepanel"
},
{
"name"
:
"preload"
,
"keys"
:
"map大转盘_png,map刮现金红包_png"
}
],
"resources"
:
[
...
...
@@ -2361,6 +2365,16 @@
"url"
:
"assets/scratch/rule/scratch_rule_bg.png"
,
"type"
:
"image"
,
"name"
:
"scratch_rule_bg_png"
},
{
"name"
:
"map大转盘_png"
,
"type"
:
"image"
,
"url"
:
"assets/map/map大转盘.png"
},
{
"name"
:
"map刮现金红包_png"
,
"type"
:
"image"
,
"url"
:
"assets/map/map刮现金红包.png"
}
]
}
\ No newline at end of file
egret/resource/skins/MapSkin.exml
View file @
b1972501
...
...
@@ -43,7 +43,7 @@
</e:Button>
<e:Label
id=
"countdown"
text=
"00:00:00"
x=
"77.39"
y=
"31.19"
verticalAlign=
"middle"
textAlign=
"center"
size=
"22"
/>
</e:Group>
<e:Button
id=
"shopBtn"
label=
""
x=
"613.08"
y=
"174.01"
>
<e:Button
id=
"shopBtn"
label=
""
x=
"613.08"
y=
"174.01"
visible=
"false"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"道具_png"
source.down=
"道具_png"
source.disabled=
"道具_png"
/>
...
...
@@ -51,7 +51,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Button
id=
"recordBtn"
label=
""
x=
"614.14"
y=
"
323.76
"
>
<e:Button
id=
"recordBtn"
label=
""
x=
"614.14"
y=
"
174.01
"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"recordbtn_png"
source.down=
"recordbtn_png"
source.disabled=
"recordbtn_png"
/>
...
...
@@ -68,7 +68,7 @@
<e:Image
source=
"namebg_png"
horizontalCenter=
"-4"
bottom=
"-4"
/>
<e:Label
id=
"nameTxt"
text=
"La121233bel"
y=
"91.5"
size=
"20"
horizontalCenter=
"1"
/>
</e:Group>
<e:Image
id=
"adBtn"
y=
"47
4.02"
source=
"ad_icon_png"
right=
"24
"
width=
"122"
height=
"122"
/>
<e:Image
id=
"adBtn"
y=
"47
8"
source=
"ad_icon_png"
right=
"602
"
width=
"122"
height=
"122"
/>
<e:Button
id=
"taskBtn"
label=
""
x=
"572.62"
y=
"248.51"
visible=
"false"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
...
...
@@ -164,5 +164,19 @@
</e:Group>
<e:Label
text=
"点击开宝箱"
y=
"791"
size=
"37"
horizontalCenter=
"0"
bold=
"true"
/>
</e:Group>
<e:Group
x=
"567.36"
y=
"318.43"
locked=
"true"
>
<e:Image
source=
"map大转盘_png"
x=
"33.36"
y=
"0"
/>
<e:Group
x=
"6"
y=
"10.24"
>
<e:Image
id=
"inviteTipsBg0"
source=
"invite_txtbg_png"
y=
"0"
touchEnabled=
"false"
/>
<e:Label
id=
"inviteTips0"
text=
"立即到"
horizontalCenter=
"0"
verticalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
textColor=
"0xFFFFFF"
size=
"18"
fontFamily=
"Helvetica"
/>
</e:Group>
</e:Group>
<e:Group
y=
"476"
right=
"30"
>
<e:Image
source=
"map刮现金红包_png"
y=
"0"
/>
<e:Group
x=
"-24"
>
<e:Image
id=
"inviteTipsBg1"
source=
"invite_txtbg_png"
y=
"0"
touchEnabled=
"false"
/>
<e:Label
id=
"inviteTips1"
text=
"立即到"
horizontalCenter=
"0"
verticalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
textColor=
"0xFFFFFF"
size=
"18"
fontFamily=
"Helvetica"
/>
</e:Group>
</e:Group>
<w:Config
id=
"16c89f4ae1a"
/>
</e:Skin>
\ No newline at end of file
egret/resource/skins/ScratchSkin.exml
View file @
b1972501
...
...
@@ -47,7 +47,7 @@
<e:Group
id=
"progressGroup"
x=
"8"
verticalCenter=
"0"
>
<e:Image
id=
"progressBg"
source=
"scratch_progress_bg_png"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
x=
"0"
y=
"0"
width=
"437"
height=
"22"
/>
<e:Rect
id=
"progress"
fillColor=
"0xeb1917"
left=
"0"
verticalCenter=
"0"
width=
"0"
top=
"0"
bottom=
"0"
/>
<e:Label
id=
"progressLabel"
text=
"仅剩90.7%"
size=
"18"
verticalCenter=
"0"
horizontalCenter=
"0"
/>
<e:Label
id=
"progressLabel"
text=
"仅剩90.7%"
size=
"18"
verticalCenter=
"0"
horizontalCenter=
"0"
bold=
"true"
/>
</e:Group>
<e:Image
id=
"hongbao"
source=
"scratch_hongbao_png"
scaleX=
"1"
scaleY=
"1"
verticalCenter=
"0"
horizontalCenter=
"219"
/>
</e:Group>
...
...
egret/src/mapScene/MapScene.ts
View file @
b1972501
...
...
@@ -70,12 +70,14 @@ export default class MapScene extends Scene {
async
start
(
data
?)
{
// NetManager.ins.getInviteInfo((success, res)=>{
// if(!success){
//
// }
// PanelCtrl.instance.show('scratch', res.data);
// });
setTimeout
(()
=>
{
NetManager
.
ins
.
getInviteInfo
((
success
,
res
)
=>
{
if
(
!
success
)
{
}
PanelCtrl
.
instance
.
show
(
'scratch'
,
res
.
data
);
});
},
1000
);
super
.
start
();
...
...
@@ -112,17 +114,17 @@ export default class MapScene extends Scene {
noticeAdvert
=
{
enable
:
false
}
}
if
(
noticeAdvert
&&
noticeAdvert
.
enable
&&
nowTimerStr2
!=
oldTimerStr2
)
{
if
(
noticeAdvert
&&
noticeAdvert
.
enable
&&
nowTimerStr2
!=
oldTimerStr2
)
{
// if (!adTag) {
panels
.
push
(
'ad'
);
// adTag = true;
panels
.
push
(
'ad'
);
// adTag = true;
// }
localStorage
.
setItem
(
'nowTimer2Str'
+
window
[
'CFG'
].
consumerId
,
nowTimerStr2
);
}
const
{
signInfoVO
}
=
DataManager
.
ins
.
getData
(
'getSignInfo'
);
if
(
signInfoVO
.
continueDay
<
7
)
{
//表示明天还可以签到
if
(
signInfoVO
.
todaySigned
==
0
&&
oldTimerStr
!=
nowTimerStr
)
{
const
{
signInfoVO
}
=
DataManager
.
ins
.
getData
(
'getSignInfo'
);
if
(
signInfoVO
.
continueDay
<
7
)
{
//表示明天还可以签到
if
(
signInfoVO
.
todaySigned
==
0
&&
oldTimerStr
!=
nowTimerStr
)
{
panels
.
push
(
'sign'
);
localStorage
.
setItem
(
'nowTimerStr'
+
window
[
'CFG'
].
consumerId
,
nowTimerStr
);
}
...
...
@@ -267,13 +269,13 @@ export default class MapScene extends Scene {
}
updateSign
(){
const
{
signInfoVO
}
=
DataManager
.
ins
.
getData
(
'getSignInfo'
);
if
(
signInfoVO
.
continueDay
<
7
)
{
//表示明天还可以签到
this
[
'sign_s1'
].
visible
=
signInfoVO
.
todaySigned
==
0
;
this
[
'sign_s2'
].
visible
=
!
this
[
'sign_s1'
].
visible
;
}
else
{
this
[
'sign_s2'
].
visible
=
true
;
updateSign
()
{
const
{
signInfoVO
}
=
DataManager
.
ins
.
getData
(
'getSignInfo'
);
if
(
signInfoVO
.
continueDay
<
7
)
{
//表示明天还可以签到
this
[
'sign_s1'
].
visible
=
signInfoVO
.
todaySigned
==
0
;
this
[
'sign_s2'
].
visible
=
!
this
[
'sign_s1'
].
visible
;
}
else
{
this
[
'sign_s2'
].
visible
=
true
;
}
}
...
...
egret/src/panels/InvitePanel.ts
View file @
b1972501
...
...
@@ -199,7 +199,6 @@ class InviteItem extends eui.ItemRenderer {
}
dataChanged
()
{
console
.
log
(
this
.
data
);
this
.
img
.
source
=
this
.
data
.
avatar
||
"http://yun.duiba.com.cn/db_games/default_avatar.png"
;
this
.
img
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
this
.
data
.
callFun
)
{
...
...
egret/src/panels/ScratchPanel.ts
View file @
b1972501
...
...
@@ -166,8 +166,8 @@ export default class ScratchPanel extends Panel {
}
private
hongbaoEffect
(){
egret
.
Tween
.
get
(
this
[
"hongbao"
]).
to
({
scaleX
:
0.8
,
scaleY
:
0.8
},
3
00
,
egret
.
Ease
.
quadInOut
).
call
(()
=>
{
egret
.
Tween
.
get
(
this
[
"hongbao"
]).
to
({
scaleX
:
1
,
scaleY
:
1
},
2
00
,
egret
.
Ease
.
quadInOut
).
wait
(
1500
).
call
(()
=>
{
egret
.
Tween
.
get
(
this
[
"hongbao"
]).
to
({
scaleX
:
0.8
,
scaleY
:
0.8
},
2
00
,
egret
.
Ease
.
quadInOut
).
call
(()
=>
{
egret
.
Tween
.
get
(
this
[
"hongbao"
]).
to
({
scaleX
:
1
,
scaleY
:
1
},
1
00
,
egret
.
Ease
.
quadInOut
).
wait
(
1500
).
call
(()
=>
{
this
.
hongbaoEffect
();
});
});
...
...
@@ -201,8 +201,7 @@ class ScratchItem extends eui.ItemRenderer {
}
dataChanged
()
{
this
.
img
.
mask
=
this
.
mask
console
.
log
(
this
.
data
);
this
.
img
.
mask
=
this
.
mask
;
this
.
img
.
source
=
this
.
data
.
avatar
||
"http://yun.duiba.com.cn/db_games/default_avatar.png"
;
this
.
img
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
this
.
data
.
callFun
)
{
...
...
mock/happyclear/advert.json
View file @
b1972501
{
"code"
:
"0000000000"
,
"data"
:
{
"mapAdvert"
:
{
"enable"
:
true
,
"advertList"
:
[
{
"img"
:
"//yun.duiba.com.cn/images/201910/2iu41if4n7.png"
,
"url"
:
"https://cuxiao.m.suning.com/scms/s11dybys.html?adTypeCode=1137&adId=https%3A%2F%2Flib.suning.com%2Fweex%2Fs11dybys.js%3FpageCode%3Ds11dybys"
}
]
},
"noticeAdvert"
:
{
"enable"
:
true
,
"advertList"
:
[
{
"img"
:
"//yun.duiba.com.cn/images/201910/mgspbjuspb.png"
,
"url"
:
"http://shop.m.suning.com/sale/30001669_10269054.html"
}
]
},
"popupAdvert"
:
null
},
"success"
:
true
,
"desc"
:
"OK"
,
"timestamp"
:
1571821360634
}
\ No newline at end of file
{
"code"
:
"0000000000"
,
"data"
:{
"mapAdvert"
:{
"enable"
:
true
,
"advertList"
:[{
"img"
:
"//yun.duiba.com.cn/images/201910/2iu41if4n7.png"
,
"url"
:
"https://cuxiao.m.suning.com/scms/s11dybys.html?adTypeCode=1137&adId=https%3A%2F%2Flib.suning.com%2Fweex%2Fs11dybys.js%3FpageCode%3Ds11dybys"
}]},
"noticeAdvert"
:{
"enable"
:
true
,
"advertList"
:[{
"img"
:
"//yun.duiba.com.cn/images/201910/zqtdp6xibw.jpg"
,
"url"
:
"https://cuxiao.m.suning.com/scms/songshu.html"
}]},
"popupAdvert"
:
null
},
"success"
:
true
,
"desc"
:
"OK"
,
"timestamp"
:
1571913337116
}
\ 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