Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wfc13
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
wfc13
Commits
2aa8705c
Commit
2aa8705c
authored
Aug 06, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
e95637ff
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
773 deletions
+31
-773
res.json
project/resource/res.json
+4
-0
ResJson.ts
project/src/ResJson.ts
+17
-763
Marquee.ts
project/src/common/Marquee.ts
+2
-2
NewbieScene.ts
project/src/scenes/NewbieScene.ts
+8
-8
No files found.
project/resource/res.json
View file @
2aa8705c
...
@@ -28,6 +28,10 @@
...
@@ -28,6 +28,10 @@
"keys"
:
"loading_bg.png,loading_loading.png,loading_progressbg.png,loading_progressfront.png,loading_title.png"
,
"keys"
:
"loading_bg.png,loading_loading.png,loading_progressbg.png,loading_progressfront.png,loading_title.png"
,
"name"
:
"loading"
"name"
:
"loading"
},
},
{
"keys"
:
"newbie_bg.png,newbie_marqee.png,newbie_open.png,newbie_pic2.png,newbie_pic3.png,newbie_pic4.png,newbie_pic5.png,newbie_pic6.png,newbie_pic7.png,newbie_pic8.png,newbie_rule.png,newbie_title.png"
,
"name"
:
"newbie"
},
{
{
"keys"
:
"playBg.jpg"
,
"keys"
:
"playBg.jpg"
,
"name"
:
"playScene"
"name"
:
"playScene"
...
...
project/src/ResJson.ts
View file @
2aa8705c
This diff is collapsed.
Click to expand it.
project/src/common/Marquee.ts
View file @
2aa8705c
...
@@ -84,7 +84,7 @@ export default class Marquee extends FYGE.Sprite {
...
@@ -84,7 +84,7 @@ export default class Marquee extends FYGE.Sprite {
const
buttonTxt
=
new
FYGE
.
TextField
;
const
buttonTxt
=
new
FYGE
.
TextField
;
buttonTxt
.
textHeight
=
h
;
buttonTxt
.
textHeight
=
h
;
buttonTxt
.
size
=
2
5
;
buttonTxt
.
size
=
2
6
;
buttonTxt
.
verticalAlign
=
FYGE
.
VERTICAL_ALIGN
.
MIDDLE
;
buttonTxt
.
verticalAlign
=
FYGE
.
VERTICAL_ALIGN
.
MIDDLE
;
buttonTxt
.
fillColor
=
'0xffffff'
;
buttonTxt
.
fillColor
=
'0xffffff'
;
this
.
textwrapper
.
addChild
(
buttonTxt
);
this
.
textwrapper
.
addChild
(
buttonTxt
);
...
@@ -93,7 +93,7 @@ export default class Marquee extends FYGE.Sprite {
...
@@ -93,7 +93,7 @@ export default class Marquee extends FYGE.Sprite {
const
buttonTxt2
=
new
FYGE
.
TextField
;
const
buttonTxt2
=
new
FYGE
.
TextField
;
buttonTxt2
.
textHeight
=
h
;
buttonTxt2
.
textHeight
=
h
;
buttonTxt2
.
size
=
2
5
;
buttonTxt2
.
size
=
2
6
;
buttonTxt2
.
verticalAlign
=
FYGE
.
VERTICAL_ALIGN
.
MIDDLE
;
buttonTxt2
.
verticalAlign
=
FYGE
.
VERTICAL_ALIGN
.
MIDDLE
;
buttonTxt2
.
fillColor
=
'0xffffff'
;
buttonTxt2
.
fillColor
=
'0xffffff'
;
this
.
textwrapper
.
addChild
(
buttonTxt2
);
this
.
textwrapper
.
addChild
(
buttonTxt2
);
...
...
project/src/scenes/NewbieScene.ts
View file @
2aa8705c
...
@@ -15,7 +15,7 @@ export class NewbieScene extends Scene {
...
@@ -15,7 +15,7 @@ export class NewbieScene extends Scene {
prizeBtn
:
FYGE
.
Sprite
;
prizeBtn
:
FYGE
.
Sprite
;
ruleBtn
:
FYGE
.
Sprite
;
ruleBtn
:
FYGE
.
Sprite
;
onPageVisibilityChange
=
async
(
visible
)
=>
{
onPageVisibilityChange
=
async
(
visible
)
=>
{
if
(
getQueryParams
().
disablewatch
==
1
){
console
.
log
(
'disable watch'
);
return
;
}
if
(
getQueryParams
().
disablewatch
==
1
)
{
console
.
log
(
'disable watch'
);
return
;
}
console
.
log
(
'页面visible'
,
visible
);
console
.
log
(
'页面visible'
,
visible
);
if
(
!
prize
)
{
if
(
!
prize
)
{
console
.
log
(
'没有领体验金'
);
return
;
console
.
log
(
'没有领体验金'
);
return
;
...
@@ -38,8 +38,8 @@ export class NewbieScene extends Scene {
...
@@ -38,8 +38,8 @@ export class NewbieScene extends Scene {
openPrize
()
{
openPrize
()
{
prize
=
1
;
prize
=
1
;
getPxTokenSave
().
then
(
token
=>
{
getPxTokenSave
().
then
(
token
=>
{
sendWebNet
(
WebNetName
.
acquireExperienceAmount
,
{
token
:
token
}).
then
(
acquireExperienceAmount
=>
{
sendWebNet
(
WebNetName
.
acquireExperienceAmount
,
{
token
:
token
}).
then
(
acquireExperienceAmount
=>
{
showPanel
(
PrizePanel
,
acquireExperienceAmount
.
data
);
showPanel
(
PrizePanel
,
acquireExperienceAmount
.
data
);
})
})
})
})
...
@@ -67,7 +67,7 @@ export class NewbieScene extends Scene {
...
@@ -67,7 +67,7 @@ export class NewbieScene extends Scene {
sendWebNet
(
WebNetName
.
carouselInfo
).
then
(
res
=>
{
sendWebNet
(
WebNetName
.
carouselInfo
).
then
(
res
=>
{
console
.
log
(
'carouselInfo '
,
res
);
console
.
log
(
'carouselInfo '
,
res
);
const
template
=
'{phone}邀请了
{friend}
位好友,获得了{amount}体验金'
;
const
template
=
'{phone}邀请了
1
位好友,获得了{amount}体验金'
;
const
datas
=
res
.
data
.
map
(
item
=>
{
const
datas
=
res
.
data
.
map
(
item
=>
{
let
str
=
template
.
replace
(
'{phone}'
,
item
.
nickname
);
let
str
=
template
.
replace
(
'{phone}'
,
item
.
nickname
);
str
=
str
.
replace
(
'{friend}'
,
item
.
friend
);
str
=
str
.
replace
(
'{friend}'
,
item
.
friend
);
...
@@ -75,8 +75,8 @@ export class NewbieScene extends Scene {
...
@@ -75,8 +75,8 @@ export class NewbieScene extends Scene {
return
str
return
str
});
});
const
q
=
this
.
addChild
(
new
Marquee
(
datas
));
const
q
=
this
.
addChild
(
new
Marquee
(
datas
));
q
.
y
=
300
;
q
.
x
=
135
;
q
.
y
=
448
;
q
.
x
=
50
;
window
[
'q'
]
=
q
;
});
});
}
}
...
...
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