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
1a56eafa
Commit
1a56eafa
authored
Dec 13, 2018
by
chenfenglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
富文本
parent
c75bfa8c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
dialog.vue
src/components/shop/dialog.vue
+2
-6
editorDetail.vue
src/components/shop/editorDetail.vue
+6
-1
editorKnow.vue
src/components/shop/editorKnow.vue
+1
-1
No files found.
src/components/shop/dialog.vue
View file @
1a56eafa
...
...
@@ -246,7 +246,7 @@
<el-col
:span=
"24"
>
<el-form-item
label=
"商品详情"
>
<!--
<el-input
type=
"textarea"
:rows=
"25"
v-model=
"form.desc.detail"
></el-input>
-->
<editor-detail
:lookData=
"form.desc
.detail
"
/>
<editor-detail
:lookData=
"form.desc"
/>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -254,7 +254,7 @@
<el-col
:span=
"24"
>
<el-form-item
label=
"购买须知"
>
<!--
<el-input
type=
"textarea"
:rows=
"25"
v-model=
"form.desc.qa"
></el-input>
-->
<editor-know
:lookData1=
"form.desc
.qa
"
/>
<editor-know
:lookData1=
"form.desc"
/>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -337,8 +337,6 @@
},
methods
:{
sub
(){
this
.
form
.
desc
.
detail
=
tinymce
.
get
(
'tinymce'
).
getContent
()
this
.
form
.
desc
.
qa
=
tinymce
.
get
(
'tinymce1'
).
getContent
()
let
_json
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
)
+
''
);
if
(
_json
.
goods_type
===
3
||
_json
.
goods_type
===
4
){
_json
.
course_id
=
0
;
...
...
@@ -383,8 +381,6 @@
// });
break
}
tinymce
.
get
(
'tinymce'
).
getContent
(
""
)
tinymce
.
get
(
'tinymce1'
).
getContent
(
""
)
},
removeFileMain
(
a
){
let
x
=
this
.
form
.
goods_desc
.
img
.
findIndex
(
i
=>
{
return
i
.
name
===
a
.
name
});
...
...
src/components/shop/editorDetail.vue
View file @
1a56eafa
<
template
>
<div
class=
'tinymce'
>
<editor
id=
'tinymce'
v-model=
'lookData'
:init=
'init'
></editor>
<editor
id=
'tinymce'
v-model=
'lookData
.detail
'
:init=
'init'
></editor>
<div>
<div
class=
"imgInter"
@
click=
"showDialog()"
>
插入图片
</div>
</div>
...
...
@@ -216,3 +216,8 @@
}
}
</
style
>
src/components/shop/editorKnow.vue
View file @
1a56eafa
<
template
>
<div
class=
'tinymce'
>
<editor
id=
'tinymce1'
v-model=
'lookData1'
:init=
'init'
></editor>
<editor
id=
'tinymce1'
v-model=
'lookData1
.qa
'
:init=
'init'
></editor>
<div>
<div
class=
"imgInter"
@
click=
"showDialog1()"
>
插入图片
</div>
</div>
...
...
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