瀏覽代碼

url参数childLayout控制加载指定户型

caodongdong 1 年之前
父節點
當前提交
0de292b56e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/pages/webgl_rxdz/webgl_rxdz.vue

+ 2 - 2
src/pages/webgl_rxdz/webgl_rxdz.vue

@@ -150,7 +150,7 @@
 			console.log("***onLoad-webgl_rxdz***", this.$route.query)
 			var that = this;
 			this.houseId = this.$store.state.houseId || '';
-			this.childLayout = '4';//4-测试户型
+			this.childLayout = this.$store.state.childLayout || 0;//4-测试户型
 			let unit = window.screen.width / 750;//单位rpm 对应 px 的值
 			that.canvasHeight = window.screen.height - (200 * unit) + (20 * unit);
 			
@@ -952,7 +952,7 @@
 
 				let changeWidth = Math.abs(newWidth - curSpace.spaceWidth)
 				let changeHeight = Math.abs(newHeight - curSpace.spaceHeight)
-				
+
 				console.log("变化的尺寸", changeWidth, changeHeight, data, curSpace.spaceWidth, curSpace.spaceHeight);
 			
 				if(curSpace.quadrant == 1){