Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
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
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
new-sing
admin-base
Commits
83a966f9
Commit
83a966f9
authored
Dec 07, 2018
by
wangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert: Merge branch 'master' into my
parent
60402fb4
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
152 additions
and
267 deletions
+152
-267
editor.vue
src/components/resources/editor.vue
+2
-20
editorDialog.vue
src/components/resources/editorDialog.vue
+149
-247
index.vue
src/components/textarea/index.vue
+1
-0
No files found.
src/components/resources/editor.vue
View file @
83a966f9
...
@@ -26,12 +26,7 @@
...
@@ -26,12 +26,7 @@
<div
class=
"dialog-card"
>
<div
class=
"dialog-card"
>
序号:
{{
index
}}
序号:
{{
index
}}
</div>
</div>
<img
:src=
"moIMG.lookUrl"
v-if=
"data.key === 'look1'"
class=
"image"
>
<img
:src=
"data.imgUrl"
class=
"image"
>
<img
:src=
"moIMG.playRadioUrl"
v-if=
"data.key === 'radio1'"
class=
"image"
>
<img
:src=
"moIMG.playVideoUrl"
v-if=
"data.key === 'play1'"
class=
"image"
>
<img
:src=
"moIMG.RefuelingUrl"
v-if=
"data.key === 'refueling1'"
class=
"image"
>
<img
:src=
"moIMG.showBabyUrl"
v-if=
"data.key === 'show1'"
class=
"image"
>
<img
:src=
"moIMG.RefuelingUrl2"
v-if=
"data.key === 'refueling2'"
class=
"image"
>
</el-card>
</el-card>
</div>
</div>
</div>
</div>
...
@@ -794,12 +789,7 @@
...
@@ -794,12 +789,7 @@
<
script
>
<
script
>
import
mouldImg
from
'../../util/mouldImgUrl'
import
mouldImg
from
'../../util/mouldImgUrl'
import
{
uploadFileApi
}
from
"../../service/api"
;
import
{
uploadFileApi
}
from
"../../service/api"
;
import
lookUrl
from
'../../assets/mould/example/look.png'
import
playRadioUrl
from
'../../assets/mould/example/playRadio.png'
import
playVideoUrl
from
'../../assets/mould/example/playVideo.png'
import
RefuelingUrl
from
'../../assets/mould/example/Refueling.png'
import
showBabyUrl
from
'../../assets/mould/example/showBaby.png'
import
RefuelingUrl2
from
'../../assets/mould/example/RefuelingUrl2.png'
export
default
{
export
default
{
name
:
"editor"
,
name
:
"editor"
,
props
:[
props
:[
...
@@ -808,14 +798,6 @@
...
@@ -808,14 +798,6 @@
],
],
data
(){
data
(){
return
{
return
{
moIMG
:{
lookUrl
:
lookUrl
,
playRadioUrl
:
playRadioUrl
,
playVideoUrl
:
playVideoUrl
,
RefuelingUrl
:
RefuelingUrl
,
showBabyUrl
:
showBabyUrl
,
RefuelingUrl2
:
RefuelingUrl2
},
// 放大缩小参数
// 放大缩小参数
bigNum
:
50
,
bigNum
:
50
,
// 弹窗参数
// 弹窗参数
...
...
src/components/resources/editorDialog.vue
View file @
83a966f9
This diff is collapsed.
Click to expand it.
src/components/textarea/index.vue
View file @
83a966f9
...
@@ -180,6 +180,7 @@
...
@@ -180,6 +180,7 @@
});
});
return
false
return
false
}
}
let
str
=
`<p style="text-align: center"><img class="mce-object mce-object-audio" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" width="280" height="55" data-mce-p-controls="controls" data-mce-html="%0A%3Csource%20src%3D%22https%3A//cdn.singsingenglish.com/
${
this
.
radio
[
0
].
url
}
%22%20type%3D%22audio/mpeg%22%20/%3E" data-mce-object="audio"></p>`
;
let
str
=
`<p style="text-align: center"><img class="mce-object mce-object-audio" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" width="280" height="55" data-mce-p-controls="controls" data-mce-html="%0A%3Csource%20src%3D%22https%3A//cdn.singsingenglish.com/
${
this
.
radio
[
0
].
url
}
%22%20type%3D%22audio/mpeg%22%20/%3E" data-mce-object="audio"></p>`
;
console
.
log
(
str
);
console
.
log
(
str
);
this
.
insertContent
(
str
);
this
.
insertContent
(
str
);
...
...
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