|
@@ -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();
|