|
@@ -46,9 +46,14 @@ export default withLayout((props) => {
|
46
|
46
|
}
|
47
|
47
|
|
48
|
48
|
const onParkMap = () => {
|
49
|
|
- Taro.chooseLocation().then((res) => {
|
50
|
|
- setRoomModel({ ...roomModel, parkingLocation: res.longitude + ',' + res.latitude, pkLocName: res.name, parkingAddress: res.address })
|
51
|
|
- })
|
|
49
|
+ Taro.chooseLocation()
|
|
50
|
+ .then((res) => {
|
|
51
|
+ setRoomModel({ ...roomModel, parkingLocation: res.longitude + ',' + res.latitude, pkLocName: res.name, parkingAddress: res.address })
|
|
52
|
+ })
|
|
53
|
+ .catch(e => {
|
|
54
|
+ chooselError('提示', '获取当前位置需要授权,是否跳转到设置界面?')
|
|
55
|
+
|
|
56
|
+ })
|
52
|
57
|
}
|
53
|
58
|
const sumbit = () => {
|
54
|
59
|
if (
|