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
90c7686e
Commit
90c7686e
authored
Aug 10, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
22c927a4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
9 deletions
+12
-9
.DS_Store
.DS_Store
+0
-0
getShareUrl.ts
project/src/getShareUrl.ts
+1
-1
prize.ts
project/src/panels/prize.ts
+10
-7
IndexScene.ts
project/src/scenes/IndexScene.ts
+1
-1
No files found.
.DS_Store
View file @
90c7686e
No preview for this file type
project/src/getShareUrl.ts
View file @
90c7686e
const
base
=
'http
://0.0.0.0:8080/?
'
;
const
base
=
'http
s://activity.saas.duibatest.com.cn/projectx/p8f86726f/index.html?appID=19321&
'
;
export
const
getShareUrl
=
(
queryParams
)
=>
{
let
str
=
''
;
...
...
project/src/panels/prize.ts
View file @
90c7686e
...
...
@@ -29,7 +29,7 @@ const cloneTextField = (prize_tips2) => {
export
class
PrizePanel
extends
Panel
{
amountTxt
:
FYGE
.
TextField
;
percentTxt
:
FYGE
.
TextField
;
inviteBtn
;
inviteBtn
;
prize_close
;
wrapper
;
showAni
()
{
...
...
@@ -52,6 +52,7 @@ export class PrizePanel extends Panel {
var
skin
=
RES
.
getSkinDataByName
(
this
.
skinName
);
this
.
position
.
set
(
skin
.
x
,
skin
.
y
);
this
.
inviteBtn
=
getObject
(
this
,
'prize_invite'
);
this
.
prize_close
=
getObject
(
this
,
'prize_close'
);
this
.
scaleX
=
0
;
this
.
scaleY
=
0
;
...
...
@@ -123,25 +124,27 @@ export class PrizePanel extends Panel {
});
}
hidePanel
()
{
super
.
hidePanel
(
);
changeScene
(
IndexScene
);
onClick_prize_close
()
{
changeScene
(
IndexScene
,{
from
:
'prize'
}
);
this
.
hidePanel
(
);
}
onClick_inviteBtn
()
{
showShareMask
();
}
get
closeBtns
()
{
return
[
getObject
(
this
,
'prize_close'
)];
}
//
get closeBtns() {
//
return [getObject(this, 'prize_close')];
//
}
initEvents
()
{
super
.
initEvents
();
this
.
inviteBtn
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_inviteBtn
,
this
);
this
.
prize_close
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_prize_close
,
this
);
}
removeEvents
()
{
super
.
removeEvents
();
this
.
prize_close
.
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_prize_close
,
this
);
this
.
inviteBtn
.
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_inviteBtn
,
this
);
}
...
...
project/src/scenes/IndexScene.ts
View file @
90c7686e
...
...
@@ -101,7 +101,7 @@ export class IndexScene extends Scene {
super
.
start
(
data
);
data
=
data
||
{};
const
{
action
,
from
}
=
data
;
console
.
log
(
'IndexScene
'
,
'
from='
,
from
,
'action='
,
action
);
console
.
log
(
'IndexScene
from='
,
from
,
'action='
,
action
);
if
(
action
==
'showSharePanel'
)
{
this
.
showSharePanel
();
}
...
...
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