Commit fbb92f26 by hank

修改编辑bug

parent 5e17244f
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <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"> <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="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://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> <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
<title>编辑作品</title> <title>编辑作品</title>
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
type="text" type="text"
@blur="onBlur" @blur="onBlur"
@change="valueChange2()" @change="valueChange2()"
:placeholder="item.description"
v-model="schemaData[item.dataKey].value" v-model="schemaData[item.dataKey].value"
@keyup="valueChange2()" @keyup="valueChange2()"
/> />
...@@ -38,6 +39,7 @@ ...@@ -38,6 +39,7 @@
v-if="item.type === 'textarea'" v-if="item.type === 'textarea'"
class="edit-input-area" class="edit-input-area"
@blur="onBlur" @blur="onBlur"
:placeholder="item.description"
v-model="schemaData[item.dataKey].value" v-model="schemaData[item.dataKey].value"
@keyup="valueChange2()" @keyup="valueChange2()"
@input="valueChange2()" @input="valueChange2()"
...@@ -345,7 +347,7 @@ export default { ...@@ -345,7 +347,7 @@ export default {
} else { } else {
alert("选择类型添加,敬请期待!"); alert("选择类型添加,敬请期待!");
} }
console.log(item); this.$toast('添加成功,请在底部查看')
}, },
getHostUrl(dataUrl) { getHostUrl(dataUrl) {
return getHostUrl(this.frameUrl, dataUrl); return getHostUrl(this.frameUrl, dataUrl);
......
...@@ -733,9 +733,9 @@ export default { ...@@ -733,9 +733,9 @@ export default {
forbidClick: true, forbidClick: true,
duration: 0 duration: 0
}); });
this.message({ // this.message({
type: "getList" // type: "getList"
}); // });
setTimeout(() => { setTimeout(() => {
this.publish(); this.publish();
}, 500); }, 500);
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
@load="getData" @load="getData"
class="iframe preview-iframe" class="iframe preview-iframe"
v-show="loaded" v-show="loaded"
id="previewiframe"
name="previewiframe"
scrolling="no" scrolling="no"
:src="templateData.frameUrl+'?isPreview=1'" :src="templateData.frameUrl+'?isPreview=1'"
frameborder="0" frameborder="0"
...@@ -62,7 +64,7 @@ export default { ...@@ -62,7 +64,7 @@ export default {
}, },
methods: { methods: {
message(data) { 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"); // window.frames[1].postMessage(data, "https://localhost:8082");
}, },
getData() { getData() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment