Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
ww_question
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
ww_question
Commits
0a60359a
Commit
0a60359a
authored
Aug 14, 2020
by
liujiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
www
parent
345d06e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
play.component.ts
src/app/play/play.component.ts
+14
-11
No files found.
src/app/play/play.component.ts
View file @
0a60359a
...
...
@@ -151,21 +151,24 @@ export class PlayComponent implements OnInit, OnDestroy {
if
(
data
&&
typeof
data
===
'
object
'
)
{
this
.
data
=
data
;
this
.
zoomIn
=
false
;
this
.
options
=
_
.
get
(
this
.
data
.
contentObj
,
'
options
'
,
[]).
map
(
item
=>
{
item
.
state
=
''
;
// Ken 2019-04-15 22:38 把showPic, showText的逻辑换为type
if
(
_
.
isUndefined
(
item
.
type
))
{
item
.
type
=
item
.
showPic
?
this
.
OPTION_TYPE
.
PIC
:
this
.
OPTION_TYPE
.
TEXT
;
}
return
item
;
});
}
}
this
.
zoomIn
=
false
;
this
.
options
=
_
.
get
(
this
.
data
.
contentObj
,
'
options
'
,
[]).
map
(
item
=>
{
item
.
state
=
''
;
// Ken 2019-04-15 22:38 把showPic, showText的逻辑换为type
if
(
_
.
isUndefined
(
item
.
type
))
{
item
.
type
=
item
.
showPic
?
this
.
OPTION_TYPE
.
PIC
:
this
.
OPTION_TYPE
.
TEXT
;
}
return
item
;
});
this
.
changeDetectorRef
.
markForCheck
();
this
.
changeDetectorRef
.
detectChanges
();
this
.
refresh
();
if
(
window
[
'
air
'
])
{
window
[
'
air
'
].
hideAirClassLoading
(
this
.
saveKey
,
this
.
data
);
}
this
.
refresh
();
},
this
.
saveKey
);
}
...
...
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