Commit 42d66461 authored by 沈良进's avatar 沈良进

Merge branch 'master' of http://gitlab.oytour.com/viitto/million

parents bf89350e 650a6209
......@@ -787,13 +787,17 @@ export default {
let tw = parseFloat(
this.$refs.diyContext.getBoundingClientRect().width
) / 1123.0
if(this.$q.platform.is.mobile){
let divArr = document.querySelectorAll("#setZoom>div")
for(let i=0;i<divArr.length;i++){
let div = divArr[i]
div.style.zoom = div.offsetWidth>1000?0.999:document.documentElement.clientWidth/1123.0
if(this.$q.platform.is.mobile){
div.style.zoom = div.offsetWidth>1000?0.999:document.documentElement.clientWidth/1123.0
}else{
div.style.zoom = 1
}
}
}
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