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
a2d28148
Commit
a2d28148
authored
Nov 06, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
699ae23a
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
1 deletion
+25
-1
MainBase.ts
egret/libs/new_wx/MainBase.ts
+2
-1
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+2
-0
redbagtips_ele.png
egret/resource/assets/redbagtips/redbagtips_ele.png
+0
-0
redbagtips_ele1.png
egret/resource/assets/redbagtips/redbagtips_ele1.png
+0
-0
redbagtips_ele2.png
egret/resource/assets/redbagtips/redbagtips_ele2.png
+0
-0
redbagtips_ele3.png
egret/resource/assets/redbagtips/redbagtips_ele3.png
+0
-0
redbagtips_light.png
egret/resource/assets/redbagtips/redbagtips_light.png
+0
-0
getRedBombAward.ts
egret/src/getRedBombAward.ts
+21
-0
No files found.
egret/libs/new_wx/MainBase.ts
View file @
a2d28148
...
...
@@ -66,6 +66,7 @@ import HbCutTime from "../../src/panels/HongbaoRain/HbCutTime";
import
HbPrize
from
"../../src/panels/HongbaoRain/HbPrize"
;
import
HbNoPrize
from
"../../src/panels/HongbaoRain/HbNoPrize"
;
import
HbGame
from
"../../src/panels/HongbaoRain/HbGame"
;
import
getRedBombAward
from
"../../src/getRedBombAward"
;
export
default
class
MainBase
extends
eui
.
UILayer
{
constructor
()
{
...
...
@@ -434,7 +435,7 @@ export default class MainBase extends eui.UILayer {
}
protected
async
createGameScene
()
{
window
[
'getaward'
]
=
NetManager
.
ins
.
hc_redBombAward
;
window
[
'getaward'
]
=
()
=>
{
getRedBombAward
((
param
)
=>
{
console
.
log
(
param
)})}
await
Promise
.
all
([
this
.
getAd
(),
this
.
ajaxElement
(),
...
...
egret/libs/tw/manager/NetManager.ts
View file @
a2d28148
...
...
@@ -881,6 +881,7 @@ export class NetManager extends ABNetManager {
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/redBomb/baseInfo'
,
type
:
'get'
,
dataType
:
'json'
,
hideMsg
:
true
,
param
:
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
},
...
...
@@ -895,6 +896,7 @@ export class NetManager extends ABNetManager {
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/redBomb/award'
,
type
:
'post'
,
dataType
:
'json'
,
hideMsg
:
true
,
param
:
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
detect
:
window
[
'detect'
],
...
...
egret/resource/assets/redbagtips/redbagtips_ele.png
0 → 100644
View file @
a2d28148
6.54 KB
egret/resource/assets/redbagtips/redbagtips_ele1.png
0 → 100644
View file @
a2d28148
7.64 KB
egret/resource/assets/redbagtips/redbagtips_ele2.png
0 → 100644
View file @
a2d28148
6.01 KB
egret/resource/assets/redbagtips/redbagtips_ele3.png
0 → 100644
View file @
a2d28148
6.23 KB
egret/resource/assets/redbagtips/redbagtips_light.png
0 → 100644
View file @
a2d28148
255 KB
egret/src/getRedBombAward.ts
0 → 100644
View file @
a2d28148
import
{
NetManager
}
from
"../libs/tw/manager/NetManager"
;
import
{
DataManager
}
from
"../libs/tw/manager/DataManager"
;
/**
* callback回调1是有奖,0是没有奖或者风控
*/
export
default
(
callback
)
=>
{
NetManager
.
ins
.
hc_redBombAward
((
success
)
=>
{
if
(
success
)
{
const
data
=
DataManager
.
ins
.
getData
(
'hc_redBombAward'
).
data
;
if
(
data
&&
data
.
option
&&
data
.
option
.
categoryType
!=
1
)
{
callback
(
1
);
}
else
{
callback
(
0
);
}
}
else
{
callback
(
0
);
}
});
}
\ 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