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
a00b52d0
Commit
a00b52d0
authored
Sep 30, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ad3ca1b5
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
507 additions
and
30 deletions
+507
-30
index.html
egret/index.html
+5
-5
PrizePanel.ts
egret/libs/new_wx/components/PrizePanel.ts
+1
-1
map.tmproject
egret/resource/TextureMerger/map.tmproject
+1
-1
sign.tmproject
egret/resource/TextureMerger/sign.tmproject
+1
-1
map_signicon.png
egret/resource/assets/map/map_signicon.png
+0
-0
sign_quan15.png
egret/resource/assets/sign/sign_quan15.png
+0
-0
sign_quan38.png
egret/resource/assets/sign/sign_quan38.png
+0
-0
sign_quan58.png
egret/resource/assets/sign/sign_quan58.png
+0
-0
sign_quan88.png
egret/resource/assets/sign/sign_quan88.png
+0
-0
signicon_quan1.png
egret/resource/assets/sign/signicon_quan1.png
+0
-0
signicon_quan2.png
egret/resource/assets/sign/signicon_quan2.png
+0
-0
default.res.json
egret/resource/default.res.json
+21
-6
default.thm.json
egret/resource/default.thm.json
+2
-0
MapSkin.exml
egret/resource/skins/MapSkin.exml
+17
-1
SignItemSkin.exml
egret/resource/skins/SignItemSkin.exml
+3
-2
SignSkin.exml
egret/resource/skins/SignSkin.exml
+1
-1
TaskItemSkin.exml
egret/resource/skins/TaskItemSkin.exml
+3
-0
TaskSkin.exml
egret/resource/skins/TaskSkin.exml
+3
-0
MapScene.ts
egret/src/mapScene/MapScene.ts
+16
-2
BoxPanel.ts
egret/src/panels/BoxPanel.ts
+1
-1
SignItem.ts
egret/src/panels/SignItem.ts
+2
-1
SignPrizePanel.ts
egret/src/panels/SignPrizePanel.ts
+1
-1
TaskItemRenderer.ts
egret/src/panels/TaskItemRenderer.ts
+37
-0
TaskPanel.ts
egret/src/panels/TaskPanel.ts
+37
-0
home.json
mock/happyclear/home.json
+355
-7
No files found.
egret/index.html
View file @
a00b52d0
...
...
@@ -49,12 +49,12 @@
<img
id=
"pic"
style=
"width:100%;position: absolute;z-index: 999;display: none;"
/>
<script>
window
[
'signconfigs'
]
=
[
{
nums
:
'0.15元'
,
type
:
'quan15'
},
{
nums
:
'*1'
,
type
:
'hammer'
},
{
nums
:
'0.38元'
,
type
:
'quan38'
},
{
nums
:
'1'
,
type
:
'hammer'
},
{
nums
:
'50'
,
type
:
'money'
},
{
nums
:
'1'
,
type
:
'boom'
},
{
nums
:
'0.8元'
,
type
:
'quan80'
},
{
nums
:
'1'
,
type
:
'steps'
},
{
nums
:
'*1'
,
type
:
'boom'
},
{
nums
:
'0.58元'
,
type
:
'quan58'
},
{
nums
:
'*1'
,
type
:
'steps'
},
{
nums
:
'随机奖励'
,
type
:
'random'
}
];
// localStorage.clear();
...
...
egret/libs/new_wx/components/PrizePanel.ts
View file @
a00b52d0
...
...
@@ -19,7 +19,7 @@ export default class PrizePanel extends Panel {
setGray
(
this
[
'picc'
]);
this
.
_level
=
parseInt
(
data
.
level
+
''
);
const
itemid
=
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
).
lottery
.
itemId
;
this
.
data
.
img
=
`http://yun.duiba.com.cn/db_games/09
27
/
${
itemid
}
.png`
;
this
.
data
.
img
=
`http://yun.duiba.com.cn/db_games/09
30
/
${
itemid
}
.png`
;
this
[
'shareBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
15
));
...
...
egret/resource/TextureMerger/map.tmproject
View file @
a00b52d0
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"map","version":5,"files":["../assets/map/progress2.png","../assets/map/progress1.png","../assets/map/icon.png","../assets/map/animal1.png","../assets/map/元宝bg.png","../assets/map/有星星.png","../assets/map/音乐.png","../assets/map/星星bg.png","../assets/map/星星.png","../assets/map/无星星.png","../assets/map/问题.png","../assets/map/退出.png","../assets/map/狮子.png","../assets/map/声音.png","../assets/map/设置bg.png","../assets/map/设置.png","../assets/map/关闭 拷贝.png","../assets/map/道具.png","../assets/map/宝箱btn.png","../assets/map/宝箱bg.png","../assets/map/宝箱.png","../assets/map/宝箱3.png","../assets/map/宝箱2.png","../assets/map/宝箱1.png","../assets/map/iconbg.png","../assets/map/光 副本 4.png","../assets/map/音乐关闭.png","../assets/map/声音关闭.png","../assets/map/recordbtn.png","../assets/map/msgTri.png","../assets/map/guideOver.png","../assets/map/guideLove.png","../assets/map/guideBox.png","../assets/map/guideLevel.png","../assets/map/guideMoney.png","../assets/map/lionMsgBg.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"map","version":5,"files":["../assets/map/progress2.png","../assets/map/progress1.png","../assets/map/icon.png","../assets/map/animal1.png","../assets/map/元宝bg.png","../assets/map/有星星.png","../assets/map/音乐.png","../assets/map/星星bg.png","../assets/map/星星.png","../assets/map/无星星.png","../assets/map/问题.png","../assets/map/退出.png","../assets/map/狮子.png","../assets/map/声音.png","../assets/map/设置bg.png","../assets/map/设置.png","../assets/map/关闭 拷贝.png","../assets/map/道具.png","../assets/map/宝箱btn.png","../assets/map/宝箱bg.png","../assets/map/宝箱.png","../assets/map/宝箱3.png","../assets/map/宝箱2.png","../assets/map/宝箱1.png","../assets/map/iconbg.png","../assets/map/光 副本 4.png","../assets/map/音乐关闭.png","../assets/map/声音关闭.png","../assets/map/recordbtn.png","../assets/map/msgTri.png","../assets/map/guideOver.png","../assets/map/guideLove.png","../assets/map/guideBox.png","../assets/map/guideLevel.png","../assets/map/guideMoney.png","../assets/map/lionMsgBg.png","../assets/map/map_signicon.png"]}
\ No newline at end of file
egret/resource/TextureMerger/sign.tmproject
View file @
a00b52d0
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"sign","version":5,"files":["../assets/sign/signitem.png","../assets/sign/signicon5.png","../assets/sign/signicon4.png","../assets/sign/signicon3.png","../assets/sign/signicon2.png","../assets/sign/signbtn4.png","../assets/sign/signbtn3.png","../assets/sign/signbtn2.png","../assets/sign/signbtn1.png","../assets/sign/signbg.png","../assets/sign/sign_line2.png","../assets/sign/sign_line.png","../assets/sign/sign_light.png","../assets/sign/sign_icon1.png","../assets/sign/signicon6.png","../assets/sign/signicon_blood.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"sign","version":5,"files":["../assets/sign/signitem.png","../assets/sign/signicon5.png","../assets/sign/signicon4.png","../assets/sign/signicon3.png","../assets/sign/signicon2.png","../assets/sign/signbtn4.png","../assets/sign/signbtn3.png","../assets/sign/signbtn2.png","../assets/sign/signbtn1.png","../assets/sign/signbg.png","../assets/sign/sign_line2.png","../assets/sign/sign_line.png","../assets/sign/sign_light.png","../assets/sign/sign_icon1.png","../assets/sign/signicon6.png","../assets/sign/signicon_blood.png","../assets/sign/sign_quan88.png","../assets/sign/sign_quan58.png","../assets/sign/sign_quan38.png","../assets/sign/sign_quan15.png"]}
\ No newline at end of file
egret/resource/assets/map/map_signicon.png
0 → 100644
View file @
a00b52d0
17.5 KB
egret/resource/assets/sign/sign_quan15.png
0 → 100644
View file @
a00b52d0
8.02 KB
egret/resource/assets/sign/sign_quan38.png
0 → 100644
View file @
a00b52d0
8.24 KB
egret/resource/assets/sign/sign_quan58.png
0 → 100644
View file @
a00b52d0
8.33 KB
egret/resource/assets/sign/sign_quan88.png
0 → 100644
View file @
a00b52d0
8.28 KB
egret/resource/assets/sign/signicon_quan1.png
deleted
100644 → 0
View file @
ad3ca1b5
10.9 KB
egret/resource/assets/sign/signicon_quan2.png
deleted
100644 → 0
View file @
ad3ca1b5
123 KB
egret/resource/default.res.json
View file @
a00b52d0
...
...
@@ -25,7 +25,7 @@
"name"
:
"buy3"
},
{
"keys"
:
"progress2_png,progress1_png,map3_jpg,map2_jpg,map1_jpg,icon_png,animal1_png,元宝bg_png,有星星_png,音乐_png,星星bg_png,星星_png,无星星_png,问题_png,退出_png,狮子_png,声音_png,设置bg_png,设置_png,关闭 拷贝_png,道具_png,宝箱btn_png,宝箱bg_png,宝箱_png,宝箱3_png,宝箱2_png,宝箱1_png,iconbg_png,光 副本 4_png,音乐关闭_png,声音关闭_png,recordbtn_png,msgTri_png,guideOver_png,guideLove_png,guideBox_png,guideLevel_png,guideMoney_png,lionMsgBg_png"
,
"keys"
:
"progress2_png,progress1_png,map3_jpg,map2_jpg,map1_jpg,icon_png,animal1_png,元宝bg_png,有星星_png,音乐_png,星星bg_png,星星_png,无星星_png,问题_png,退出_png,狮子_png,声音_png,设置bg_png,设置_png,关闭 拷贝_png,道具_png,宝箱btn_png,宝箱bg_png,宝箱_png,宝箱3_png,宝箱2_png,宝箱1_png,iconbg_png,光 副本 4_png,音乐关闭_png,声音关闭_png,recordbtn_png,msgTri_png,guideOver_png,guideLove_png,guideBox_png,guideLevel_png,guideMoney_png,lionMsgBg_png
,map_signicon_png
"
,
"name"
:
"map"
},
{
...
...
@@ -81,7 +81,7 @@
"name"
:
"exchange"
},
{
"keys"
:
"signitem_png,signicon5_png,signicon4_png,signicon3_png,signicon2_png,signbtn4_png,signbtn3_png,signbtn2_png,signbtn1_png,signbg_png,sign_line2_png,sign_line_png,sign_light_png,sign_icon1_png,signicon6_png,signicon_blood_png,sign
icon_quan2_png,signicon_quan1
_png"
,
"keys"
:
"signitem_png,signicon5_png,signicon4_png,signicon3_png,signicon2_png,signbtn4_png,signbtn3_png,signbtn2_png,signbtn1_png,signbg_png,sign_line2_png,sign_line_png,sign_light_png,sign_icon1_png,signicon6_png,signicon_blood_png,sign
_quan88_png,sign_quan58_png,sign_quan38_png,sign_quan15
_png"
,
"name"
:
"sign"
},
{
...
...
@@ -1941,14 +1941,29 @@
"name"
:
"exLighting14_png"
},
{
"url"
:
"assets/
sign/signicon_quan1
.png"
,
"url"
:
"assets/
map/map_signicon
.png"
,
"type"
:
"image"
,
"name"
:
"
signicon_quan1
_png"
"name"
:
"
map_signicon
_png"
},
{
"url"
:
"assets/sign/sign
icon_quan2
.png"
,
"url"
:
"assets/sign/sign
_quan58
.png"
,
"type"
:
"image"
,
"name"
:
"signicon_quan2_png"
"name"
:
"sign_quan58_png"
},
{
"url"
:
"assets/sign/sign_quan88.png"
,
"type"
:
"image"
,
"name"
:
"sign_quan88_png"
},
{
"url"
:
"assets/sign/sign_quan38.png"
,
"type"
:
"image"
,
"name"
:
"sign_quan38_png"
},
{
"url"
:
"assets/sign/sign_quan15.png"
,
"type"
:
"image"
,
"name"
:
"sign_quan15_png"
}
]
}
\ No newline at end of file
egret/resource/default.thm.json
View file @
a00b52d0
...
...
@@ -40,6 +40,8 @@
"resource/skins/StartPanelSkin.exml"
,
"resource/skins/StartSkin.exml"
,
"resource/skins/TargetItemSkin.exml"
,
"resource/skins/TaskItemSkin.exml"
,
"resource/skins/TaskSkin.exml"
,
"resource/skins/ToastSkin.exml"
,
"resource/skins/VScrollBarSkin.exml"
],
...
...
egret/resource/skins/MapSkin.exml
View file @
a00b52d0
<?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:Rect
id=
"rectbg"
width=
"750"
height=
"1206"
x=
"0"
y=
"
0
"
/>
<e:Rect
id=
"rectbg"
width=
"750"
height=
"1206"
x=
"0"
y=
"
-2
"
/>
<e:Scroller
id=
"scroll"
width=
"750"
height=
"1624"
x=
"0"
y=
"0"
scrollPolicyH=
"off"
scrollPolicyV=
"on"
locked=
"true"
>
<e:Group
id=
"scrollGroup"
>
</e:Group>
...
...
@@ -59,6 +59,22 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Button
id=
"signBtn"
label=
""
x=
"605.08"
y=
"452.41"
scaleX=
"0.9"
scaleY=
"0.9"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"map_signicon_png"
source.down=
"map_signicon_png"
source.disabled=
"recordbtn_png"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:skinName>
</e:Button>
<e:Button
id=
"taskBtn"
label=
""
x=
"31.7"
y=
"305.41"
visible=
"false"
>
<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"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:skinName>
</e:Button>
<e:Group
x=
"30"
scaleX=
"1.4"
scaleY=
"1.4"
bottom=
"23"
>
<e:Group
id=
"settingGroup"
x=
"2"
y=
"6.08"
visible=
"false"
>
<e:Image
id=
"settingbg"
source=
"设置bg_png"
y=
"0"
x=
"0"
scale9Grid=
"9,84,54,76"
height=
"231"
/>
...
...
egret/resource/skins/SignItemSkin.exml
View file @
a00b52d0
...
...
@@ -13,8 +13,9 @@
<e:Image
id=
"steps"
source=
"signicon5_png"
x=
"104"
y=
"57"
visible=
"false"
/>
<e:Image
id=
"blood"
x=
"98.04"
y=
"60.35"
source=
"signicon_blood_png"
visible=
"false"
/>
<e:Image
id=
"random"
x=
"98.73"
y=
"50.4"
source=
"signicon6_png"
visible=
"false"
/>
<e:Image
id=
"quan80"
x=
"95.42"
y=
"49.76"
source=
"signicon_quan1_png"
anchorOffsetX=
"0"
width=
"170"
anchorOffsetY=
"0"
height=
"79.34"
visible=
"false"
/>
<e:Image
id=
"quan38"
x=
"95.42"
y=
"49.76"
anchorOffsetX=
"0"
width=
"170"
anchorOffsetY=
"0"
height=
"79.34"
source=
"signicon_quan2_png"
visible=
"false"
/>
<e:Image
id=
"quan15"
x=
"95.42"
y=
"56.76"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
height=
"79.34"
source=
"sign_quan15_png"
visible=
"false"
/>
<e:Image
id=
"quan38"
x=
"95.42"
y=
"56.76"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
source=
"sign_quan38_png"
visible=
"false"
/>
<e:Image
id=
"quan58"
x=
"99.42"
y=
"56.76"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
source=
"sign_quan58_png"
visible=
"false"
/>
<e:Button
id=
"btn1"
label=
""
x=
"364"
y=
"65"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
...
...
egret/resource/skins/SignSkin.exml
View file @
a00b52d0
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"SignSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
source=
"signbg_png"
y=
"0"
horizontalCenter=
"0"
/>
<e:Button
id=
"closeBtn"
label=
""
x=
"630"
y=
"188"
visible=
"false"
>
<e:Button
id=
"closeBtn"
label=
""
x=
"630"
y=
"188"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"closeCommonBtn_png"
source.down=
"closeCommonBtn_png"
source.disabled=
"closeCommonBtn_png"
/>
...
...
egret/resource/skins/TaskItemSkin.exml
0 → 100644
View file @
a00b52d0
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"TaskItemSkin"
width=
"400"
height=
"300"
xmlns:e=
"http://ns.egret.com/eui"
>
</e:Skin>
\ No newline at end of file
egret/resource/skins/TaskSkin.exml
0 → 100644
View file @
a00b52d0
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"TaskSkin"
width=
"400"
height=
"300"
xmlns:e=
"http://ns.egret.com/eui"
>
</e:Skin>
\ No newline at end of file
egret/src/mapScene/MapScene.ts
View file @
a00b52d0
...
...
@@ -40,13 +40,18 @@ export default class MapScene extends Scene {
stopGamebg
();
NetManager
.
ins
.
getSignInfo
(()
=>
{
const
date
=
new
Date
();
date
.
setHours
(
0
,
0
,
0
,
0
);
const
nowTimerStr
=
date
.
getTime
()
+
''
;
const
oldTimerStr
=
localStorage
.
getItem
(
'nowTimerStr'
+
window
[
'CFG'
].
consumerId
);
if
(
!
readCache
()
&&
getHomeData
().
levels
.
length
<=
0
)
{
//引导
const
guide
=
new
GuideCon
(()
=>
{
const
{
signInfoVO
}
=
DataManager
.
ins
.
getData
(
'getSignInfo'
);
if
(
signInfoVO
.
continueDay
>=
7
)
return
;
if
(
signInfoVO
.
todaySigned
==
0
)
{
if
(
signInfoVO
.
todaySigned
==
0
&&
oldTimerStr
!=
nowTimerStr
)
{
PanelCtrl
.
instance
.
show
(
'sign'
);
localStorage
.
setItem
(
'nowTimerStr'
+
window
[
'CFG'
].
consumerId
,
nowTimerStr
);
}
});
...
...
@@ -56,8 +61,9 @@ export default class MapScene extends Scene {
}
else
{
//不用引导
const
{
signInfoVO
}
=
DataManager
.
ins
.
getData
(
'getSignInfo'
);
if
(
signInfoVO
.
continueDay
>=
7
)
return
;
if
(
signInfoVO
.
todaySigned
==
0
)
{
if
(
signInfoVO
.
todaySigned
==
0
&&
oldTimerStr
!=
nowTimerStr
)
{
PanelCtrl
.
instance
.
show
(
'sign'
);
localStorage
.
setItem
(
'nowTimerStr'
+
window
[
'CFG'
].
consumerId
,
nowTimerStr
);
}
}
...
...
@@ -301,9 +307,17 @@ export default class MapScene extends Scene {
}
this
[
'bloodTxt'
].
text
=
`
${
data
.
remainEnargy
}
`
;
}
onTap_taskBtn
(){
console
.
log
(
'onTap_taskBtn'
)
}
onTap_signBtn
(){
PanelCtrl
.
instance
.
show
(
'sign'
);
}
protected
initEvents
()
{
// this['goldBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_goldBtn, this)
this
[
'taskBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_taskBtn
,
this
)
this
[
'signBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_signBtn
,
this
)
this
[
'bloodBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_bloodBtn
,
this
)
this
[
'settingBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
toggleSettings
,
this
)
this
[
'shopBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_shopBtn
,
this
)
...
...
egret/src/panels/BoxPanel.ts
View file @
a00b52d0
...
...
@@ -14,7 +14,7 @@ export default class BoxPanel extends Panel {
// this.data.img = DataManager.ins.getData('getPlugOrderStatus').lottery.imgurl;
const
itemid
=
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
).
lottery
.
itemId
;
this
.
data
.
img
=
`http://yun.duiba.com.cn/db_games/09
27
/
${
itemid
}
.png`
;
this
.
data
.
img
=
`http://yun.duiba.com.cn/db_games/09
30
/
${
itemid
}
.png`
;
}
showlog
()
{
NetManager
.
ins
.
showLog
(
getlogItem
(
17
));
...
...
egret/src/panels/SignItem.ts
View file @
a00b52d0
...
...
@@ -15,7 +15,8 @@ export default class SignItem extends eui.ItemRenderer {
this
[
'steps'
].
visible
=
false
;
this
[
'blood'
].
visible
=
false
;
this
[
'random'
].
visible
=
false
;
this
[
'quan80'
].
visible
=
false
;
this
[
'quan15'
].
visible
=
false
;
this
[
'quan58'
].
visible
=
false
;
this
[
'quan38'
].
visible
=
false
;
this
[
'btn1'
].
visible
=
false
;
...
...
egret/src/panels/SignPrizePanel.ts
View file @
a00b52d0
...
...
@@ -17,7 +17,7 @@ export default class SignPrizePanel extends Panel {
this
[
'numsgroup'
].
visible
=
false
;
}
else
{
if
(
customInfo
.
itemId
)
this
[
'img'
].
source
=
`http://yun.duiba.com.cn/db_games/09
27
/
${
customInfo
.
itemId
}
.png`
;
this
[
'img'
].
source
=
`http://yun.duiba.com.cn/db_games/09
30
/
${
customInfo
.
itemId
}
.png`
;
}
this
[
'nums'
].
text
=
'x'
+
customInfo
.
prizeCount
;
...
...
egret/src/panels/TaskItemRenderer.ts
0 → 100644
View file @
a00b52d0
import
Panel
from
"../../libs/new_wx/components/Panel"
;
import
getHomeData
,
{
BLOOD_NUMS_MAX
}
from
"../getHomeData"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
SceneCtrl
from
"../../libs/new_wx/ctrls/sceneCtrl"
;
import
{
showToast
}
from
"../../libs/new_wx/ctrls/toastCtrl"
;
import
{
getlogItem
}
from
"../Main"
;
import
wait
from
"../../libs/new_tc/wait"
;
import
{
showShare
}
from
"../shareCtrl"
;
import
{
iswx
}
from
"../iswx"
;
import
getShowOffPic
from
"../getShowOffPic"
;
import
getSharePic
,
{
getShareUrl
}
from
"../getSharePic"
;
import
CountDown
from
"../mapScene/CountDown"
;
import
{
updateMainTimer
}
from
"../../libs/new_wx/MainBase"
;
export
default
class
TaskPanel
extends
Panel
{
start
(
data
)
{
super
.
start
();
this
.
showlog
();
}
showlog
(){
// NetManager.ins.showLog(getlogItem(3));
// NetManager.ins.showLog(getlogItem(4));
}
initEvents
()
{
super
.
initEvents
();
this
[
'inviteBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTapInvite
,
this
)
}
onTapInvite
()
{
}
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
]]
}
get
skinKey
()
{
return
'Task'
}
}
\ No newline at end of file
egret/src/panels/TaskPanel.ts
0 → 100644
View file @
a00b52d0
import
Panel
from
"../../libs/new_wx/components/Panel"
;
import
getHomeData
,
{
BLOOD_NUMS_MAX
}
from
"../getHomeData"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
SceneCtrl
from
"../../libs/new_wx/ctrls/sceneCtrl"
;
import
{
showToast
}
from
"../../libs/new_wx/ctrls/toastCtrl"
;
import
{
getlogItem
}
from
"../Main"
;
import
wait
from
"../../libs/new_tc/wait"
;
import
{
showShare
}
from
"../shareCtrl"
;
import
{
iswx
}
from
"../iswx"
;
import
getShowOffPic
from
"../getShowOffPic"
;
import
getSharePic
,
{
getShareUrl
}
from
"../getSharePic"
;
import
CountDown
from
"../mapScene/CountDown"
;
import
{
updateMainTimer
}
from
"../../libs/new_wx/MainBase"
;
export
default
class
TaskPanel
extends
Panel
{
start
(
data
)
{
super
.
start
();
this
.
showlog
();
}
showlog
(){
// NetManager.ins.showLog(getlogItem(3));
// NetManager.ins.showLog(getlogItem(4));
}
initEvents
()
{
super
.
initEvents
();
this
[
'inviteBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTapInvite
,
this
)
}
onTapInvite
()
{
}
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
]]
}
get
skinKey
()
{
return
'Task'
}
}
\ No newline at end of file
mock/happyclear/home.json
View file @
a00b52d0
...
...
@@ -2,11 +2,361 @@
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
156
9721913840
,
"timestamp"
:
156
6885811031
,
"data"
:
{
"wealth"
:
10835
,
"totalStars"
:
1
99
,
"wealth"
:
7960
,
"totalStars"
:
1
45
,
"levels"
:
[
{
"levelNum"
:
1
,
"maxScore"
:
36320
,
"stars"
:
3
},
{
"levelNum"
:
2
,
"maxScore"
:
18680
,
"stars"
:
3
},
{
"levelNum"
:
3
,
"maxScore"
:
19530
,
"stars"
:
3
},
{
"levelNum"
:
4
,
"maxScore"
:
20230
,
"stars"
:
3
},
{
"levelNum"
:
5
,
"maxScore"
:
10710
,
"stars"
:
3
},
{
"levelNum"
:
6
,
"maxScore"
:
42580
,
"stars"
:
3
},
{
"levelNum"
:
7
,
"maxScore"
:
23700
,
"stars"
:
3
},
{
"levelNum"
:
8
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
9
,
"maxScore"
:
70330
,
"stars"
:
3
},
{
"levelNum"
:
10
,
"maxScore"
:
27710
,
"stars"
:
3
},
{
"levelNum"
:
11
,
"maxScore"
:
19410
,
"stars"
:
3
},
{
"levelNum"
:
12
,
"maxScore"
:
23650
,
"stars"
:
3
},
{
"levelNum"
:
13
,
"maxScore"
:
34150
,
"stars"
:
1
},
{
"levelNum"
:
14
,
"maxScore"
:
37110
,
"stars"
:
1
},
{
"levelNum"
:
15
,
"maxScore"
:
99999
,
"stars"
:
2
},
{
"levelNum"
:
16
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
17
,
"maxScore"
:
42420
,
"stars"
:
3
},
{
"levelNum"
:
18
,
"maxScore"
:
99999
,
"stars"
:
2
},
{
"levelNum"
:
19
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
20
,
"maxScore"
:
47520
,
"stars"
:
3
},
{
"levelNum"
:
21
,
"maxScore"
:
14080
,
"stars"
:
3
},
{
"levelNum"
:
22
,
"maxScore"
:
75790
,
"stars"
:
1
},
{
"levelNum"
:
23
,
"maxScore"
:
50340
,
"stars"
:
3
},
{
"levelNum"
:
24
,
"maxScore"
:
83590
,
"stars"
:
3
},
{
"levelNum"
:
25
,
"maxScore"
:
45570
,
"stars"
:
3
},
{
"levelNum"
:
26
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
27
,
"maxScore"
:
44540
,
"stars"
:
2
},
{
"levelNum"
:
28
,
"maxScore"
:
112230
,
"stars"
:
3
},
{
"levelNum"
:
29
,
"maxScore"
:
67810
,
"stars"
:
3
},
{
"levelNum"
:
30
,
"maxScore"
:
43530
,
"stars"
:
2
},
{
"levelNum"
:
31
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
32
,
"maxScore"
:
18450
,
"stars"
:
1
},
{
"levelNum"
:
33
,
"maxScore"
:
28560
,
"stars"
:
1
},
{
"levelNum"
:
34
,
"maxScore"
:
99999
,
"stars"
:
1
},
{
"levelNum"
:
35
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
36
,
"maxScore"
:
14860
,
"stars"
:
0
},
{
"levelNum"
:
37
,
"maxScore"
:
22300
,
"stars"
:
0
},
{
"levelNum"
:
38
,
"maxScore"
:
43380
,
"stars"
:
3
},
{
"levelNum"
:
39
,
"maxScore"
:
27610
,
"stars"
:
0
},
{
"levelNum"
:
40
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
41
,
"maxScore"
:
30890
,
"stars"
:
2
},
{
"levelNum"
:
42
,
"maxScore"
:
15660
,
"stars"
:
3
},
{
"levelNum"
:
43
,
"maxScore"
:
48170
,
"stars"
:
1
},
{
"levelNum"
:
44
,
"maxScore"
:
18080
,
"stars"
:
1
},
{
"levelNum"
:
45
,
"maxScore"
:
29170
,
"stars"
:
1
},
{
"levelNum"
:
46
,
"maxScore"
:
37980
,
"stars"
:
1
},
{
"levelNum"
:
47
,
"maxScore"
:
37800
,
"stars"
:
3
},
{
"levelNum"
:
48
,
"maxScore"
:
19950
,
"stars"
:
1
},
{
"levelNum"
:
49
,
"maxScore"
:
36190
,
"stars"
:
0
},
{
"levelNum"
:
50
,
"maxScore"
:
42610
,
"stars"
:
2
},
{
"levelNum"
:
51
,
"maxScore"
:
34300
,
"stars"
:
1
},
{
"levelNum"
:
52
,
"maxScore"
:
31650
,
"stars"
:
3
},
{
"levelNum"
:
53
,
"maxScore"
:
5140
,
"stars"
:
0
},
{
"levelNum"
:
54
,
"maxScore"
:
49630
,
"stars"
:
3
},
{
"levelNum"
:
55
,
"maxScore"
:
99999
,
"stars"
:
1
},
{
"levelNum"
:
56
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
57
,
"maxScore"
:
34090
,
"stars"
:
2
},
{
"levelNum"
:
58
,
"maxScore"
:
13030
,
"stars"
:
3
},
{
"levelNum"
:
59
,
"maxScore"
:
72760
,
"stars"
:
1
},
{
"levelNum"
:
60
,
"maxScore"
:
16250
,
"stars"
:
1
},
{
"levelNum"
:
61
,
"maxScore"
:
81870
,
"stars"
:
3
},
{
"levelNum"
:
62
,
"maxScore"
:
36110
,
"stars"
:
1
},
{
"levelNum"
:
63
,
"maxScore"
:
28240
,
"stars"
:
3
},
{
"levelNum"
:
64
,
"maxScore"
:
23910
,
"stars"
:
1
},
{
"levelNum"
:
65
,
"maxScore"
:
47990
,
"stars"
:
1
},
{
"levelNum"
:
66
,
"maxScore"
:
60740
,
"stars"
:
3
},
{
"levelNum"
:
67
,
"maxScore"
:
33670
,
"stars"
:
1
},
{
"levelNum"
:
68
,
"maxScore"
:
25370
,
"stars"
:
3
},
{
"levelNum"
:
69
,
"maxScore"
:
11650
,
"stars"
:
0
},
{
"levelNum"
:
70
,
"maxScore"
:
15910
,
"stars"
:
1
}
],
"remainProp"
:
[
{
...
...
@@ -22,11 +372,9 @@
"num"
:
0
}
],
"remainEnargy"
:
5
,
"remainEnargy"
:
9979
,
"askForEnergy"
:
false
,
"canReceiveTreasureBoxNum"
:
0
,
"nextRangeStarsNum"
:
210
,
"isGetAllTreasureBox"
:
false
,
"refectionCountdown"
:
0
"nextRangeStarsNum"
:
150
}
}
\ 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