Commit 1f8bc059 authored by 胡's avatar

fix

parent 85361c60
......@@ -111,18 +111,18 @@ export default {
// console.log(error)
// }, {enableHighAccuracy: true})
// } else { // ios使用插件定位
baidumap_location.getCurrentPosition(function (result) {
console.log('*********** ' + JSON.stringify(result))
window.localStorage.setItem('province', result.province)
window.localStorage.setItem('city', result.city)
vm.places = window.localStorage.getItem('province') + '-' + window.localStorage.getItem('city')
vm.province = '请选择省'
vm.city = '请选择市'
vm.flag = false
vm.province_flag = true
}, function (error) {
console.log('errorerrorerrorerror ' + error)
})
// baidumap_location.getCurrentPosition(function (result) {
// console.log('*********** ' + JSON.stringify(result))
// window.localStorage.setItem('province', result.province)
// window.localStorage.setItem('city', result.city)
// vm.places = window.localStorage.getItem('province') + '-' + window.localStorage.getItem('city')
// vm.province = '请选择省'
// vm.city = '请选择市'
// vm.flag = false
// vm.province_flag = true
// }, function (error) {
// console.log('errorerrorerrorerror ' + error)
// })
// }
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment