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
52d49fea
Commit
52d49fea
authored
Aug 15, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
923faf11
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
+15
-2
Main.ts
project/src/Main.ts
+1
-1
IndexScene.ts
project/src/scenes/IndexScene.ts
+5
-1
createPrizeTxt.ts
project/src/scenes/createPrizeTxt.ts
+9
-0
No files found.
project/src/Main.ts
View file @
52d49fea
...
@@ -71,7 +71,7 @@ export class Main {
...
@@ -71,7 +71,7 @@ export class Main {
//加载通用资源
//加载通用资源
await
RES
.
loadGroup
(
"common"
);
await
RES
.
loadGroup
(
"common"
);
await
RES
.
loadGroup
(
"svga"
);
await
RES
.
loadGroup
(
"svga"
);
//
await sendWebNet(WebNetName.index);
await
sendWebNet
(
WebNetName
.
index
);
console
.
log
(
"通用资源加载完成"
)
console
.
log
(
"通用资源加载完成"
)
//h5环境时,隐藏加载中
//h5环境时,隐藏加载中
if
(
FYGE
.
getEnv
()
==
"web"
&&
document
.
getElementById
(
"__loading__"
))
document
.
getElementById
(
"__loading__"
).
style
.
display
=
"none"
;
if
(
FYGE
.
getEnv
()
==
"web"
&&
document
.
getElementById
(
"__loading__"
))
document
.
getElementById
(
"__loading__"
).
style
.
display
=
"none"
;
...
...
project/src/scenes/IndexScene.ts
View file @
52d49fea
...
@@ -20,13 +20,14 @@ import { layers } from "../../module/views/layers";
...
@@ -20,13 +20,14 @@ import { layers } from "../../module/views/layers";
import
{
showShareMask
}
from
"../common/ShareMask"
;
import
{
showShareMask
}
from
"../common/ShareMask"
;
import
{
getUnionid
}
from
"../getUnionid"
;
import
{
getUnionid
}
from
"../getUnionid"
;
import
{
initNonmemberMask
}
from
"./initNonmemberMask"
;
import
{
initNonmemberMask
}
from
"./initNonmemberMask"
;
import
{
createPrizeTxt
}
from
"./createPrizeTxt"
;
let
boxGroup
:
BoxGroup
;
let
boxGroup
:
BoxGroup
;
let
boxArea
;
let
boxArea
;
let
hand
;
let
hand
;
let
shareButton
;
let
shareButton
;
let
indexData
;
let
indexData
,
scrollList
;
export
class
IndexScene
extends
Scene
{
export
class
IndexScene
extends
Scene
{
get
groupNames
()
{
return
[
"index"
]
}
get
groupNames
()
{
return
[
"index"
]
}
...
@@ -70,6 +71,7 @@ export class IndexScene extends Scene {
...
@@ -70,6 +71,7 @@ export class IndexScene extends Scene {
const
index_timestips
=
getObject
(
this
,
'index_timestips'
);
const
index_timestips
=
getObject
(
this
,
'index_timestips'
);
index_timestips
.
position
.
set
(
127
,
1131
);
index_timestips
.
position
.
set
(
127
,
1131
);
const
list
=
new
FYGE
.
ScrollList
(
ScrollItem
,
131
+
20
,
131
,
620
,
154
,
false
);
const
list
=
new
FYGE
.
ScrollList
(
ScrollItem
,
131
+
20
,
131
,
620
,
154
,
false
);
scrollList
=
list
;
list
.
position
.
set
(
80
,
1240
+
30
);
list
.
position
.
set
(
80
,
1240
+
30
);
this
.
addChild
(
list
);
this
.
addChild
(
list
);
hand
=
getObject
(
this
,
'index_sharehand'
);
hand
=
getObject
(
this
,
'index_sharehand'
);
...
@@ -145,6 +147,8 @@ export class IndexScene extends Scene {
...
@@ -145,6 +147,8 @@ export class IndexScene extends Scene {
if
(
!
getUnionid
()){
if
(
!
getUnionid
()){
getObject
(
this
,
'index_sharetips'
).
visible
=
false
;
getObject
(
this
,
'index_sharetips'
).
visible
=
false
;
getObject
(
this
,
'index_sharehand'
).
visible
=
false
;
getObject
(
this
,
'index_sharehand'
).
visible
=
false
;
scrollList
.
visible
=
false
;
createPrizeTxt
(
this
);
return
;
return
;
}
}
const
result
=
await
getWebData
(
WebNetName
.
index
);
const
result
=
await
getWebData
(
WebNetName
.
index
);
...
...
project/src/scenes/createPrizeTxt.ts
0 → 100644
View file @
52d49fea
export
const
createPrizeTxt
=
(
p
)
=>
{
const
txt
=
new
FYGE
.
TextField
;
txt
.
size
=
36
;
txt
.
fillColor
=
'0x000000'
;
txt
.
text
=
'暂无奖品'
;
txt
.
position
.
set
(
80
+
20
,
1240
+
30
+
20
+
30
);
return
p
.
addChild
(
txt
)
}
\ No newline at end of file
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