Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
ww_daily-conversation
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_daily-conversation
Commits
2813618d
Commit
2813618d
authored
Aug 15, 2020
by
liujiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asdasd
parent
f72d7b9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
play.component.html
src/app/play/play.component.html
+2
-2
play.component.ts
src/app/play/play.component.ts
+6
-1
No files found.
src/app/play/play.component.html
View file @
2813618d
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
<div
class=
"p-content"
>
<div
class=
"p-content"
>
<div
class=
"p-conversation-box"
nz-row
nzGutter=
"16"
nzType=
"flex"
>
<div
class=
"p-conversation-box"
nz-row
nzGutter=
"16"
nzType=
"flex"
>
<div
nz-col
nzSpan=
"8"
*
ngFor=
"let item of data.contentObj.list; index as i;"
>
<div
nz-col
nzSpan=
"8"
*
ngFor=
"let item of data.contentObj.list; index as i;"
>
<div
class=
"p-conversation"
[
style
.
border-color
]="
colorArr
[
i
]"
(
click
)="
curItem=
item;
curIndex=
i;
"
>
<div
class=
"p-conversation"
[
style
.
border-color
]="
colorArr
[
i
]"
(
click
)="
selectItem
(
item
,
i
)
"
>
{{item.text}}
{{item.text}}
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"p-popup-box"
[@
fadePopup
]
*
ngIf=
"curItem"
<div
class=
"p-popup-box"
[@
fadePopup
]
*
ngIf=
"curItem"
[
style
.
border-color
]="
colorArr
[
curIndex
]"
>
[
style
.
border-color
]="
colorArr
[
curIndex
]"
>
<div
class=
"i-close"
(
click
)="
onClosePopup
()"
>
<div
class=
"i-close"
(
click
)="
onClosePopup
()"
>
...
...
src/app/play/play.component.ts
View file @
2813618d
...
@@ -63,9 +63,11 @@ export class PlayComponent implements OnInit {
...
@@ -63,9 +63,11 @@ export class PlayComponent implements OnInit {
}
}
};
};
// 获取数据
// 获取数据
const
getData
=
(
window
as
any
).
courseware
.
getData
;
const
getData
=
(
window
as
any
).
courseware
.
getData
;
getData
((
data
)
=>
{
getData
((
data
)
=>
{
console
.
log
(
1111
,
data
)
if
(
data
&&
typeof
data
===
'
object
'
)
{
if
(
data
&&
typeof
data
===
'
object
'
)
{
this
.
data
=
data
;
this
.
data
=
data
;
}
}
...
@@ -76,7 +78,10 @@ export class PlayComponent implements OnInit {
...
@@ -76,7 +78,10 @@ export class PlayComponent implements OnInit {
},
this
.
saveKey
);
},
this
.
saveKey
);
}
}
selectItem
(
item
,
i
){
this
.
curItem
=
item
;
this
.
curIndex
=
i
;
}
ngOnDestroy
()
{
ngOnDestroy
()
{
}
}
...
...
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