Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xugong
hls-xcmg-vue-app
Commits
1f8bc059
Commit
1f8bc059
authored
Nov 17, 2021
by
胡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
85361c60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
location.vue
src/pages/home/location.vue
+12
-12
No files found.
src/pages/home/location.vue
View file @
1f8bc059
...
@@ -111,18 +111,18 @@ export default {
...
@@ -111,18 +111,18 @@ export default {
// console.log(error)
// console.log(error)
// }, {enableHighAccuracy: true})
// }, {enableHighAccuracy: true})
// } else { // ios使用插件定位
// } else { // ios使用插件定位
baidumap_location
.
getCurrentPosition
(
function
(
result
)
{
//
baidumap_location.getCurrentPosition(function (result) {
console
.
log
(
'*********** '
+
JSON
.
stringify
(
result
))
//
console.log('*********** ' + JSON.stringify(result))
window
.
localStorage
.
setItem
(
'province'
,
result
.
province
)
//
window.localStorage.setItem('province', result.province)
window
.
localStorage
.
setItem
(
'city'
,
result
.
city
)
//
window.localStorage.setItem('city', result.city)
vm
.
places
=
window
.
localStorage
.
getItem
(
'province'
)
+
'-'
+
window
.
localStorage
.
getItem
(
'city'
)
//
vm.places = window.localStorage.getItem('province') + '-' + window.localStorage.getItem('city')
vm
.
province
=
'请选择省'
//
vm.province = '请选择省'
vm
.
city
=
'请选择市'
//
vm.city = '请选择市'
vm
.
flag
=
false
//
vm.flag = false
vm
.
province_flag
=
true
//
vm.province_flag = true
},
function
(
error
)
{
//
}, function (error) {
console
.
log
(
'errorerrorerrorerror '
+
error
)
//
console.log('errorerrorerrorerror ' + error)
})
//
})
// }
// }
},
},
...
...
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