zjs_project 10 月之前
父节点
当前提交
296781c125
共有 1 个文件被更改,包括 8 次插入4 次删除
  1. 8 4
      src/components/newQCCom/viewMask/viewMask.vue

+ 8 - 4
src/components/newQCCom/viewMask/viewMask.vue

@@ -292,6 +292,9 @@
             userId() {
             	return this.$store.state.userId;
             },
+            houseId() {
+            	return this.$store.state.houseId;
+            },
             customizedRecordId() {
             	return this.$store.state.customizedRecordId;
             },
@@ -527,7 +530,7 @@
 					};
 					util.trackRequest(param);
 					if(window.__wxjs_environment === 'miniprogram'){
-						wx.miniProgram.navigateTo({url: '/pages/transfer/transfer?event=openCustomerServiceChat&houseId='+this.$store.state.houseId})
+						wx.miniProgram.navigateTo({url: '/pages/transfer/transfer?event=openCustomerServiceChat&houseId='+this.houseId})
 					}else{
 						this.$message.warning("敬请期待");
 					}
@@ -1174,7 +1177,7 @@
 				router.push({
 					name: "webgl_rxdz_test_env",
 					query:{
-						houseId:this.$route.query.houseId || this.$store.state.houseId,
+						houseId:this.$route.query.houseId || this.houseId,
 					}
 				});
 			},
@@ -1357,12 +1360,13 @@
             	});
             	let res = await requestConfig("saveCustomizedRecord", param);
             	loading.close();
+                let houseId = this.houseId || curHouseObj.houseId;
             	if(res && res.success && res.single){//提交成功
             		let data = {
-            			houseId:this.houseId || curHouseObj.houseId,
+            			houseId:houseId,
             			id:res.single,
             		}
-                    wx.miniProgram.redirectTo({url: '/webgl/pages/webgl_rxdz_text_customize/webgl_rxdz_text_customize?id='+data.id+"&houseId="+this.houseId})
+                    wx.miniProgram.redirectTo({url: '/webgl/pages/webgl_rxdz_text_customize/webgl_rxdz_text_customize?id='+data.id+"&houseId="+houseId})
             		// router.push({
             		// 	name: "webgl_rxdz_text_customize",
             		// 	query:data