|
@@ -3,7 +3,7 @@ import Taro, { useDidShow } from '@tarojs/taro'
|
3
|
3
|
import MoreGuide from "@/components/MoreGuide";
|
4
|
4
|
import BossCard from '@/components/BossCard'
|
5
|
5
|
import SpinBox from "@/components/Spin/SpinBox";
|
6
|
|
-import { Image } from "@tarojs/components";
|
|
6
|
+import { Image, View } from "@tarojs/components";
|
7
|
7
|
import GPS from '@/assets/icons/GuideCheck/GPS.png'
|
8
|
8
|
import copy_logo from '@/assets/icons/GuideCheck/copy_logo.png'
|
9
|
9
|
import Cup from '@/assets/icons/GuideCheck/Cup.png'
|
|
@@ -133,89 +133,89 @@ export default (props) => {
|
133
|
133
|
Taro.redirectTo({ url: '/pages/index/index' })
|
134
|
134
|
}
|
135
|
135
|
return (
|
136
|
|
- <scroll-view scrollY style={{ height: '100%' }} >
|
137
|
|
- <view className='Guide-Home-box'>
|
138
|
|
- {/* 有民宿的情况下 */}
|
139
|
|
- {
|
140
|
|
- ifroomId === 'reality' && (
|
141
|
|
- <SpinBox loading={loading}>
|
142
|
|
- <view className='room-box-info-ROOM'>
|
143
|
|
- <view className='room-bi-name-ROOM' >
|
144
|
|
- <view className='room-bin-title-ROOM'>房屋名称</view>
|
145
|
|
- <view className='room-bint-nameInfo-ROOM'>{taRoomContent?.roomName}
|
|
136
|
+ <scroll-view scrollY style={{ height: '100%' }} >
|
|
137
|
+ <view className='Guide-Home-box'>
|
|
138
|
+ {/* 有民宿的情况下 */}
|
|
139
|
+ {
|
|
140
|
+ ifroomId === 'reality' && (
|
|
141
|
+ <SpinBox loading={loading}>
|
|
142
|
+ <view className='room-box-info-ROOM'>
|
|
143
|
+ <view className='room-bi-name-ROOM' >
|
|
144
|
+ <view className='room-bin-title-ROOM'>房屋名称</view>
|
|
145
|
+ <view className='room-bint-nameInfo-ROOM'>{taRoomContent?.roomName}
|
|
146
|
+ </view>
|
146
|
147
|
</view>
|
147
|
148
|
</view>
|
148
|
|
- </view>
|
149
|
|
- {/* --------房屋位置-------- */}
|
150
|
|
- <view className='room-box-info-HouLocation'>
|
151
|
|
- <view className='room-bi-name-HouLocation' >
|
152
|
|
- <view className='room-bin-title-HouLocation'>房屋位置</view>
|
153
|
|
- <view className='room-bint-nameInfo-HouLocation'>
|
154
|
|
- <view className='room-bint-nameInfo-bool-HouLocation' >{taRoomContent?.address}</view>
|
155
|
|
- <view className='room-bintn-button-HouLocation' onClick={() => { goRoomMap() }}>
|
156
|
|
- <image className='room-bintn-image-HouLocation' src={GPS} />
|
157
|
|
- <text className='room-bintn-text-HouLocation'>去这里</text>
|
|
149
|
+ {/* --------房屋位置-------- */}
|
|
150
|
+ <view className='room-box-info-HouLocation'>
|
|
151
|
+ <view className='room-bi-name-HouLocation' >
|
|
152
|
+ <view className='room-bin-title-HouLocation'>房屋位置</view>
|
|
153
|
+ <view className='room-bint-nameInfo-HouLocation'>
|
|
154
|
+ <view className='room-bint-nameInfo-bool-HouLocation' >{taRoomContent?.address}</view>
|
|
155
|
+ <view className='room-bintn-button-HouLocation' onClick={() => { goRoomMap() }}>
|
|
156
|
+ <image className='room-bintn-image-HouLocation' src={GPS} />
|
|
157
|
+ <text className='room-bintn-text-HouLocation'>去这里</text>
|
|
158
|
+ </view>
|
158
|
159
|
</view>
|
159
|
160
|
</view>
|
160
|
161
|
</view>
|
161
|
|
- </view>
|
162
|
|
- {/* --------停车场-------- */}
|
163
|
|
- {
|
164
|
|
- !taRoomContent.parkingLocation ? null :
|
165
|
|
- <view className='room-box-info-Parking'>
|
166
|
|
- <view className='room-bi-name-Parking' >
|
167
|
|
- <view className='room-bin-title-Parking'>停车位置</view>
|
168
|
|
- <view className='room-bint-nameInfo-Parking'>
|
169
|
|
- <view className='room-bint-nameInfo-bool-Parking' >{taRoomContent?.parkingAddress}</view>
|
170
|
|
- <view className='room-bintn-button-Parking' onClick={() => { goParkMap() }}>
|
171
|
|
- <image className='room-bintn-image-Parking' src={GPS} />
|
172
|
|
- <text className='room-bintn-text-Parking'>去这里</text>
|
|
162
|
+ {/* --------停车场-------- */}
|
|
163
|
+ {
|
|
164
|
+ !taRoomContent.parkingLocation ? null :
|
|
165
|
+ <view className='room-box-info-Parking'>
|
|
166
|
+ <view className='room-bi-name-Parking' >
|
|
167
|
+ <view className='room-bin-title-Parking'>停车位置</view>
|
|
168
|
+ <view className='room-bint-nameInfo-Parking'>
|
|
169
|
+ <view className='room-bint-nameInfo-bool-Parking' >{taRoomContent?.parkingAddress}</view>
|
|
170
|
+ <view className='room-bintn-button-Parking' onClick={() => { goParkMap() }}>
|
|
171
|
+ <image className='room-bintn-image-Parking' src={GPS} />
|
|
172
|
+ <text className='room-bintn-text-Parking'>去这里</text>
|
|
173
|
+ </view>
|
173
|
174
|
</view>
|
174
|
175
|
</view>
|
175
|
176
|
</view>
|
176
|
|
- </view>
|
177
|
|
- }
|
178
|
|
- {/* --------无线网-------- */}
|
179
|
|
- {
|
180
|
|
- !taRoomContent.wifiName && !taRoomContent.wifiPassword ? null :
|
181
|
|
- <view className='room-box-info-WIFIContent'>
|
182
|
|
- <view className='room-bi-name-WIFIContent' >
|
183
|
|
- <view className='room-bin-title-WIFIContent'>WiFi信息</view>
|
184
|
|
- <view className='room-bint-nameInfo-WIFIContent'>
|
185
|
|
- <view className='room-bint-nameInfo-bool-WIFIContent-wifi' >名称:{taRoomContent?.wifiName}</view>
|
186
|
|
- <view className='room-bint-nameInfo-bool-WIFIContent-password' >密码:{taRoomContent?.wifiPassword}</view>
|
187
|
|
- <view className='room-bintn-button-WIFIContent' onClick={() => { wifiCopy() }}>
|
188
|
|
- <image className='room-bintn-image-WIFIContent' src={copy_logo} />
|
189
|
|
- <text className='room-bintn-text-WIFIContent'>复制</text>
|
|
177
|
+ }
|
|
178
|
+ {/* --------无线网-------- */}
|
|
179
|
+ {
|
|
180
|
+ !taRoomContent.wifiName && !taRoomContent.wifiPassword ? null :
|
|
181
|
+ <view className='room-box-info-WIFIContent'>
|
|
182
|
+ <view className='room-bi-name-WIFIContent' >
|
|
183
|
+ <view className='room-bin-title-WIFIContent'>WiFi信息</view>
|
|
184
|
+ <view className='room-bint-nameInfo-WIFIContent'>
|
|
185
|
+ <view className='room-bint-nameInfo-bool-WIFIContent-wifi' >名称:{taRoomContent?.wifiName}</view>
|
|
186
|
+ <view className='room-bint-nameInfo-bool-WIFIContent-password' >密码:{taRoomContent?.wifiPassword}</view>
|
|
187
|
+ <view className='room-bintn-button-WIFIContent' onClick={() => { wifiCopy() }}>
|
|
188
|
+ <image className='room-bintn-image-WIFIContent' src={copy_logo} />
|
|
189
|
+ <text className='room-bintn-text-WIFIContent'>复制</text>
|
|
190
|
+ </view>
|
190
|
191
|
</view>
|
191
|
192
|
</view>
|
192
|
193
|
</view>
|
193
|
|
- </view>
|
194
|
|
- }
|
195
|
|
- {
|
196
|
|
- extend.length === 0 ? null :
|
197
|
|
- <view className='Guide-Content-box' >
|
198
|
|
- <view className='title-image'>
|
199
|
|
- <image mode='scaleToFill' className='title-image-cup' src={BlackSpot} />
|
200
|
|
- <text className='title-title-boss' >更多指引</text>
|
201
|
|
- </view>
|
202
|
|
- <view>
|
203
|
|
- {(extend || []).map((item, index) => <MoreGuide key={(index)} item={item} />)}
|
|
194
|
+ }
|
|
195
|
+ {
|
|
196
|
+ extend.length === 0 ? null :
|
|
197
|
+ <view className='Guide-Content-box' >
|
|
198
|
+ <view className='title-image'>
|
|
199
|
+ <image mode='scaleToFill' className='title-image-cup' src={BlackSpot} />
|
|
200
|
+ <text className='title-title-boss' >更多指引</text>
|
|
201
|
+ </view>
|
|
202
|
+ <view>
|
|
203
|
+ {(extend || []).map((item, index) => <MoreGuide key={(index)} item={item} />)}
|
|
204
|
+ </view>
|
204
|
205
|
</view>
|
205
|
|
- </view>
|
206
|
|
- }
|
207
|
|
- </SpinBox>
|
208
|
|
- )
|
209
|
|
- }
|
210
|
|
- <view className='Guide-Content-box'>
|
211
|
|
- <Customized />
|
212
|
|
- </view>
|
213
|
|
- <view className={`Guide-bottom-box ${ifroomId === 'reality' ? '' : 'Guide-bottom-two'}`}>
|
214
|
|
- <Image mode='widthFix' style={{ width: '100%' }} src='http://yz-shigongli.oss-cn-shanghai.aliyuncs.com/images/hotel_guide_help.png' onClick={goIndex} />
|
215
|
|
-
|
|
206
|
+ }
|
|
207
|
+ </SpinBox>
|
|
208
|
+ )
|
|
209
|
+ }
|
|
210
|
+ <view className='Guide-Content-box'>
|
|
211
|
+ <Customized />
|
|
212
|
+ </view>
|
|
213
|
+ <view className={`Guide-bottom-box ${ifroomId === 'reality' ? '' : 'Guide-bottom-two'}`}>
|
|
214
|
+ <Image mode='widthFix' style={{ width: '100%' }} src='http://yz-shigongli.oss-cn-shanghai.aliyuncs.com/images/hotel_guide_help.png' onClick={goIndex} />
|
|
215
|
+
|
|
216
|
+ </view>
|
216
|
217
|
</view>
|
217
|
|
- </view>
|
218
|
218
|
|
219
|
|
- </scroll-view>
|
|
219
|
+ </scroll-view>
|
220
|
220
|
)
|
221
|
221
|
}
|