const _this = this;
uni.getLocation({
type: 'gcj02',
success: res => {
this.latitude = res.latitude;
this.longitude = res.longitude;
uni.hideLoading();
},
fail: function(res) {
//授权失败
//uni.setStorageSync('isLog', true);
_this.getSettingTips();
}
});
getSettingTips(){
const _this = this;
uni.getSetting({
//获取用户的当前设置,返回值中只会出现小程序已经向用户请求过的权限
success: function(res) {