Commit 1f8bc059 authored by 胡's avatar

fix

parent 85361c60
...@@ -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)
}) // })
// } // }
}, },
......
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