Commit 0322a66c by hank

修改ios bug

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