|
@@ -12,7 +12,7 @@ Page({
|
12
|
12
|
title: '楼盘详情'
|
13
|
13
|
})
|
14
|
14
|
},
|
15
|
|
- onLoad: function (options) {
|
|
15
|
+ onLoad: function(options) {
|
16
|
16
|
const id = page.getCurrentPageOptions().id
|
17
|
17
|
const _that = this
|
18
|
18
|
|
|
@@ -47,13 +47,13 @@ Page({
|
47
|
47
|
}
|
48
|
48
|
})
|
49
|
49
|
_that.setData({
|
50
|
|
- EstateDetail: {
|
51
|
|
- ...data.data,
|
|
50
|
+ EstateDetail: {
|
|
51
|
+ ...data.data,
|
52
|
52
|
openingDate: data.data.openingDate.split(' ')[0],
|
53
|
|
- propertyType: propertyType,
|
54
|
|
- buildingApartment: apart,
|
55
|
|
- IsCollect: (_that.data.Collects.filter(x => x.buildingId == data.data.buildingId).length>0? true:false)
|
56
|
|
- }
|
|
53
|
+ propertyType: propertyType,
|
|
54
|
+ buildingApartment: apart,
|
|
55
|
+ IsCollect: (_that.data.Collects.filter(x => x.buildingId == data.data.buildingId).length > 0 ? true : false)
|
|
56
|
+ }
|
57
|
57
|
})
|
58
|
58
|
})
|
59
|
59
|
})
|
|
@@ -79,7 +79,9 @@ Page({
|
79
|
79
|
title: '收藏成功!'
|
80
|
80
|
})
|
81
|
81
|
_that.setData({
|
82
|
|
- EstateDetail: { ..._that.data.EstateDetail, IsCollect:true}
|
|
82
|
+ EstateDetail: { ..._that.data.EstateDetail,
|
|
83
|
+ IsCollect: true
|
|
84
|
+ }
|
83
|
85
|
})
|
84
|
86
|
})
|
85
|
87
|
},
|