|
@@ -74,7 +74,9 @@ export default (props) => {
|
74
|
74
|
|
75
|
75
|
useDidShow(() => {
|
76
|
76
|
goContent()
|
|
77
|
+
|
77
|
78
|
if (roomId) {
|
|
79
|
+ // 点击’去这里‘跳转导航
|
78
|
80
|
getTaRoom(roomId).then((res) => {
|
79
|
81
|
Roomlog.current = (res.location).toString().split(',')[0]
|
80
|
82
|
Roomlat.current = (res.location).toString().split(',')[1]
|
|
@@ -82,6 +84,27 @@ export default (props) => {
|
82
|
84
|
Parklat.current = (res.parkingLocation).toString().split(',')[1]
|
83
|
85
|
setTaRoomContent(res || [])
|
84
|
86
|
})
|
|
87
|
+ //更多指引
|
|
88
|
+ getExtendContent('room', roomId).then((res) => {
|
|
89
|
+ setExtend(res.records || [])
|
|
90
|
+ setIfroomId('reality')
|
|
91
|
+ setAllextNum(res.total)
|
|
92
|
+ setNewextNum(res.records.length)
|
|
93
|
+ })
|
|
94
|
+ getRecommendList({ location: location }).then((res) => {
|
|
95
|
+ setPackage(res || [])
|
|
96
|
+ })
|
|
97
|
+ } else {
|
|
98
|
+ getRecommendList({ location: location }).then((res) => {
|
|
99
|
+ setPackage(res || [])
|
|
100
|
+ })
|
|
101
|
+ return
|
|
102
|
+ }
|
|
103
|
+ if (taRoomContent?.wifiPassword === "") {
|
|
104
|
+ setWifiButtonStyle('none')
|
|
105
|
+ }
|
|
106
|
+ if (taRoomContent?.parkingAddress === "") {
|
|
107
|
+ setParkingButtonStyle('none')
|
85
|
108
|
}
|
86
|
109
|
})
|
87
|
110
|
|