Commit fbb92f26 by hank

修改编辑bug

parent 5e17244f
......@@ -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>
......
......@@ -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);
......
......@@ -733,9 +733,9 @@ export default {
forbidClick: true,
duration: 0
});
this.message({
type: "getList"
});
// this.message({
// type: "getList"
// });
setTimeout(() => {
this.publish();
}, 500);
......
......@@ -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() {
......
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