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
6268991d
Commit
6268991d
authored
Oct 29, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
2fea965a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
40 additions
and
19 deletions
+40
-19
index.html
egret/index.html
+4
-0
HuaKang_YuanTi_W5.TTF
egret/resource/assets/common/HuaKang_YuanTi_W5.TTF
+0
-0
default.res.json
egret/resource/default.res.json
+6
-1
ScratchSkin.exml
egret/resource/skins/ScratchSkin.exml
+3
-3
MapScene.ts
egret/src/mapScene/MapScene.ts
+24
-14
TurntableIcon.ts
egret/src/mapScene/icon/TurntableIcon.ts
+2
-0
scratchGetTaskInfo.json
mock/happyclear/scratchGetTaskInfo.json
+1
-1
No files found.
egret/index.html
View file @
6268991d
...
...
@@ -25,6 +25,10 @@
margin
:
0
;
height
:
100%
;
}
@font-face
{
font-family
:
"z2"
;
src
:
url("resource/assets/common/HuaKang_YuanTi_W5.TTF")
;
}
</style>
</head>
...
...
egret/resource/assets/common/HuaKang_YuanTi_W5.TTF
0 → 100644
View file @
6268991d
File added
egret/resource/default.res.json
View file @
6268991d
...
...
@@ -81,7 +81,7 @@
"name"
:
"signprize"
},
{
"keys"
:
"toast_png,share_btn2_png,share_btn1_png,prizePanelbg_png,nums2_png,nums2_fnt,nums_png,nums_fnt,lightani_png,common_yuanbao_png,common_prizelight_png,common_adbg_png,commmon_okbtn1_png,closeCommonBtn_png,btn_png,alertbg_png,朋友圈中间分享蒙层1_jpg,按钮 副本 4_png,按钮 副本 3_png,exchangebtn_png,turnnoprize再来一次2_png"
,
"keys"
:
"toast_png,share_btn2_png,share_btn1_png,prizePanelbg_png,nums2_png,nums2_fnt,nums_png,nums_fnt,lightani_png,common_yuanbao_png,common_prizelight_png,common_adbg_png,commmon_okbtn1_png,closeCommonBtn_png,btn_png,alertbg_png,朋友圈中间分享蒙层1_jpg,按钮 副本 4_png,按钮 副本 3_png,exchangebtn_png,turnnoprize再来一次2_png
,HuaKang_YuanTi_W5_TTF
"
,
"name"
:
"common"
},
{
...
...
@@ -2847,6 +2847,11 @@
"url"
:
"assets/mainScene/eyeDownRight.png"
,
"type"
:
"image"
,
"name"
:
"eyeDownRight_png"
},
{
"url"
:
"assets/common/HuaKang_YuanTi_W5.TTF"
,
"type"
:
"bin"
,
"name"
:
"HuaKang_YuanTi_W5_TTF"
}
]
}
\ No newline at end of file
egret/resource/skins/ScratchSkin.exml
View file @
6268991d
...
...
@@ -5,7 +5,7 @@
<e:Image
id=
"light2"
x=
"376"
y=
"317"
anchorOffsetX=
"356"
anchorOffsetY=
"296"
source=
"scratchbg2_png"
/>
<e:Image
id=
"light1"
x=
"376"
y=
"317"
anchorOffsetX=
"356"
anchorOffsetY=
"296"
source=
"scratchbg2_png"
/>
<e:Group
id=
"con"
y=
"58.03"
/>
<e:Label
id=
"numLabel"
text=
"共2位好友帮你刮了90.3%"
y=
"381.33"
textColor=
"0xF54500"
size=
"28"
horizontalCenter=
"0"
fontFamily=
"Lucida Family"
verticalAlign=
"middle"
textAlign=
"center
"
/>
<e:Label
id=
"numLabel"
text=
"共2位好友帮你刮了90.3%"
y=
"381.33"
textColor=
"0xF54500"
size=
"28"
horizontalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
fontFamily=
"z2
"
/>
<e:Image
y=
"414"
horizontalCenter=
"0"
source=
"scratch_card_bg_png"
/>
<e:Image
id=
"prizeImg"
y=
"435"
source=
""
width=
"510"
height=
"228"
horizontalCenter=
"0"
/>
<e:Image
id=
"scratch_progress"
y=
"414"
horizontalCenter=
"0"
x=
"10"
source=
"scratch_card_90_png"
/>
...
...
@@ -26,7 +26,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Label
id=
"cutTimeLabel"
text=
"将在23:43:21后失效"
y=
"895.33"
size=
"28"
textColor=
"0xffffff"
horizontalCenter=
"0.5"
/>
<e:Label
id=
"cutTimeLabel"
text=
"将在23:43:21后失效"
y=
"895.33"
size=
"28"
textColor=
"0xffffff"
horizontalCenter=
"0.5"
fontFamily=
"z2"
/>
<e:Label
text=
"帮刮\n记录"
y=
"805"
size=
"28"
textColor=
"0xFFFFFF"
horizontalCenter=
"-248"
/>
<e:Scroller
width=
"487"
height=
"90"
y=
"783"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
horizontalCenter=
"32.5"
>
<e:Group
anchorOffsetX=
"0"
y=
"2"
>
...
...
@@ -49,7 +49,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=
"2"
horizontalCenter=
"0.5"
bold=
"true"
verticalAlign=
"middle"
textAlign=
"center"
/>
<e:Label
id=
"progressLabel"
text=
"仅剩90.7%"
size=
"18"
verticalCenter=
"2"
horizontalCenter=
"0.5"
bold=
"true"
verticalAlign=
"middle"
textAlign=
"center"
fontFamily=
"z2"
/>
</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 @
6268991d
...
...
@@ -48,23 +48,33 @@ export default class MapScene extends Scene {
if
(
doHelpFlag
)
{
return
;
}
let
callBack
=
(
success
,
res
)
=>
{
doHelpFlag
=
true
;
switch
(
true
)
{
case
(
res
.
code
==
"400017"
):
showToast
(
"您不是新用户呢~"
);
break
;
case
(
res
.
code
==
"0000022"
):
showToast
(
"不可以给自己助力哦~"
);
break
;
case
(
res
.
code
==
"0200202"
):
showToast
(
"已经给好友助力过了哦~"
);
break
;
default
:
break
;
}
if
(
!
success
)
{
return
;
}
showToast
(
"助力成功"
);
NetManager
.
ins
.
showLog
(
getlogItem
(
36
));
};
if
(
code
.
indexOf
(
"12345678"
)
==
-
1
){
// 邀请有礼
NetManager
.
ins
.
doHelp
(
callBack
,
code
,
dojoin
.
data
);
NetManager
.
ins
.
doHelp
((
success
,
res
)
=>
{
doHelpFlag
=
true
;
switch
(
true
)
{
case
(
res
.
code
==
"400017"
):
showToast
(
"您不是新用户呢~"
);
break
;
case
(
res
.
code
==
"0000022"
):
showToast
(
"不可以给自己助力哦~"
);
break
;
case
(
res
.
code
==
"0200202"
):
showToast
(
"已经给好友助力过了哦~"
);
break
;
default
:
break
;
}
if
(
!
success
)
{
return
;
}
showToast
(
"助力成功"
);
NetManager
.
ins
.
showLog
(
getlogItem
(
36
));
},
code
,
dojoin
.
data
);
}
else
{
// 刮刮卡
let
_code
=
code
.
slice
(
8
);
NetManager
.
ins
.
scratchDoHelp
(
callBack
,
_code
);
NetManager
.
ins
.
scratchDoHelp
((
success
,
res
)
=>
{
doHelpFlag
=
true
;
switch
(
true
)
{
case
(
res
.
code
==
"0000024"
):
showToast
(
"今日刮卡次数已达到上线限哦~"
);
break
;
case
(
res
.
code
==
"0000022"
):
showToast
(
"不可以给自己刮哦~"
);
break
;
case
(
res
.
code
==
"0000023"
):
showToast
(
"已经给好友刮过了哦~"
);
break
;
default
:
break
;
}
if
(
!
success
)
{
return
;
}
showToast
(
"帮刮成功!"
);
NetManager
.
ins
.
showLog
(
getlogItem
(
36
));
},
_code
);
}
}
...
...
egret/src/mapScene/icon/TurntableIcon.ts
View file @
6268991d
...
...
@@ -26,8 +26,10 @@ export default class TurntableIcon extends IconBase {
NetManager
.
ins
.
clickLog
(
getlogItem
(
43
));
NetManager
.
ins
.
hc_turnableBaseInfo
((
success
,
res
)
=>
{
if
(
!
success
){
this
.
visible
=
false
;
return
;
}
this
.
visible
=
true
;
let
data
=
res
.
data
;
if
(
data
.
remainTimes
>
0
||
(
getHomeData
().
wealth
>
data
.
nextTimeNeedCoin
))
{
this
.
tipsVisible
=
true
;
...
...
mock/happyclear/scratchGetTaskInfo.json
View file @
6268991d
...
...
@@ -5,7 +5,7 @@
"timestamp"
:
1572318933388
,
"data"
:
{
"scratchCardTaskId"
:
1
,
"taskStatus"
:
2
,
"taskStatus"
:
1
,
"prizeImage"
:
"//yun.dui88.com/images/201910/e6pmpk2pne.png"
,
"currentTime"
:
1572318933366
,
"endTime"
:
1572358710000
,
...
...
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