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
a9748e83
Commit
a9748e83
authored
Mar 02, 2020
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
9be9ce40
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
7 deletions
+32
-7
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+3
-2
eleDisNew.tmproject
egret/resource/TextureMerger/eleDisNew.tmproject
+1
-1
main2.tmproject
egret/resource/TextureMerger/main2.tmproject
+1
-1
BloodPanel.ts
egret/src/panels/BloodPanel.ts
+11
-1
BloodPanel2.ts
egret/src/panels/BloodPanel2.ts
+11
-1
StartPanel.ts
egret/src/panels/StartPanel.ts
+5
-1
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
a9748e83
...
@@ -2419,7 +2419,7 @@ export class NetManager extends ABNetManager {
...
@@ -2419,7 +2419,7 @@ export class NetManager extends ABNetManager {
* 查询邀请用户列表
* 查询邀请用户列表
* @param callback
* @param callback
*/
*/
public
getInvitedUserList
(
callback
:
Function
)
{
public
getInvitedUserList
(
callback
:
Function
,
shareCode
)
{
const
net
:
INetData
=
{
const
net
:
INetData
=
{
name
:
"getInvitedUserList"
,
name
:
"getInvitedUserList"
,
uri
:
window
[
'duiba'
]
+
'/activtySimpleShareCode/getInvitedUserList'
,
uri
:
window
[
'duiba'
]
+
'/activtySimpleShareCode/getInvitedUserList'
,
...
@@ -2428,7 +2428,8 @@ export class NetManager extends ABNetManager {
...
@@ -2428,7 +2428,8 @@ export class NetManager extends ABNetManager {
hideMsg
:
true
,
hideMsg
:
true
,
param
:
{
param
:
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
count
:
10
count
:
10
,
shareCode
},
},
callback
:
callback
callback
:
callback
};
};
...
...
egret/resource/TextureMerger/eleDisNew.tmproject
View file @
a9748e83
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"eleDisNew","version":5,"files":["..
/assets/eleDisNew/eleDisNew4_9.png","../assets/eleDisNew/eleDisNew4_8.png","../assets/eleDisNew/eleDisNew4_7.png","../assets/eleDisNew/eleDisNew4_6.png","../assets/eleDisNew/eleDisNew4_5.png","../assets/eleDisNew/eleDisNew4_4.png","../assets/eleDisNew/eleDisNew4_3.png","../assets/eleDisNew/eleDisNew4_2.png","../assets/eleDisNew/eleDisNew4_14.png","../assets/eleDisNew/eleDisNew4_13.png","../assets/eleDisNew/eleDisNew4_12.png","../assets/eleDisNew/eleDisNew4_11.png","../assets/eleDisNew/eleDisNew4_10.png","../assets/eleDisNew/eleDisNew4_1.png","../assets/eleDisNew/eleDisNew4_0.png","../assets/eleDisNew/eleDisNew3_9.png","../assets/eleDisNew/eleDisNew3_8.png","../assets/eleDisNew/eleDisNew3_7.png","../assets/eleDisNew/eleDisNew3_6.png","../assets/eleDisNew/eleDisNew3_5.png","../assets/eleDisNew/eleDisNew3_4.png","../assets/eleDisNew/eleDisNew3_3.png","../assets/eleDisNew/eleDisNew3_2.png","../assets/eleDisNew/eleDisNew3_14.png","../assets/eleDisNew/eleDisNew3_13.png","../assets/eleDisNew/eleDisNew3_12.png","../assets/eleDisNew/eleDisNew3_11.png","../assets/eleDisNew/eleDisNew3_10.png","../assets/eleDisNew/eleDisNew3_1.png","../assets/eleDisNew/eleDisNew3_0.png","../assets/eleDisNew/eleDisNew2_9.png","../assets/eleDisNew/eleDisNew2_8.png","../assets/eleDisNew/eleDisNew2_7.png","../assets/eleDisNew/eleDisNew2_6.png","../assets/eleDisNew/eleDisNew2_5.png","../assets/eleDisNew/eleDisNew2_4.png","../assets/eleDisNew/eleDisNew2_3.png","../assets/eleDisNew/eleDisNew2_2.png","../assets/eleDisNew/eleDisNew2_14.png","../assets/eleDisNew/eleDisNew2_13.png","../assets/eleDisNew/eleDisNew2_12.png","../assets/eleDisNew/eleDisNew2_11.png","../assets/eleDisNew/eleDisNew2_10.png","../assets/eleDisNew/eleDisNew2_1.png","../assets/eleDisNew/eleDisNew2_0.png","../assets/eleDisNew/eleDisNew1_9.png","../assets/eleDisNew/eleDisNew1_8.png","../assets/eleDisNew/eleDisNew1_7.png","../assets/eleDisNew/eleDisNew1_6.png","../assets/eleDisNew/eleDisNew1_5.png","../assets/eleDisNew/eleDisNew1_4.png","../assets/eleDisNew/eleDisNew1_3.png","../assets/eleDisNew/eleDisNew1_2.png","../assets/eleDisNew/eleDisNew1_14.png","../assets/eleDisNew/eleDisNew1_13.png","../assets/eleDisNew/eleDisNew1_12.png","../assets/eleDisNew/eleDisNew1_11.png","../assets/eleDisNew/eleDisNew1_10.png","../assets/eleDisNew/eleDisNew1_1.png","../assets/eleDisNew/eleDisNew1_0.png","../assets/eleDisNew/eleDisNew0_9.png","../assets/eleDisNew/eleDisNew0_8.png","../assets/eleDisNew/eleDisNew0_7.png","../assets/eleDisNew/eleDisNew0_6.png","../assets/eleDisNew/eleDisNew0_5.png","../assets/eleDisNew/eleDisNew0_4.png","../assets/eleDisNew/eleDisNew0_3.png","../assets/eleDisNew/eleDisNew0_2.png","../assets/eleDisNew/eleDisNew0_14.png","../assets/eleDisNew/eleDisNew0_13.png","../assets/eleDisNew/eleDisNew0_12.png","../assets/eleDisNew/eleDisNew0_11.png","../assets/eleDisNew/eleDisNew0_10.png","../assets/eleDisNew/eleDisNew0_1.png","../assets/eleDisNew/
eleDisNew0_0.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"eleDisNew","version":5,"files":["..
\\assets\\eleDisNew\\eleDisNew4_9.png","..\\assets\\eleDisNew\\eleDisNew4_8.png","..\\assets\\eleDisNew\\eleDisNew4_7.png","..\\assets\\eleDisNew\\eleDisNew4_6.png","..\\assets\\eleDisNew\\eleDisNew4_5.png","..\\assets\\eleDisNew\\eleDisNew4_4.png","..\\assets\\eleDisNew\\eleDisNew4_3.png","..\\assets\\eleDisNew\\eleDisNew4_2.png","..\\assets\\eleDisNew\\eleDisNew4_14.png","..\\assets\\eleDisNew\\eleDisNew4_13.png","..\\assets\\eleDisNew\\eleDisNew4_12.png","..\\assets\\eleDisNew\\eleDisNew4_11.png","..\\assets\\eleDisNew\\eleDisNew4_10.png","..\\assets\\eleDisNew\\eleDisNew4_1.png","..\\assets\\eleDisNew\\eleDisNew4_0.png","..\\assets\\eleDisNew\\eleDisNew3_9.png","..\\assets\\eleDisNew\\eleDisNew3_8.png","..\\assets\\eleDisNew\\eleDisNew3_7.png","..\\assets\\eleDisNew\\eleDisNew3_6.png","..\\assets\\eleDisNew\\eleDisNew3_5.png","..\\assets\\eleDisNew\\eleDisNew3_4.png","..\\assets\\eleDisNew\\eleDisNew3_3.png","..\\assets\\eleDisNew\\eleDisNew3_2.png","..\\assets\\eleDisNew\\eleDisNew3_14.png","..\\assets\\eleDisNew\\eleDisNew3_13.png","..\\assets\\eleDisNew\\eleDisNew3_12.png","..\\assets\\eleDisNew\\eleDisNew3_11.png","..\\assets\\eleDisNew\\eleDisNew3_10.png","..\\assets\\eleDisNew\\eleDisNew3_1.png","..\\assets\\eleDisNew\\eleDisNew3_0.png","..\\assets\\eleDisNew\\eleDisNew2_9.png","..\\assets\\eleDisNew\\eleDisNew2_8.png","..\\assets\\eleDisNew\\eleDisNew2_7.png","..\\assets\\eleDisNew\\eleDisNew2_6.png","..\\assets\\eleDisNew\\eleDisNew2_5.png","..\\assets\\eleDisNew\\eleDisNew2_4.png","..\\assets\\eleDisNew\\eleDisNew2_3.png","..\\assets\\eleDisNew\\eleDisNew2_2.png","..\\assets\\eleDisNew\\eleDisNew2_14.png","..\\assets\\eleDisNew\\eleDisNew2_13.png","..\\assets\\eleDisNew\\eleDisNew2_12.png","..\\assets\\eleDisNew\\eleDisNew2_11.png","..\\assets\\eleDisNew\\eleDisNew2_10.png","..\\assets\\eleDisNew\\eleDisNew2_1.png","..\\assets\\eleDisNew\\eleDisNew2_0.png","..\\assets\\eleDisNew\\eleDisNew1_9.png","..\\assets\\eleDisNew\\eleDisNew1_8.png","..\\assets\\eleDisNew\\eleDisNew1_7.png","..\\assets\\eleDisNew\\eleDisNew1_6.png","..\\assets\\eleDisNew\\eleDisNew1_5.png","..\\assets\\eleDisNew\\eleDisNew1_4.png","..\\assets\\eleDisNew\\eleDisNew1_3.png","..\\assets\\eleDisNew\\eleDisNew1_2.png","..\\assets\\eleDisNew\\eleDisNew1_14.png","..\\assets\\eleDisNew\\eleDisNew1_13.png","..\\assets\\eleDisNew\\eleDisNew1_12.png","..\\assets\\eleDisNew\\eleDisNew1_11.png","..\\assets\\eleDisNew\\eleDisNew1_10.png","..\\assets\\eleDisNew\\eleDisNew1_1.png","..\\assets\\eleDisNew\\eleDisNew1_0.png","..\\assets\\eleDisNew\\eleDisNew0_9.png","..\\assets\\eleDisNew\\eleDisNew0_8.png","..\\assets\\eleDisNew\\eleDisNew0_7.png","..\\assets\\eleDisNew\\eleDisNew0_6.png","..\\assets\\eleDisNew\\eleDisNew0_5.png","..\\assets\\eleDisNew\\eleDisNew0_4.png","..\\assets\\eleDisNew\\eleDisNew0_3.png","..\\assets\\eleDisNew\\eleDisNew0_2.png","..\\assets\\eleDisNew\\eleDisNew0_14.png","..\\assets\\eleDisNew\\eleDisNew0_13.png","..\\assets\\eleDisNew\\eleDisNew0_12.png","..\\assets\\eleDisNew\\eleDisNew0_11.png","..\\assets\\eleDisNew\\eleDisNew0_10.png","..\\assets\\eleDisNew\\eleDisNew0_1.png","..\\assets\\eleDisNew\\
eleDisNew0_0.png"]}
\ No newline at end of file
egret/resource/TextureMerger/main2.tmproject
View file @
a9748e83
This diff is collapsed.
Click to expand it.
egret/src/panels/BloodPanel.ts
View file @
a9748e83
...
@@ -25,7 +25,17 @@ export default class BloodPanel extends Panel {
...
@@ -25,7 +25,17 @@ export default class BloodPanel extends Panel {
this
.
showlog
();
this
.
showlog
();
//获取下邀请人数,
//获取下邀请人数,
NetManager
.
ins
.
getInvitedUserList
((
s
,
res
)
=>
{
if
(
s
)
this
.
askForEnergyCount
=
res
.
data
.
count
})
if
(
DataManager
.
ins
.
getData
(
"getUserShareCode"
)
&&
DataManager
.
ins
.
getData
(
"getUserShareCode"
).
data
)
{
NetManager
.
ins
.
getInvitedUserList
((
s
,
res
)
=>
{
if
(
s
)
{
this
.
askForEnergyCount
=
res
.
data
.
count
;
this
[
'invitTxt'
].
text
=
`(已领
${
this
.
askForEnergyCount
/*data.askForEnergy*/
}
/
${
BloodPanel
.
MAX
}
)`
;
if
(
this
.
askForEnergyCount
/*data.askForEnergy*/
>=
BloodPanel
.
MAX
)
{
this
[
'inviteBtn2'
].
visible
=
true
;
}
}
},
DataManager
.
ins
.
getData
(
"getUserShareCode"
).
data
)
}
this
[
'price1Txt'
].
text
=
`
${
window
[
'price1'
]}
个元宝=1个体力值`
;
this
[
'price1Txt'
].
text
=
`
${
window
[
'price1'
]}
个元宝=1个体力值`
;
this
[
'resumeBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
[
'resumeBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
...
...
egret/src/panels/BloodPanel2.ts
View file @
a9748e83
...
@@ -25,7 +25,17 @@ export default class BloodPanel2 extends Panel {
...
@@ -25,7 +25,17 @@ export default class BloodPanel2 extends Panel {
this
[
'price1Txt'
].
text
=
`
${
window
[
'price1'
]}
个元宝=1个体力值`
;
this
[
'price1Txt'
].
text
=
`
${
window
[
'price1'
]}
个元宝=1个体力值`
;
//获取下邀请人数,
//获取下邀请人数,
NetManager
.
ins
.
getInvitedUserList
((
s
,
res
)
=>
{
if
(
s
)
this
.
askForEnergyCount
=
res
.
data
.
count
})
if
(
DataManager
.
ins
.
getData
(
"getUserShareCode"
)
&&
DataManager
.
ins
.
getData
(
"getUserShareCode"
).
data
)
{
NetManager
.
ins
.
getInvitedUserList
((
s
,
res
)
=>
{
if
(
s
)
{
this
.
askForEnergyCount
=
res
.
data
.
count
;
this
[
'invitTxt'
].
text
=
`(已领
${
this
.
askForEnergyCount
/*data.askForEnergy*/
}
/
${
BloodPanel
.
MAX
}
)`
;
if
(
this
.
askForEnergyCount
/*data.askForEnergy*/
>=
BloodPanel
.
MAX
)
{
this
[
'inviteBtn2'
].
visible
=
true
;
}
}
},
DataManager
.
ins
.
getData
(
"getUserShareCode"
).
data
)
}
}
}
showlog
()
{
showlog
()
{
...
...
egret/src/panels/StartPanel.ts
View file @
a9748e83
...
@@ -42,7 +42,11 @@ export default class StartPanel extends Panel {
...
@@ -42,7 +42,11 @@ export default class StartPanel extends Panel {
const
homedata
=
getHomeData
();
const
homedata
=
getHomeData
();
//获取下邀请人数,
//获取下邀请人数,
NetManager
.
ins
.
getInvitedUserList
((
s
,
res
)
=>
{
if
(
s
)
this
.
askForEnergyCount
=
res
.
data
.
count
})
if
(
DataManager
.
ins
.
getData
(
"getUserShareCode"
)
&&
DataManager
.
ins
.
getData
(
"getUserShareCode"
).
data
)
{
NetManager
.
ins
.
getInvitedUserList
((
s
,
res
)
=>
{
if
(
s
)
this
.
askForEnergyCount
=
res
.
data
.
count
;
},
DataManager
.
ins
.
getData
(
"getUserShareCode"
).
data
)
}
if
(
data
>
homedata
.
levels
.
length
)
{
if
(
data
>
homedata
.
levels
.
length
)
{
addAdComp
(
84
,
901
,
this
,
29
);
addAdComp
(
84
,
901
,
this
,
29
);
...
...
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