Commit 9dd8dc8e authored by youjie's avatar youjie

优化 iframe 渲染

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