|
@@ -134,7 +134,7 @@
|
|
|
layoutArea:0, //总面积
|
|
|
selectSpace:null,//
|
|
|
changeStatus:false,
|
|
|
- selectIndex:'',
|
|
|
+ // selectIndex:'',
|
|
|
}
|
|
|
},
|
|
|
beforeDestroy() {
|
|
@@ -184,12 +184,12 @@
|
|
|
console.warn("***beforeDestroy-webgl_rxdz***");
|
|
|
},
|
|
|
mounted() {
|
|
|
- console.log("***onLoad-webgl_rxdz_test***", this.$route.query,this.$store.state.houseId);
|
|
|
+ console.log("***onLoad-webgl_rxdz_test***", this.$route.query,this.$store.state.houseId,this.customizedRecordId);
|
|
|
let isIOS = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
|
|
this.isIOS = isIOS;
|
|
|
var that = this;
|
|
|
this.houseId = this.$store.state.houseId || '';
|
|
|
- this.selectIndex = this.$route.query.selectIndex || 0;
|
|
|
+ // this.selectIndex = this.$route.query.selectIndex || 0;
|
|
|
if(this.customizedRecordId){
|
|
|
this.curHouseObj = null;
|
|
|
}else{
|
|
@@ -248,7 +248,7 @@
|
|
|
if(this.curHouseObj){
|
|
|
this.houseInit()
|
|
|
}else{
|
|
|
- this.findHouseTypeSpaceList();
|
|
|
+ this.findHouseTypeSpaceListByIds();
|
|
|
}
|
|
|
function init() {
|
|
|
|
|
@@ -700,22 +700,25 @@
|
|
|
},
|
|
|
customizedRecordId() {
|
|
|
return this.$store.state.customizedRecordId;
|
|
|
+ },
|
|
|
+ ueId() {
|
|
|
+ return this.$store.state.ueId;
|
|
|
},
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
// 查询户型列表
|
|
|
- async findHouseTypeSpaceList() {
|
|
|
+ async findHouseTypeSpaceListByIds() {
|
|
|
var parmas = {
|
|
|
brandId: $config.brandId,
|
|
|
houseId: this.houseId,
|
|
|
pageNo: 1,
|
|
|
pageSize: 2000,
|
|
|
- isCloud: 1,
|
|
|
+ ids: [this.ueId],
|
|
|
};
|
|
|
- let res = await requestConfig("findHouseTypeSpaceList", parmas);
|
|
|
- if (res.success && res.pageModel) {
|
|
|
- let list = res.pageModel.resultSet || [];
|
|
|
+ let res = await requestConfig("findHouseTypeSpaceListByIds", parmas);
|
|
|
+ if (res.success && res.list) {
|
|
|
+ let list = res.list || [];
|
|
|
list && list.forEach((item, index) => {
|
|
|
if (item.houseJson) {
|
|
|
let spaceList = JSON.parse(item.houseJson);
|
|
@@ -737,13 +740,13 @@
|
|
|
}
|
|
|
}
|
|
|
item.houseJson = JSON.stringify(spaceList);
|
|
|
- console.log("户型详情列表: ", spaceList,this.selectIndex);
|
|
|
+ console.log("户型详情列表: ", spaceList);
|
|
|
}
|
|
|
})
|
|
|
- this.curHouseObj = res.pageModel.resultSet[this.selectIndex];
|
|
|
+ this.curHouseObj = res.list[0];
|
|
|
setStorage('curHouseObj', this.curHouseObj);
|
|
|
this.houseInit();
|
|
|
- // this.houseList = res.pageModel.resultSet || [];
|
|
|
+ // this.houseList = res.list || [];
|
|
|
}
|
|
|
},
|
|
|
voiceMaskChange(voiceMask){
|