This commit is contained in:
xiaozhiyong
2023-06-01 19:59:47 +08:00
parent 12d19c841d
commit bb00c6ed4a
4 changed files with 104 additions and 126 deletions

View File

@@ -73,7 +73,7 @@
},
onLoad() {
uni.clearStorageSync()
this.refreshLocation()
// this.refreshLocation()
uni.login({
provider: 'weixin',
success: (loginRes) => {
@@ -123,12 +123,12 @@
})
},
refreshLocation() {
uni.getLocation({
type: 'wgs84',
success: function(res) {
uni.setStorageSync('location', res)
}
});
// uni.getLocation({
// type: 'wgs84',
// success: function(res) {
// uni.setStorageSync('location', res)
// }
// });
},
autoLogin() {
// let url = 'loginCompany'