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
ed4651d3
Commit
ed4651d3
authored
Aug 13, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
7b41d090
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
cost.ts
project/src/panels/cost.ts
+10
-4
RulePanel.ts
project/src/template/RulePanel.ts
+1
-1
No files found.
project/src/panels/cost.ts
View file @
ed4651d3
...
@@ -6,8 +6,13 @@ import getObject from "../common/getObject";
...
@@ -6,8 +6,13 @@ import getObject from "../common/getObject";
let
section
;
let
section
;
export
class
CostPanel
extends
Panel
{
export
class
CostPanel
extends
Panel
{
share_share_go
(){
start
(){
console
.
log
(
'share_share_go'
);
super
.
start
();
const
cost
=
1234567890
;
getObject
(
this
,
'cost_tips'
).
text
=
`消耗
${
cost
}
积分拆开1个盲盒`
}
cost_open
(){
console
.
log
(
'cost_open'
);
}
}
get
groupNames
()
{
return
[
"cost"
]
}
get
groupNames
()
{
return
[
"cost"
]
}
...
@@ -22,11 +27,12 @@ export class CostPanel extends Panel {
...
@@ -22,11 +27,12 @@ export class CostPanel extends Panel {
initEvents
()
{
initEvents
()
{
super
.
initEvents
();
super
.
initEvents
();
// getObject(this, 'share_fail_btn').addEventListener(FYGE.MouseEvent.CLICK, this.share_share_go
, this);
getObject
(
this
,
'cost_open'
).
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
cost_open
,
this
);
}
}
removeEvents
()
{
removeEvents
()
{
super
.
removeEvents
();
super
.
removeEvents
();
// getObject(this, 'share_fail_btn').removeEventListener(FYGE.MouseEvent.CLICK, this.share_share_go
, this);
getObject
(
this
,
'cost_open'
).
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
cost_open
,
this
);
}
}
protected
get
closeBtns
():
any
[]
{
protected
get
closeBtns
():
any
[]
{
...
...
project/src/template/RulePanel.ts
View file @
ed4651d3
...
@@ -46,7 +46,7 @@ export class RulePanel extends Panel {
...
@@ -46,7 +46,7 @@ export class RulePanel extends Panel {
section
.
style
.
overflowY
=
"auto"
;
section
.
style
.
overflowY
=
"auto"
;
section
.
style
.
width
=
432
+
"px"
;
section
.
style
.
width
=
432
+
"px"
;
section
.
style
.
height
=
492
+
"px"
;
section
.
style
.
height
=
492
+
"px"
;
section
.
style
.
lineHeight
=
48
+
"px"
;
section
.
style
.
lineHeight
=
36
+
"px"
;
section
.
style
.
fontSize
=
this
.
ruleTxt
.
size
+
'px'
;
section
.
style
.
fontSize
=
this
.
ruleTxt
.
size
+
'px'
;
section
.
style
.
color
=
this
.
ruleTxt
.
fillColor
;
section
.
style
.
color
=
this
.
ruleTxt
.
fillColor
;
section
.
style
.
whiteSpace
=
"pre-line"
;
section
.
style
.
whiteSpace
=
"pre-line"
;
...
...
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