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
477ed87e
Commit
477ed87e
authored
Mar 03, 2020
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
061c08d1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+3
-4
BloodPanel.ts
egret/src/panels/BloodPanel.ts
+2
-2
BloodPanel2.ts
egret/src/panels/BloodPanel2.ts
+2
-2
StartPanel.ts
egret/src/panels/StartPanel.ts
+2
-2
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
477ed87e
...
...
@@ -2419,16 +2419,15 @@ export class NetManager extends ABNetManager {
* 查询邀请用户列表
* @param callback
*/
public
get
InvitedUserList
(
callback
:
Function
,
shareCode
)
{
public
get
EffectiveShareTimes
(
callback
:
Function
,
shareCode
)
{
const
net
:
INetData
=
{
name
:
"get
InvitedUserList
"
,
uri
:
window
[
'duiba'
]
+
'/
activtySimpleShareCode/getInvitedUserList
'
,
name
:
"get
EffectiveShareTimes
"
,
uri
:
window
[
'duiba'
]
+
'/
customActivity/happyclear/getEffectiveShareTimes
'
,
type
:
'get'
,
dataType
:
'json'
,
hideMsg
:
true
,
param
:
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
count
:
10
,
shareCode
},
callback
:
callback
...
...
egret/src/panels/BloodPanel.ts
View file @
477ed87e
...
...
@@ -26,9 +26,9 @@ export default class BloodPanel extends Panel {
//获取下邀请人数,
if
(
DataManager
.
ins
.
getData
(
"getUserShareCode"
)
&&
DataManager
.
ins
.
getData
(
"getUserShareCode"
).
data
)
{
NetManager
.
ins
.
get
InvitedUserList
((
s
,
res
)
=>
{
NetManager
.
ins
.
get
EffectiveShareTimes
((
s
,
res
)
=>
{
if
(
s
)
{
this
.
askForEnergyCount
=
res
.
data
.
count
;
this
.
askForEnergyCount
=
res
.
data
;
this
[
'invitTxt'
].
text
=
`(已领
${
this
.
askForEnergyCount
/*data.askForEnergy*/
}
/
${
BloodPanel
.
MAX
}
)`
;
if
(
this
.
askForEnergyCount
/*data.askForEnergy*/
>=
BloodPanel
.
MAX
)
{
this
[
'inviteBtn2'
].
visible
=
true
;
...
...
egret/src/panels/BloodPanel2.ts
View file @
477ed87e
...
...
@@ -26,9 +26,9 @@ export default class BloodPanel2 extends Panel {
//获取下邀请人数,
if
(
DataManager
.
ins
.
getData
(
"getUserShareCode"
)
&&
DataManager
.
ins
.
getData
(
"getUserShareCode"
).
data
)
{
NetManager
.
ins
.
get
InvitedUserList
((
s
,
res
)
=>
{
NetManager
.
ins
.
get
EffectiveShareTimes
((
s
,
res
)
=>
{
if
(
s
)
{
this
.
askForEnergyCount
=
res
.
data
.
count
;
this
.
askForEnergyCount
=
res
.
data
;
this
[
'invitTxt'
].
text
=
`(已领
${
this
.
askForEnergyCount
/*data.askForEnergy*/
}
/
${
BloodPanel
.
MAX
}
)`
;
if
(
this
.
askForEnergyCount
/*data.askForEnergy*/
>=
BloodPanel
.
MAX
)
{
this
[
'inviteBtn2'
].
visible
=
true
;
...
...
egret/src/panels/StartPanel.ts
View file @
477ed87e
...
...
@@ -43,8 +43,8 @@ export default class StartPanel extends Panel {
//获取下邀请人数,
if
(
DataManager
.
ins
.
getData
(
"getUserShareCode"
)
&&
DataManager
.
ins
.
getData
(
"getUserShareCode"
).
data
)
{
NetManager
.
ins
.
get
InvitedUserList
((
s
,
res
)
=>
{
if
(
s
)
this
.
askForEnergyCount
=
res
.
data
.
count
;
NetManager
.
ins
.
get
EffectiveShareTimes
((
s
,
res
)
=>
{
if
(
s
)
this
.
askForEnergyCount
=
res
.
data
;
},
DataManager
.
ins
.
getData
(
"getUserShareCode"
).
data
)
}
...
...
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