zjs_project 1 年之前
父節點
當前提交
296059f2e5
共有 2 個文件被更改,包括 19 次插入1 次删除
  1. 1 1
      src/components/newBottomCom/viewAI/viewAI.html
  2. 18 0
      src/components/newBottomCom/viewAI/viewAI.vue

+ 1 - 1
src/components/newBottomCom/viewAI/viewAI.html

@@ -160,5 +160,5 @@
 			</div>
 		</div>
 	</div>
-	<video id="videoPlayer" loop muted autoplay style="display: none;" controls="false" webkit-playsinline="webkit-playsinline" playsinline="playsinline" src=""></video>
+	<!-- <video id="videoPlayer" loop muted autoplay style="display: none;" controls="false" webkit-playsinline="webkit-playsinline" playsinline="playsinline" src=""></video> -->
 </div>

+ 18 - 0
src/components/newBottomCom/viewAI/viewAI.vue

@@ -75,6 +75,24 @@
 				default: '',
 			},
 		},
+		watch: {
+			relationId(newVal, oldVal) {
+				if (newVal == null) {
+					return;
+				}
+				console.log("当前空间数据relationId:", newVal);
+				this.tabIndex = 2;//有红包时默认切换为红包
+				if(!this.hasRedBox){
+					setTimeout(()=>{
+						this.addRedBox();//添加红包
+					},500)
+				}
+				// this.curSpaceArea = parseFloat(
+				// 	(newVal.spaceWidth * newVal.spaceHeight) / 10000
+				// ).toFixed(2);
+				// this.getOverallArrangementDetailsList();
+			},
+		},
 		// mixins: [touchHandle],
 		async mounted() {
 			// await this.getCityHouseList();