Commit 9dd8dc8e authored by youjie's avatar youjie

优化 iframe 渲染

parent ce3880de
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
</UpgradedVersion> </UpgradedVersion>
</div> </div>
<!-- ppt 模版行程 --> <!-- ppt 模版行程 -->
<div v-if="FeatureData.FeatureType==9&&FeatureDataFlag"> <div v-if="FeatureData.FeatureType==9&&FeatureDataFlag" v-loading="iframeLoading">
<iframe :src="TemplateUrlImg" style="width: 100%;border: 0;" <iframe :src="TemplateUrlImg" style="width: 100%;border: 0;"
:style="{'height':TemplateUrlImgH+'px'}"> :style="{'height':TemplateUrlImgH+'px'}">
</iframe> </iframe>
...@@ -288,6 +288,7 @@ ...@@ -288,6 +288,7 @@
TemplateUrlImg:'',//行程特色url TemplateUrlImg:'',//行程特色url
TemplateUrlImgH: 0, TemplateUrlImgH: 0,
isPostMessage: false, isPostMessage: false,
iframeLoading: false,
}; };
}, },
created: function () {}, created: function () {},
...@@ -303,6 +304,7 @@ ...@@ -303,6 +304,7 @@
this.isPostMessage = true this.isPostMessage = true
this.$emit('ConfigInfo') this.$emit('ConfigInfo')
}else if(event.data.indexOf('行程特色高')!=-1){ }else if(event.data.indexOf('行程特色高')!=-1){
this.iframeLoading = false
let datas = event.data.split('-') let datas = event.data.split('-')
this.TemplateUrlImgH = datas[1] this.TemplateUrlImgH = datas[1]
} }
...@@ -549,6 +551,9 @@ ...@@ -549,6 +551,9 @@
}); });
} }
this.initFileList(); this.initFileList();
if(this.FeatureData.FeatureType==9) {
this.iframeLoading = true
}
}, },
//点击折叠 //点击折叠
fold() { fold() {
......
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 to comment