Commit 0322a66c by hank

修改ios bug

parent 67c8fa5f
......@@ -153,11 +153,20 @@
</div>
<iframe
style="height: 0px;width: 100%;"
v-if="isIos"
v-show="false"
v-if="isIos && dataLoaded"
@load="iframetestLoad"
scrolling="no"
:src="templateData.frameUrl+'?isEdit=1'"
:src="templateData.frameUrl+'?isEdit=1&filmId='+templateData.filmId + '#' + time"
frameborder="0"
></iframe>
<iframe
style="height: 0px;width: 100%;"
v-show="false"
v-if="isIos && dataLoaded"
@load="iframetestLoad"
scrolling="no"
:src="templateData.frameUrl+'?isEdit=1&filmId='+templateData.filmId + '#' + time"
frameborder="0"
></iframe>
<div
......@@ -177,7 +186,7 @@
frameborder="0"
></iframe>
</div>
<!--
:src="templateData.frameUrl+'?isEdit=1&filmId='+templateData.filmId + '&now=' + time"
https://visual-clouds.bdideal.com/html/test2.html
......@@ -197,11 +206,7 @@
</slider>
</div>-->
<div class="group-menu" v-if="templateData.listData[currentPage]" v-show="!clipImg">
<swiper
:options="swiperOption"
style="width: 100vh;"
ref="mySwiper"
>
<swiper :options="swiperOption" style="width: 100vh;" ref="mySwiper">
<swiperSlide
style="width:auto;"
v-for="(item, index) in templateData.listData[currentPage].itemList"
......@@ -346,9 +351,10 @@ export default {
isEdited: false,
mode: "",
loaded: false,
dataLoaded: false,
iframeLoaded: false,
show: false,
isIos: true,
isIos: false,
pageViews: false,
isPreview: false,
currentPage: 0,
......@@ -647,13 +653,17 @@ export default {
var pagesData = res.data.pageList;
this.templateData.defaultData = pagesData;
});
// this.loaded = true;
if (!this.isIos) {
this.loaded = true;
} else {
// alert(this.isIos)
this.dataLoaded = true;
}
// this.$toast("数据加载完成");
setTimeout(() => {
window.frames["tiframe"].location.reload();
}, 500);
// setTimeout(() => {
// window.frames["tiframe"].location.reload();
// }, 500);
// console.log()
// this.setList()
});
......@@ -668,14 +678,11 @@ export default {
this.templateData.frameUrl = res.data.frameUrl;
this.templateData.filmDescribe = res.data.templateDescribe;
this.templateData.templateShow = res.data.templateShow;
if (!this.isIos) {
this.loaded = true;
}
// if (!this.isIos) {
// this.loaded = true;
// }
// this.loaded = true;
// this.$toast("数据加载完成");
setTimeout(() => {
window.frames["tiframe"].location.reload();
console.log("reload");
}, 500);
axios
.get(
res.data.resourceUrl.replace(
......@@ -692,6 +699,11 @@ export default {
this.templateData.defaultData = pagesData;
this.setList();
});
if (!this.isIos) {
this.loaded = true;
} else {
this.dataLoaded = true;
}
});
},
publish() {
......
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