浏览代码

修改报表样式

wangchao 3 年之前
父节点
当前提交
f7a13a4bd5
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      pages/user/report.vue

+ 5 - 0
pages/user/report.vue

@@ -82,6 +82,11 @@
 			})
 			this.url = "https://liangxin.zthymaoyi.com/map.html?id="+uni.getStorageSync('pcUserInfo').compId
 			this.init()
+			uni.onWindowResize((res) => {
+			    console.log('变化后的窗口宽度=' + res.size.windowWidth)
+			    console.log('变化后的窗口高度=' + res.size.windowHeight)
+				this.init()
+			})
 		},
 		methods: {
 			skipContent(index){