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
02d91a2e
Commit
02d91a2e
authored
Nov 05, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
aa72728f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
25 deletions
+36
-25
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+1
-1
HbPrizeSkin.exml
egret/resource/skins/HbPrizeSkin.exml
+2
-2
HbCutTime.ts
egret/src/panels/HongbaoRain/HbCutTime.ts
+11
-3
HbGame.ts
egret/src/panels/HongbaoRain/HbGame.ts
+2
-2
hbRainDoJoin.json
mock/happyclear/hbRainDoJoin.json
+20
-17
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
02d91a2e
...
...
@@ -2211,7 +2211,7 @@ export class NetManager extends ABNetManager {
const
net
:
INetData
=
{
name
:
NetName
.
HBRAIN_BASEINFO
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/redRain/doJoin'
,
type
:
'
ge
t'
,
type
:
'
pos
t'
,
dataType
:
'json'
,
hideMsg
:
true
,
param
:
{
...
...
egret/resource/skins/HbPrizeSkin.exml
View file @
02d91a2e
...
...
@@ -6,8 +6,8 @@
<e:Image
id=
"money"
source=
"signprize元宝_png"
y=
"423.2"
horizontalCenter=
"1"
scaleX=
"0.8"
scaleY=
"0.8"
visible=
"false"
/>
<e:Image
id=
"blood"
source=
"singprize体力_png"
y=
"385.8"
horizontalCenter=
"1"
visible=
"false"
/>
<e:Group
id=
"numsgroup"
x=
"397.38"
y=
"431.4"
visible=
"false"
>
<e:Image
id=
"numsbg
0
"
source=
"signprize_numsbg_png"
x=
"0"
y=
"0"
/>
<e:Label
id=
"propnums
0
"
text=
"X8"
size=
"22"
horizontalCenter=
"0"
verticalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
/>
<e:Image
id=
"numsbg"
source=
"signprize_numsbg_png"
x=
"0"
y=
"0"
/>
<e:Label
id=
"propnums"
text=
"X8"
size=
"22"
horizontalCenter=
"0"
verticalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
/>
</e:Group>
<e:Image
id=
"prizeImg"
y=
"422.5"
source=
""
horizontalCenter=
"0"
visible=
"false"
/>
<e:Button
id=
"closeBtn"
label=
""
x=
"597"
y=
"284.33"
>
...
...
egret/src/panels/HongbaoRain/HbCutTime.ts
View file @
02d91a2e
...
...
@@ -36,11 +36,11 @@ export default class HbCutTime extends Panel {
return
;
}
let
data
=
res
.
data
;
this
.
cutTimer
=
new
CutTimer
(
this
.
cutTimeLabel
,
'hh时mm分ss秒'
,
()
=>
this
.
h
bRainBaseInfo
());
this
.
cutTimer
=
new
CutTimer
(
this
.
cutTimeLabel
,
'hh时mm分ss秒'
,
()
=>
this
.
h
idePanel
());
let
sysTime
=
res
.
timestamp
;
// 当前系统事件
let
time
;
if
(
data
.
currentSession
)
{
time
=
data
.
currentSession
.
endTime
-
sysTime
;
time
=
data
.
currentSession
.
endTime
-
sysTime
+
3000
;
if
(
data
.
canJoin
)
{
this
.
ok_btn
.
source
=
'hbCutTime_btn_enable_png'
;
this
.
ok_btn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchOK
,
this
);
...
...
@@ -54,7 +54,7 @@ export default class HbCutTime extends Panel {
this
.
cutTimer
.
start
(
time
);
}
}
else
if
(
data
.
nextSession
)
{
time
=
data
.
nextSession
.
startTime
-
sysTime
;
time
=
data
.
nextSession
.
startTime
-
sysTime
+
3000
;
this
.
ok_btn
.
source
=
'hbCutTime_btn_disable_png'
;
this
.
ok_btn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchOK
,
this
);
this
.
tipImage
.
source
=
'hbCutTime_cutLine_disable_png'
;
...
...
@@ -70,11 +70,18 @@ export default class HbCutTime extends Panel {
})
}
destroy
()
{
this
.
cutTimer
.
stop
();
super
.
destroy
();
}
protected
onSkinComplete
()
{
}
initEvents
()
{
super
.
initEvents
();
this
.
addEventListener
(
egret
.
Event
.
REMOVED_FROM_STAGE
,
this
.
destroy
,
this
);
this
.
closeBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchTap_closeBtn
,
this
);
this
.
ok_btn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchOK
,
this
);
this
.
rule_btn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
tapRuleBtn
,
this
);
...
...
@@ -86,6 +93,7 @@ export default class HbCutTime extends Panel {
removeEvents
()
{
super
.
removeEvents
();
this
.
removeEventListener
(
egret
.
Event
.
REMOVED_FROM_STAGE
,
this
.
destroy
,
this
);
this
.
closeBtn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchTap_closeBtn
,
this
);
this
.
ok_btn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchOK
,
this
);
this
.
rule_btn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
tapRuleBtn
,
this
);
...
...
egret/src/panels/HongbaoRain/HbGame.ts
View file @
02d91a2e
...
...
@@ -112,10 +112,10 @@ export default class HbGame extends Panel {
return
;
}
if
(
!
data
.
option
||
data
.
categoryType
==
1
)
{
if
(
!
data
||
!
data
.
option
||
data
.
categoryType
==
1
)
{
PanelCtrl
.
instance
.
show
(
"HbNoPrize"
);
}
else
{
PanelCtrl
.
instance
.
show
(
'
TurnPrizePanel
'
,
data
);
PanelCtrl
.
instance
.
show
(
'
HbPrize
'
,
data
);
}
},
session
,
this
.
score
);
}
...
...
mock/happyclear/hbRainDoJoin.json
View file @
02d91a2e
{
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1572945948033
,
"data"
:
{
"option"
:
{
"appItemId"
:
2322
,
"categoryType"
:
1
,
"coinType"
:
1
,
"img"
:
"//yun.dui88.com/images/201910/s0yhv1nlil.jpeg"
,
"maxValue"
:
2
,
"minValue"
:
1
,
"name"
:
"测试商品"
,
"num"
:
3
,
"propType"
:
2
,
"rate"
:
"概率"
,
"title"
:
"商品信息"
,
"value"
:
"虚拟商品标识符"
"id"
:
"218"
,
"day"
:
null
,
"categoryType"
:
2
,
"title"
:
"10"
,
"rate"
:
"10"
,
"minValue"
:
null
,
"maxValue"
:
null
,
"coinType"
:
null
,
"realValue"
:
null
,
"propType"
:
null
,
"num"
:
4
,
"img"
:
""
,
"appItemId"
:
null
,
"name"
:
""
,
"value"
:
""
},
"orderNum"
:
"1234232546"
},
"desc"
:
"OK"
,
"success"
:
true
,
"timestamp"
:
1572921692831
"orderNum"
:
null
}
}
\ 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