Commit e874755b authored by youjie's avatar youjie

优化行程图 iframe 路由

parent 0d45d187
...@@ -123,9 +123,9 @@ ...@@ -123,9 +123,9 @@
</UpgradedVersion> </UpgradedVersion>
</div> </div>
<!-- ppt 模版行程 --> <!-- ppt 模版行程 -->
<!-- v-loading="iframeLoading" --> <!-- -->
<div v-if="FeatureData.FeatureType==9&&FeatureDataFlag"> <div v-show="FeatureData.FeatureType==9&&FeatureDataFlag" v-loading="iframeLoading">
<iframe :src="TemplateUrlImg" style="width: 100%;border: 0;" <iframe name="myIframe" :src="TemplateUrlImg" style="width: 100%;border: 0;"
:style="{'height':TemplateUrlImgH+'px'}" > :style="{'height':TemplateUrlImgH+'px'}" >
</iframe> </iframe>
<!-- <div v-if="FeatureData.TripImageListNew&&FeatureData.TripImageListNew.length>0"> <!-- <div v-if="FeatureData.TripImageListNew&&FeatureData.TripImageListNew.length>0">
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
:preview-src-list="FeatureData.TripImageListNew"></el-image> :preview-src-list="FeatureData.TripImageListNew"></el-image>
</template> </template>
</div> --> </div> -->
<div v-if="FeatureData.TripImageListNew.length==0" style="text-align: center;margin-bottom: 20px;font-size: 14px;color: #808080;">暂无数据,右上角编辑行程试试吧!</div> <div v-if="PostMessageText" style="text-align: center;margin-bottom: 20px;font-size: 14px;color: #808080;">暂无数据,右上角编辑行程试试吧!</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -289,7 +289,8 @@ ...@@ -289,7 +289,8 @@
TemplateUrlImg:'',//行程特色url TemplateUrlImg:'',//行程特色url
TemplateUrlImgH: 0, TemplateUrlImgH: 0,
isPostMessage: false, isPostMessage: false,
iframeLoading: true, PostMessageText: '',
iframeLoading: false,
}; };
}, },
created: function () {}, created: function () {},
...@@ -307,8 +308,11 @@ ...@@ -307,8 +308,11 @@
}else if(event.data.indexOf('行程特色高')!=-1){ }else if(event.data.indexOf('行程特色高')!=-1){
let datas = event.data.split('-') let datas = event.data.split('-')
this.TemplateUrlImgH = datas[1] this.TemplateUrlImgH = datas[1]
}
this.iframeLoading = false this.iframeLoading = false
}else if(event.data=='暂无行程数据'){
this.PostMessageText = event.data
this.iframeLoading = false
}
}, },
// 添加编辑模版 // 添加编辑模版
journeyTemplate(type){ journeyTemplate(type){
...@@ -554,6 +558,7 @@ ...@@ -554,6 +558,7 @@
this.initFileList(); this.initFileList();
if(this.FeatureData.FeatureType==9) { if(this.FeatureData.FeatureType==9) {
this.iframeLoading = true this.iframeLoading = true
document.all.myIframe.src = this.TemplateUrlImg
} }
}, },
//点击折叠 //点击折叠
......
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