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
923faf11
Commit
923faf11
authored
Aug 15, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
71a8e68d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
25 deletions
+35
-25
index.html
project/index.html
+1
-1
Main.ts
project/src/Main.ts
+2
-2
SkinJson.ts
project/src/SkinJson.ts
+3
-3
IndexScene.ts
project/src/scenes/IndexScene.ts
+11
-19
initNonmemberMask.ts
project/src/scenes/initNonmemberMask.ts
+18
-0
No files found.
project/index.html
View file @
923faf11
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<head>
<head>
<meta
charset=
"UTF-8"
>
<meta
charset=
"UTF-8"
>
<title>
三湘银行体验金
</title>
<title>
地素盲盒
</title>
<meta
name=
"viewport"
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"
/>
content=
"width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"
/>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
/>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
/>
...
...
project/src/Main.ts
View file @
923faf11
...
@@ -71,12 +71,12 @@ export class Main {
...
@@ -71,12 +71,12 @@ 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"
;
//显示场景
//显示场景
changeScene
(
IndexScene
)
changeScene
(
IndexScene
)
;
}
}
/**
/**
...
...
project/src/SkinJson.ts
View file @
923faf11
...
@@ -588,7 +588,7 @@ export const SkinJson ={
...
@@ -588,7 +588,7 @@ export const SkinJson ={
"y"
:
1133
,
"y"
:
1133
,
"type"
:
"text"
,
"type"
:
"text"
,
"props"
:
{
"props"
:
{
"text"
:
"
XX
"
,
"text"
:
"
/
"
,
"size"
:
32
,
"size"
:
32
,
"fillColor"
:
"#000000"
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
"textAlpha"
:
1
...
@@ -612,7 +612,7 @@ export const SkinJson ={
...
@@ -612,7 +612,7 @@ export const SkinJson ={
"y"
:
1132
,
"y"
:
1132
,
"type"
:
"text"
,
"type"
:
"text"
,
"props"
:
{
"props"
:
{
"text"
:
"
XX
"
,
"text"
:
"
/
"
,
"size"
:
32
,
"size"
:
32
,
"fillColor"
:
"#000000"
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
"textAlpha"
:
1
...
@@ -636,7 +636,7 @@ export const SkinJson ={
...
@@ -636,7 +636,7 @@ export const SkinJson ={
"y"
:
434
,
"y"
:
434
,
"type"
:
"text"
,
"type"
:
"text"
,
"props"
:
{
"props"
:
{
"text"
:
"
XX积分/次
"
,
"text"
:
"
/
"
,
"size"
:
30
,
"size"
:
30
,
"fillColor"
:
"#000000"
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
"textAlpha"
:
1
...
...
project/src/scenes/IndexScene.ts
View file @
923faf11
...
@@ -19,6 +19,7 @@ import { WebNetName } from "../WebNetName";
...
@@ -19,6 +19,7 @@ import { WebNetName } from "../WebNetName";
import
{
layers
}
from
"../../module/views/layers"
;
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"
;
let
boxGroup
:
BoxGroup
;
let
boxGroup
:
BoxGroup
;
...
@@ -37,6 +38,11 @@ export class IndexScene extends Scene {
...
@@ -37,6 +38,11 @@ export class IndexScene extends Scene {
initUi
(){
initUi
(){
super
.
initUi
();
super
.
initUi
();
if
(
!
getUnionid
()){
initNonmemberMask
();
}
const
svgaLayer
=
new
FYGE
.
Sprite
();
const
svgaLayer
=
new
FYGE
.
Sprite
();
this
.
addChildAt
(
svgaLayer
,
1
);
this
.
addChildAt
(
svgaLayer
,
1
);
const
svga
=
new
FYGE
.
MovieClip
(
RES
.
getRes
(
'首页元素循环上-输出.svga'
));
const
svga
=
new
FYGE
.
MovieClip
(
RES
.
getRes
(
'首页元素循环上-输出.svga'
));
...
@@ -80,10 +86,6 @@ export class IndexScene extends Scene {
...
@@ -80,10 +86,6 @@ export class IndexScene extends Scene {
sendLog
(
"click"
,
9
);
sendLog
(
"click"
,
9
);
this
.
handleShare
();
this
.
handleShare
();
},
this
);
},
this
);
if
(
!
getUnionid
()){
this
.
initNonmemberMask
();
}
}
}
initContainer
()
{
initContainer
()
{
...
@@ -94,21 +96,6 @@ export class IndexScene extends Scene {
...
@@ -94,21 +96,6 @@ export class IndexScene extends Scene {
boxArea
.
addChild
(
boxGroup
);
boxArea
.
addChild
(
boxGroup
);
}
}
initNonmemberMask
()
{
const
mask
=
new
FYGE
.
Shape
();
mask
.
beginFill
(
0
,
1
);
mask
.
drawRect
(
0
,
0
,
750
,
1624
);
mask
.
endFill
();
mask
.
alpha
=
0
;
layers
.
topLayer
.
addChild
(
mask
);
mask
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
mask
.
mouseEnable
=
false
;
showPanel
(
memberGuidePanel
,()
=>
{
mask
.
mouseEnable
=
true
;
});
},
this
)
}
initmask
()
{
initmask
()
{
const
mask
=
new
FYGE
.
Shape
();
const
mask
=
new
FYGE
.
Shape
();
mask
.
beginFill
(
0
,
0.3
);
mask
.
beginFill
(
0
,
0.3
);
...
@@ -155,6 +142,11 @@ export class IndexScene extends Scene {
...
@@ -155,6 +142,11 @@ export class IndexScene extends Scene {
}
}
getIndex
=
async
()
=>
{
getIndex
=
async
()
=>
{
if
(
!
getUnionid
()){
getObject
(
this
,
'index_sharetips'
).
visible
=
false
;
getObject
(
this
,
'index_sharehand'
).
visible
=
false
;
return
;
}
const
result
=
await
getWebData
(
WebNetName
.
index
);
const
result
=
await
getWebData
(
WebNetName
.
index
);
indexData
=
result
;
indexData
=
result
;
hand
.
visible
=
false
;
hand
.
visible
=
false
;
...
...
project/src/scenes/initNonmemberMask.ts
0 → 100644
View file @
923faf11
import
{
showPanel
}
from
"../../module/ctrls"
;
import
{
layers
}
from
"../../module/views/layers"
;
import
{
memberGuidePanel
}
from
"../panels/memberGuide"
;
export
const
initNonmemberMask
=
()
=>
{
const
mask
=
new
FYGE
.
Shape
();
mask
.
beginFill
(
0
,
1
);
mask
.
drawRect
(
0
,
0
,
750
,
1624
);
mask
.
endFill
();
mask
.
alpha
=
0
;
layers
.
topLayer
.
addChild
(
mask
);
mask
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
mask
.
mouseEnable
=
false
;
showPanel
(
memberGuidePanel
,()
=>
{
mask
.
mouseEnable
=
true
;
});
},
this
)
}
\ 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