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
caa942be
Commit
caa942be
authored
Aug 05, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
6f2f7ef9
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1381 additions
and
17 deletions
+1381
-17
index.html
project/index.html
+1
-1
task2bg.png
project/resource/index3/task2bg.png
+0
-0
skin.json
project/resource/skin.json
+1362
-1
IndexScene.ts
project/src/scenes/IndexScene.ts
+18
-15
No files found.
project/index.html
View file @
caa942be
...
...
@@ -26,7 +26,7 @@
height
:
100%
;
overflow
:
hidden
;
position
:
absolute
;
background-color
:
#
9a3636
;
background-color
:
#
fff
;
/* background: linear-gradient(#93dbb7,#ff0,#b5d89a); */
/* background: linear-gradient(#93dbb7,#b5d89a); */
/* 背景图片,解决加载太慢,白屏问题,加了这个下面的__loading__可以删掉了 */
...
...
project/resource/index3/task2bg.png
View replaced file @
6f2f7ef9
View file @
caa942be
1.97 KB
|
W:
|
H:
1.64 KB
|
W:
|
H:
2-up
Swipe
Onion skin
project/resource/skin.json
View file @
caa942be
This diff is collapsed.
Click to expand it.
project/src/scenes/IndexScene.ts
View file @
caa942be
...
...
@@ -30,11 +30,14 @@ export class IndexScene extends Scene {
super
.
initUi
();
const
page
=
this
.
page
=
new
FYGE
.
ScrollPage
(
750
,
getStageHeight
(),
1624
,
true
,
true
);
page
.
isSpringBack
=
false
;
this
.
addChild
(
page
);
page
.
y
=
getStageOffset
();
this
.
page
.
view
.
addChild
(
getObject
(
this
,
'wrapper'
));
// getObject(this.page,'task1').visible=false;
// // getObject(this.page,'task2new').visible=false;
// getObject(this.page,'task2').visible=false;
}
async
start
(
data
)
{
...
...
@@ -46,20 +49,20 @@ export class IndexScene extends Scene {
this
.
showSharePanel
();
}
sendWebNet
(
WebNetName
.
carouselInfo
).
then
(
res
=>
{
console
.
log
(
'carouselInfo '
,
res
);
const
template
=
'{phone}邀请了{friend}位好友,获得了{amount}体验金'
;
const
datas
=
res
.
data
.
map
(
item
=>
{
let
str
=
template
.
replace
(
'{phone}'
,
item
.
nickname
);
str
=
str
.
replace
(
'{friend}'
,
item
.
friend
);
str
=
str
.
replace
(
'{amount}'
,
item
.
amount
);
return
str
});
const
q
=
this
.
addChild
(
new
Marquee
(
datas
));
q
.
y
=
50
;
q
.
x
=
50
;
});
//
sendWebNet(WebNetName.carouselInfo).then(res => {
//
console.log('carouselInfo ', res);
//
const template = '{phone}邀请了{friend}位好友,获得了{amount}体验金';
//
const datas = res.data.map(item => {
//
let str = template.replace('{phone}', item.nickname);
//
str = str.replace('{friend}', item.friend);
//
str = str.replace('{amount}', item.amount);
//
return str
//
});
// const q = this.page.view
.addChild(new Marquee(datas));
//
q.y = 50;
//
q.x = 50;
//
});
sendWebNet
(
WebNetName
.
createItem
).
then
(
createItemResult
=>
{
...
...
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