Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
0f16d3e7
Commit
0f16d3e7
authored
Mar 24, 2021
by
chenshu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:优化样式
parent
33063f28
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/modules/course-manage/components/GraphicsEditor.jsx
+1
-0
src/modules/course-manage/graphics-course/AddGraphicsCourse.jsx
+1
-2
No files found.
src/modules/course-manage/components/GraphicsEditor.jsx
View file @
0f16d3e7
...
@@ -156,6 +156,7 @@ class GraphicsEditor extends React.Component {
...
@@ -156,6 +156,7 @@ class GraphicsEditor extends React.Component {
const
videoCount
=
((
html
||
''
).
match
(
/<iframe/g
)
||
[]).
length
;
const
videoCount
=
((
html
||
''
).
match
(
/<iframe/g
)
||
[]).
length
;
const
imageCount
=
((
html
||
''
).
match
(
/<img/g
)
||
[]).
length
;
const
imageCount
=
((
html
||
''
).
match
(
/<img/g
)
||
[]).
length
;
const
textLength
=
this
.
editorInt
.
txt
.
text
().
replace
(
/
\&
nbsp
\;
/ig
,
' '
).
length
+
videoCount
+
imageCount
;
const
textLength
=
this
.
editorInt
.
txt
.
text
().
replace
(
/
\&
nbsp
\;
/ig
,
' '
).
length
+
videoCount
+
imageCount
;
console
.
log
(
html
,
777777
)
this
.
setState
({
textLength
},
()
=>
{
this
.
setState
({
textLength
},
()
=>
{
onChange
(
html
,
this
.
state
.
textLength
);
onChange
(
html
,
this
.
state
.
textLength
);
})
})
...
...
src/modules/course-manage/graphics-course/AddGraphicsCourse.jsx
View file @
0f16d3e7
...
@@ -308,7 +308,7 @@ class AddGraphicsCourse extends React.Component {
...
@@ -308,7 +308,7 @@ class AddGraphicsCourse extends React.Component {
const
{
ossUrl
}
=
file
;
const
{
ossUrl
}
=
file
;
const
{
courseMedia
}
=
this
.
state
;
const
{
courseMedia
}
=
this
.
state
;
this
.
setState
({
this
.
setState
({
courseMedia
:
`
${
courseMedia
}
<p style="width: 100%;padding-top: 56.25%;position: relative;"><iframe style="position: absolute;width: 100%;height: 100%;top: 0;left: 0;" src="
${
ossUrl
}
"
/><br/><
p>`
courseMedia
:
`
${
courseMedia
}
<p style="width: 100%;padding-top: 56.25%;position: relative;"><iframe style="position: absolute;width: 100%;height: 100%;top: 0;left: 0;" src="
${
ossUrl
}
"
></iframe><br/></p><p><br/></
p>`
});
});
}
}
...
@@ -318,7 +318,6 @@ class AddGraphicsCourse extends React.Component {
...
@@ -318,7 +318,6 @@ class AddGraphicsCourse extends React.Component {
})
})
const
{
ossUrl
}
=
file
;
const
{
ossUrl
}
=
file
;
const
{
courseMedia
,
introduce
,
isContent
}
=
this
.
state
;
const
{
courseMedia
,
introduce
,
isContent
}
=
this
.
state
;
console
.
log
(
isContent
,
55555555
)
this
.
setState
({
this
.
setState
({
[
isContent
?
'courseMedia'
:
'introduce'
]:
`
${
isContent
?
courseMedia
:
introduce
}
<p><img style="max-width: 100%;" src="
${
ossUrl
}
" /><br/><p>`
[
isContent
?
'courseMedia'
:
'introduce'
]:
`
${
isContent
?
courseMedia
:
introduce
}
<p><img style="max-width: 100%;" src="
${
ossUrl
}
" /><br/><p>`
});
});
...
...
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