Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
fns_front_2
Commits
8bdecc66
Commit
8bdecc66
authored
Sep 27, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b70bf61e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
index.ts
src/service/AddressService/index.ts
+3
-2
branch.vue
src/views/withMenu/Mine/branch.vue
+0
-2
No files found.
src/service/AddressService/index.ts
View file @
8bdecc66
...
@@ -43,13 +43,13 @@ class AddressService {
...
@@ -43,13 +43,13 @@ class AddressService {
}
}
if
(
'geolocation'
in
window
.
navigator
)
{
if
(
'geolocation'
in
window
.
navigator
)
{
console
.
log
(
'geolocation'
);
window
.
navigator
.
geolocation
.
getCurrentPosition
(
window
.
navigator
.
geolocation
.
getCurrentPosition
(
(
position
)
=>
{
(
position
)
=>
{
console
.
log
(
position
,
'position'
)
const
la
=
position
.
coords
.
latitude
.
toString
()
const
la
=
position
.
coords
.
latitude
.
toString
()
const
lo
=
position
.
coords
.
longitude
.
toString
()
const
lo
=
position
.
coords
.
longitude
.
toString
()
console
.
log
(
position
,
'position'
)
resolve
(
resolve
(
baseAxios
<
iNearbyOutLet
[]
>
({
baseAxios
<
iNearbyOutLet
[]
>
({
method
:
'post'
,
method
:
'post'
,
url
:
'/address/nearby'
,
url
:
'/address/nearby'
,
...
@@ -67,6 +67,7 @@ class AddressService {
...
@@ -67,6 +67,7 @@ class AddressService {
},
},
)
)
}
else
{
}
else
{
console
.
log
(
'geolocation not in window'
);
getGps
()
getGps
()
}
}
})
})
...
...
src/views/withMenu/Mine/branch.vue
View file @
8bdecc66
...
@@ -74,8 +74,6 @@ export default defineComponent({
...
@@ -74,8 +74,6 @@ export default defineComponent({
addressService
.
getNearby
({
addressService
.
getNearby
({
bank_code
:
Number
(
process
.
env
.
VUE_APP_BANK_CODE
),
bank_code
:
Number
(
process
.
env
.
VUE_APP_BANK_CODE
),
number
:
4
,
number
:
4
,
latitude
:
'120.156203'
,
longitude
:
'30.285618'
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
result
.
loading
=
false
;
result
.
loading
=
false
;
result
.
topItem
=
res
.
data
[
0
]
result
.
topItem
=
res
.
data
[
0
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment