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
7a52f778
Commit
7a52f778
authored
Aug 08, 2020
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加默认数据
parent
aa6ee4e7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
10 deletions
+11
-10
form.component.ts
src/app/form/form.component.ts
+0
-8
play.component.scss
src/app/play/play.component.scss
+1
-1
play.component.ts
src/app/play/play.component.ts
+10
-1
2.png
src/assets/daily-conversation/2.png
+0
-0
3.png
src/assets/daily-conversation/3.png
+0
-0
No files found.
src/app/form/form.component.ts
View file @
7a52f778
...
@@ -13,8 +13,6 @@ export class FormComponent implements OnInit {
...
@@ -13,8 +13,6 @@ export class FormComponent implements OnInit {
// 储存对象
// 储存对象
item
;
item
;
test
;
constructor
(
private
appRef
:
ApplicationRef
,
constructor
(
private
appRef
:
ApplicationRef
,
private
changeDetectorRef
:
ChangeDetectorRef
,
private
changeDetectorRef
:
ChangeDetectorRef
,
...
@@ -49,12 +47,6 @@ export class FormComponent implements OnInit {
...
@@ -49,12 +47,6 @@ export class FormComponent implements OnInit {
}
}
imageUploadedTest
(
$event
)
{
this
.
test
=
$event
.
url
;
console
.
log
(
"
******
"
+
this
.
test
);
this
.
save
();
}
imageUploaded
(
$event
,
option
)
{
imageUploaded
(
$event
,
option
)
{
option
.
pic_id
=
$event
.
url
;
option
.
pic_id
=
$event
.
url
;
this
.
save
();
this
.
save
();
...
...
src/app/play/play.component.scss
View file @
7a52f778
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
.p-content
{
.p-content
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
background-image
:
url("/assets/daily-conversation/bg.jpg")
;
background-image
:
url("
../..
/assets/daily-conversation/bg.jpg")
;
@include
k-img-bg
();
@include
k-img-bg
();
}
}
...
...
src/app/play/play.component.ts
View file @
7a52f778
...
@@ -47,7 +47,16 @@ export class PlayComponent implements OnInit {
...
@@ -47,7 +47,16 @@ export class PlayComponent implements OnInit {
curOption
:
any
;
curOption
:
any
;
ngOnInit
()
{
ngOnInit
()
{
this
.
data
=
{};
this
.
data
=
{
contentObj
:
{
list
:
[
{
text
:
'
banana
'
,
options
:
[
{
pic_id
:
"
../../assets/daily-conversation/2.png
"
},
{
pic_id
:
"
../../assets/daily-conversation/3.png
"
}
]}
]
}
};
// 获取数据
// 获取数据
const
getData
=
(
window
as
any
).
courseware
.
getData
;
const
getData
=
(
window
as
any
).
courseware
.
getData
;
...
...
src/assets/daily-conversation/2.png
0 → 100644
View file @
7a52f778
42.2 KB
src/assets/daily-conversation/3.png
0 → 100644
View file @
7a52f778
43.2 KB
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