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
ac0b53f2
Commit
ac0b53f2
authored
Sep 27, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
36b52d7a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
index.do.json
project/mock/webNet/dazzle/index.do.json
+2
-2
IndexScene.ts
project/src/scenes/IndexScene.ts
+12
-8
No files found.
project/mock/webNet/dazzle/index.do.json
View file @
ac0b53f2
...
@@ -3,9 +3,9 @@
...
@@ -3,9 +3,9 @@
"data"
:
{
"data"
:
{
"needPop"
:
0
,
"needPop"
:
0
,
"activityOver"
:
false
,
"activityOver"
:
false
,
"surplusCount"
:
0
,
"surplusCount"
:
1
,
"credits"
:
10
,
"credits"
:
10
,
"needCredits"
:
1
,
"needCredits"
:
1
11
,
"type"
:
1
,
"type"
:
1
,
"options"
:
[{
"options"
:
[{
"degree"
:
null
,
"degree"
:
null
,
...
...
project/src/scenes/IndexScene.ts
View file @
ac0b53f2
...
@@ -17,7 +17,7 @@ import { BoxGroup } from "./BoxGroup";
...
@@ -17,7 +17,7 @@ import { BoxGroup } from "./BoxGroup";
import
{
initNonmemberMask
}
from
"./initNonmemberMask"
;
import
{
initNonmemberMask
}
from
"./initNonmemberMask"
;
import
{
ScrollItem
}
from
"./ScrollItem"
;
import
{
ScrollItem
}
from
"./ScrollItem"
;
if
(
!
getQueryParams
().
notwatchtag
)
{
if
(
!
getQueryParams
().
notwatchtag
)
{
watchPageVisibility
((
visible
)
=>
{
watchPageVisibility
((
visible
)
=>
{
console
.
log
(
'页面visible'
,
visible
);
console
.
log
(
'页面visible'
,
visible
);
if
(
visible
)
{
if
(
visible
)
{
...
@@ -80,16 +80,16 @@ export class IndexScene extends Scene {
...
@@ -80,16 +80,16 @@ export class IndexScene extends Scene {
const
credits
=
getObject
(
this
,
'index_moneytips2'
);
const
credits
=
getObject
(
this
,
'index_moneytips2'
);
credits
.
position
.
set
(
420
,
1130
);
credits
.
position
.
set
(
420
,
1130
);
credits
.
size
=
25
;
credits
.
size
=
25
;
const
ruleBtn
=
getObject
(
this
,
'index_rule'
);
const
ruleBtn
=
getObject
(
this
,
'index_rule'
);
const
myPrizeBtn
=
getObject
(
this
,
'index_record'
);
const
myPrizeBtn
=
getObject
(
this
,
'index_record'
);
const
title1
=
getObject
(
this
,
'index_logo1'
);
const
title1
=
getObject
(
this
,
'index_logo1'
);
const
title2
=
getObject
(
this
,
'index_logo2'
);
const
title2
=
getObject
(
this
,
'index_logo2'
);
const
border
=
getObject
(
this
,
'index_bg2'
);
const
border
=
getObject
(
this
,
'index_bg2'
);
ruleBtn
.
y
=
(
1624
-
layers
.
stageHeight
)
/
2
+
layers
.
stageHeight
*
0.05
;
ruleBtn
.
y
=
(
1624
-
layers
.
stageHeight
)
/
2
+
layers
.
stageHeight
*
0.05
;
myPrizeBtn
.
y
=
(
1624
-
layers
.
stageHeight
)
/
2
+
layers
.
stageHeight
*
0.05
;
myPrizeBtn
.
y
=
(
1624
-
layers
.
stageHeight
)
/
2
+
layers
.
stageHeight
*
0.05
;
title1
.
y
=
(
1624
-
layers
.
stageHeight
)
/
2
+
layers
.
stageHeight
*
0.05
;
title1
.
y
=
(
1624
-
layers
.
stageHeight
)
/
2
+
layers
.
stageHeight
*
0.05
;
// title2.y = (1624 - layers.stageHeight) / 2 + layers.stageHeight * 0.05 + 89;
// title2.y = (1624 - layers.stageHeight) / 2 + layers.stageHeight * 0.05 + 89;
title2
.
y
=
(
border
.
y
+
title1
.
y
-
title2
.
height
)
/
2
;
title2
.
y
=
(
border
.
y
+
title1
.
y
-
title2
.
height
)
/
2
;
// const index_moneytips = getObject(this, 'index_moneytips');
// const index_moneytips = getObject(this, 'index_moneytips');
// index_moneytips.position.set(480, 1131);
// index_moneytips.position.set(480, 1131);
...
@@ -124,7 +124,7 @@ export class IndexScene extends Scene {
...
@@ -124,7 +124,7 @@ export class IndexScene extends Scene {
this
.
stage
.
addEventListener
(
'updateIndexData'
,
this
.
getIndex
,
this
);
this
.
stage
.
addEventListener
(
'updateIndexData'
,
this
.
getIndex
,
this
);
this
.
stage
.
addEventListener
(
'handleShare'
,
this
.
handleShare
,
this
);
this
.
stage
.
addEventListener
(
'handleShare'
,
this
.
handleShare
,
this
);
if
(
result
.
data
.
needPop
)
{
if
(
result
.
data
.
needPop
)
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
showPanel
(
SharePanel
);
showPanel
(
SharePanel
);
},
10
);
},
10
);
...
@@ -227,11 +227,15 @@ export class IndexScene extends Scene {
...
@@ -227,11 +227,15 @@ export class IndexScene extends Scene {
}
else
{
}
else
{
getBoxButton
.
visible
=
true
;
getBoxButton
.
visible
=
true
;
shareButton
.
visible
=
false
;
shareButton
.
visible
=
false
;
if
(
result
.
data
.
needCredits
>
result
.
data
.
credits
)
{
getBoxButton
.
visible
=
false
;
shareButton
.
visible
=
true
;
}
}
}
}
else
{
}
else
{
if
(
result
.
data
.
surplusCount
>
0
)
{
if
(
result
.
data
.
surplusCount
>
0
)
{
needCredits
.
text
=
'免费拆盒'
;
needCredits
.
text
=
'免费拆
盲
盒'
;
reDegree
.
text
=
`
${
result
.
data
.
surplusCount
}
`
;
reDegree
.
text
=
`
${
result
.
data
.
surplusCount
}
`
;
getBoxButton
.
visible
=
true
;
getBoxButton
.
visible
=
true
;
shareButton
.
visible
=
false
;
shareButton
.
visible
=
false
;
...
...
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