Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
visualcloud
/
Vmatrix-client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fbb92f26
authored
Dec 24, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改编辑bug
parent
5e17244f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
public/index.html
+1
-1
src/views/tempaltes/editMenu.vue
+3
-1
src/views/tempaltes/editMore.vue
+3
-3
src/views/tempaltes/preview.vue
+3
-1
No files found.
public/index.html
View file @
fbb92f26
...
...
@@ -6,7 +6,7 @@
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<meta
content=
"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"
id=
"viewport"
name=
"viewport"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<
link
rel=
"stylesheet"
href=
"https://unpkg.com/vue2-animate/dist/vue2-animate.min.css"
/
>
<
!-- <link rel="stylesheet" href="https://unpkg.com/vue2-animate/dist/vue2-animate.min.css"/> --
>
<!-- <script type="text/javascript" src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script> -->
<script
type=
"text/javascript"
src=
"https://res.wx.qq.com/open/js/jweixin-1.3.2.js"
></script>
<title>
编辑作品
</title>
...
...
src/views/tempaltes/editMenu.vue
View file @
fbb92f26
...
...
@@ -31,6 +31,7 @@
type=
"text"
@
blur=
"onBlur"
@
change=
"valueChange2()"
:placeholder=
"item.description"
v-model=
"schemaData[item.dataKey].value"
@
keyup=
"valueChange2()"
/>
...
...
@@ -38,6 +39,7 @@
v-if=
"item.type === 'textarea'"
class=
"edit-input-area"
@
blur=
"onBlur"
:placeholder=
"item.description"
v-model=
"schemaData[item.dataKey].value"
@
keyup=
"valueChange2()"
@
input=
"valueChange2()"
...
...
@@ -345,7 +347,7 @@ export default {
}
else
{
alert
(
"选择类型添加,敬请期待!"
);
}
console
.
log
(
item
);
this
.
$toast
(
'添加成功,请在底部查看'
)
},
getHostUrl
(
dataUrl
)
{
return
getHostUrl
(
this
.
frameUrl
,
dataUrl
);
...
...
src/views/tempaltes/editMore.vue
View file @
fbb92f26
...
...
@@ -733,9 +733,9 @@ export default {
forbidClick
:
true
,
duration
:
0
});
this
.
message
({
type
:
"getList"
});
//
this.message({
//
type: "getList"
//
});
setTimeout
(()
=>
{
this
.
publish
();
},
500
);
...
...
src/views/tempaltes/preview.vue
View file @
fbb92f26
...
...
@@ -7,6 +7,8 @@
@
load=
"getData"
class=
"iframe preview-iframe"
v-show=
"loaded"
id=
"previewiframe"
name=
"previewiframe"
scrolling=
"no"
:src=
"templateData.frameUrl+'?isPreview=1'"
frameborder=
"0"
...
...
@@ -62,7 +64,7 @@ export default {
},
methods
:
{
message
(
data
)
{
window
.
frames
[
2
].
postMessage
(
data
,
"https://visual-clouds.bdideal.com"
);
window
.
frames
[
'previewiframe'
].
postMessage
(
data
,
"https://visual-clouds.bdideal.com"
);
// window.frames[1].postMessage(data, "https://localhost:8082");
},
getData
()
{
...
...
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