1 #14
19
App.vue
19
App.vue
@@ -238,16 +238,15 @@
|
||||
},
|
||||
|
||||
onShow: function() {
|
||||
console.log(12388)
|
||||
uni.getLocation({
|
||||
type: 'wgs84',
|
||||
success: function(res) {
|
||||
uni.setStorageSync('location', {
|
||||
longitude: res.longitude + '',
|
||||
latitude: res.latitude + ''
|
||||
})
|
||||
}
|
||||
});
|
||||
// uni.getLocation({
|
||||
// type: 'wgs84',
|
||||
// success: function(res) {
|
||||
// uni.setStorageSync('location', {
|
||||
// longitude: res.longitude + '',
|
||||
// latitude: res.latitude + ''
|
||||
// })
|
||||
// }
|
||||
// });
|
||||
console.log('onReady')
|
||||
const token = uni.getStorageSync('Authorization')
|
||||
const openid = uni.getStorageSync('openid')
|
||||
|
||||
Reference in New Issue
Block a user