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
58c5a2ac
Commit
58c5a2ac
authored
Nov 06, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab2.dui88.com/wanghongyuan/xiaoxiaole
into dev
parents
5f39c496
53aafce6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
33 deletions
+33
-33
MainBase.ts
egret/libs/new_wx/MainBase.ts
+11
-11
NoPrizePanel.ts
egret/libs/new_wx/components/NoPrizePanel.ts
+1
-1
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+17
-17
MapScene.ts
egret/src/mapScene/MapScene.ts
+4
-4
No files found.
egret/libs/new_wx/MainBase.ts
View file @
58c5a2ac
...
@@ -392,16 +392,16 @@ export default class MainBase extends eui.UILayer {
...
@@ -392,16 +392,16 @@ export default class MainBase extends eui.UILayer {
});
});
}
}
getBackReward
()
{
//
getBackReward() {
return
new
Promise
((
r
)
=>
{
//
return new Promise((r) => {
try
{
//
try {
if
(
window
[
'getRST'
])
window
[
'getRST'
]();
//
if(window['getRST']) window['getRST']();
}
catch
(
error
)
{
}
//
} catch(error) { }
NetManager
.
ins
.
hc_getBackReward
(()
=>
{
//
NetManager.ins.hc_getBackReward(() => {
r
();
//
r();
})
//
})
});
//
});
}
//
}
ajaxElement
()
{
ajaxElement
()
{
return
new
Promise
((
r
)
=>
{
return
new
Promise
((
r
)
=>
{
...
@@ -441,7 +441,7 @@ export default class MainBase extends eui.UILayer {
...
@@ -441,7 +441,7 @@ export default class MainBase extends eui.UILayer {
this
.
ajaxElement
(),
this
.
ajaxElement
(),
this
.
hcHome
(),
this
.
hcHome
(),
this
.
hc_userInfo
(),
this
.
hc_userInfo
(),
this
.
getBackReward
(),
//
this.getBackReward(),
this
.
hcRedBoobBaseInfo
(),
this
.
hcRedBoobBaseInfo
(),
]);
]);
...
...
egret/libs/new_wx/components/NoPrizePanel.ts
View file @
58c5a2ac
...
@@ -32,7 +32,7 @@ export default class NoPrizePanel extends Panel {
...
@@ -32,7 +32,7 @@ export default class NoPrizePanel extends Panel {
this
[
'goBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
[
'goBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
.
hidePanel
();
this
.
hidePanel
();
if
(
this
.
_level
+
1
<=
70
)
if
(
this
.
_level
+
1
<=
window
[
'last_level'
]
)
changeMapScene
({
level
:
this
.
_level
+
1
});
changeMapScene
({
level
:
this
.
_level
+
1
});
else
else
changeMapScene
();
changeMapScene
();
...
...
egret/libs/tw/manager/NetManager.ts
View file @
58c5a2ac
...
@@ -975,23 +975,23 @@ export class NetManager extends ABNetManager {
...
@@ -975,23 +975,23 @@ export class NetManager extends ABNetManager {
};
};
this
.
send
(
net
);
this
.
send
(
net
);
}
}
public
hc_getBackReward
(
callback
:
Function
):
void
{
//
public hc_getBackReward(callback: Function): void {
const
d
:
any
=
{
//
const d: any = {
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
//
activityId: DataManager.ins.customCfgData.actId,
detect
:
window
[
'detect'
],
//
detect: window['detect'],
deviceSessionId
:
window
[
'_device_session_id'
]
//
deviceSessionId: window['_device_session_id']
};
//
};
const
net
:
INetData
=
{
//
const net: INetData = {
name
:
'hc_getBackReward'
,
//
name: 'hc_getBackReward',
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/getBackReward'
,
//
uri: window['duiba'] + '/customActivity/happyclear/getBackReward',
type
:
'get'
,
//
type: 'get',
dataType
:
'json'
,
//
dataType: 'json',
hideMsg
:
true
,
//
hideMsg:true,
param
:
d
,
//
param: d,
callback
:
callback
//
callback: callback
};
//
};
this
.
send
(
net
);
//
this.send(net);
}
//
}
public
hc_turnableDojoin
(
callback
:
Function
):
void
{
public
hc_turnableDojoin
(
callback
:
Function
):
void
{
const
d
:
any
=
{
const
d
:
any
=
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
...
...
egret/src/mapScene/MapScene.ts
View file @
58c5a2ac
...
@@ -127,10 +127,10 @@ export default class MapScene extends Scene {
...
@@ -127,10 +127,10 @@ export default class MapScene extends Scene {
localStorage
.
setItem
(
'nowTimer2Str'
+
window
[
'CFG'
].
consumerId
,
nowTimerStr2
);
localStorage
.
setItem
(
'nowTimer2Str'
+
window
[
'CFG'
].
consumerId
,
nowTimerStr2
);
}
}
const
backData
=
DataManager
.
ins
.
getData
(
'hc_getBackReward'
);
//
const backData = DataManager.ins.getData('hc_getBackReward');
if
(
backData
.
success
&&
backData
.
data
)
{
//
if (backData.success && backData.data) {
panels
.
push
(
'back'
);
//
panels.push('back');
}
//
}
const
{
signInfoVO
}
=
DataManager
.
ins
.
getData
(
'getSignInfo'
);
const
{
signInfoVO
}
=
DataManager
.
ins
.
getData
(
'getSignInfo'
);
if
(
signInfoVO
.
continueDay
<
7
)
{
//表示明天还可以签到
if
(
signInfoVO
.
continueDay
<
7
)
{
//表示明天还可以签到
...
...
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