Commit 989bf579 by hank

修改ios 白屏

parent e3a1723c
......@@ -7,7 +7,7 @@ import { getToken, removeToken } from "@/utils/auth";
// console.log(process.env)
const service = axios.create({
baseURL: process.env.VUE_APP_BASE_API, // api 的 base_url
timeout: 300 * 1000, // 请求超时时间, 30秒
timeout: 500 * 1000, // 请求超时时间, 30秒
withCredentials: true
});
......
......@@ -160,15 +160,6 @@
: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
class="iframe-container"
:style="!isIos ? 'width: 100vw' : ''"
......@@ -254,9 +245,9 @@
<van-button type="info" @click="enterSubmit" style="width: 100%">发布</van-button>
</div>
<van-action-sheet v-model="showSheet" :round="true" :actions="actions" @select="onSheetSelect" />
<van-popup v-model="isPreview" style="width:100%">
<!-- <van-popup v-model="isPreview" style="width:100%">
<preview v-if="isPreview" :myonClickLeft="colsePreview"></preview>
</van-popup>
</van-popup>-->
<van-popup v-model="pageViews" style="width:100%" position="right">
<div class="page-container">
<div class="page-content-tips">备注:长按移动模板顺序</div>
......@@ -270,7 +261,7 @@
:list="templateData.listData"
>
<div class="page-item" v-for="(item, index) in templateData.listData" :key="index">
<div name="clear" class="delete-page" @click="deletePage(index)"></div>
<div name="clear" class="delete-page" @click="deletePage(index)"></div>
<div class="page-item-item">
<div
:src="item.thumb"
......@@ -292,7 +283,7 @@
<script>
import NavBar from "@/views/layout/navbar";
import preview from "./preview";
// import preview from "./preview";
// import slider from "./slider";
import { swiper, swiperSlide } from "vue-awesome-swiper";
import "swiper/dist/css/swiper.css";
......@@ -520,7 +511,7 @@ export default {
// 放页面拖拽发生时执行
this.message({
type: "setList",
pages: this.templateData.listData
pages: this.templateData.listData
});
},
setList() {
......@@ -652,6 +643,16 @@ export default {
this.gifloaded = true;
this.iframeLoaded = true;
this.setList();
if (this.isIos) {
this.isPreview = true;
this.$nextTick(() => {
setTimeout(() => {
this.isPreview = false;
}, 1000);
// window.frames["tiframe"].location.reload()
});
}
},
pageShow() {
this.message({
......@@ -879,7 +880,7 @@ export default {
},
components: {
NavBar,
preview,
// preview,
draggable,
editMenu,
swiper,
......@@ -1146,6 +1147,7 @@ export default {
margin: 0 auto;
padding-left: 22px;
padding-right: 22px;
min-height: 169px;
padding-top: 16px;
padding-bottom: 16px;
margin-bottom: 10px;
......
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