Commit 3fcf78ed authored by youjie's avatar youjie

no message

parent 1afbf0ef
...@@ -782,12 +782,14 @@ export default { ...@@ -782,12 +782,14 @@ export default {
} }
this.$nextTick(() => { this.$nextTick(() => {
if(this.dataList.feature.featureHtml!=''){ if(this.dataList.feature.featureHtml!=''){
let tw = let tw = parseFloat(
this.$q.platform.is.desktop?parseFloat(
this.$refs.diyContext.getBoundingClientRect().width this.$refs.diyContext.getBoundingClientRect().width
) / 1123.0 :parseFloat( ) / 1123.0
this.$refs.diyContext.getBoundingClientRect().width if(this.$q.platform.is.mobile){
) / 975.0; let zoombox = document.querySelector("#setZoom");
let div = zoombox.getElementsByTagName("div")[0]
div.style.zoom = document.documentElement.clientWidth/1123.0
}
this.zoomDiyContext = tw > 1 ? 1 : tw.toFixed(2); this.zoomDiyContext = tw > 1 ? 1 : tw.toFixed(2);
} }
......
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