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
Hide 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 @@
"keys"
:
"loading_bg.png,loading_loading.png,loading_progressbg.png,loading_progressfront.png,loading_title.png"
,
"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"
,
"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 {
const
buttonTxt
=
new
FYGE
.
TextField
;
buttonTxt
.
textHeight
=
h
;
buttonTxt
.
size
=
2
5
;
buttonTxt
.
size
=
2
6
;
buttonTxt
.
verticalAlign
=
FYGE
.
VERTICAL_ALIGN
.
MIDDLE
;
buttonTxt
.
fillColor
=
'0xffffff'
;
this
.
textwrapper
.
addChild
(
buttonTxt
);
...
...
@@ -93,7 +93,7 @@ export default class Marquee extends FYGE.Sprite {
const
buttonTxt2
=
new
FYGE
.
TextField
;
buttonTxt2
.
textHeight
=
h
;
buttonTxt2
.
size
=
2
5
;
buttonTxt2
.
size
=
2
6
;
buttonTxt2
.
verticalAlign
=
FYGE
.
VERTICAL_ALIGN
.
MIDDLE
;
buttonTxt2
.
fillColor
=
'0xffffff'
;
this
.
textwrapper
.
addChild
(
buttonTxt2
);
...
...
project/src/scenes/NewbieScene.ts
View file @
2aa8705c
...
...
@@ -15,7 +15,7 @@ export class NewbieScene extends Scene {
prizeBtn
:
FYGE
.
Sprite
;
ruleBtn
:
FYGE
.
Sprite
;
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
);
if
(
!
prize
)
{
console
.
log
(
'没有领体验金'
);
return
;
...
...
@@ -38,12 +38,12 @@ export class NewbieScene extends Scene {
openPrize
()
{
prize
=
1
;
getPxTokenSave
().
then
(
token
=>
{
sendWebNet
(
WebNetName
.
acquireExperienceAmount
,
{
token
:
token
}).
then
(
acquireExperienceAmount
=>
{
getPxTokenSave
().
then
(
token
=>
{
sendWebNet
(
WebNetName
.
acquireExperienceAmount
,
{
token
:
token
}).
then
(
acquireExperienceAmount
=>
{
showPanel
(
PrizePanel
,
acquireExperienceAmount
.
data
);
})
})
})
}
onClick_prizeBtn
()
{
...
...
@@ -67,7 +67,7 @@ export class NewbieScene extends Scene {
sendWebNet
(
WebNetName
.
carouselInfo
).
then
(
res
=>
{
console
.
log
(
'carouselInfo '
,
res
);
const
template
=
'{phone}邀请了
{friend}
位好友,获得了{amount}体验金'
;
const
template
=
'{phone}邀请了
1
位好友,获得了{amount}体验金'
;
const
datas
=
res
.
data
.
map
(
item
=>
{
let
str
=
template
.
replace
(
'{phone}'
,
item
.
nickname
);
str
=
str
.
replace
(
'{friend}'
,
item
.
friend
);
...
...
@@ -75,8 +75,8 @@ export class NewbieScene extends Scene {
return
str
});
const
q
=
this
.
addChild
(
new
Marquee
(
datas
));
q
.
y
=
300
;
q
.
x
=
50
;
q
.
x
=
135
;
q
.
y
=
448
;
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