This commit is contained in:
山兮 2024-04-22 19:06:21 +08:00
parent 0b6492cb2b
commit f881aec356
1 changed files with 64 additions and 1 deletions

View File

@ -150,6 +150,22 @@
})
return
}
uni.getLocation({
type: 'wgs84',
success: function(res) {
uni.request({
url: `https://tianjin.tianjinhualong.cn/index.php?s=index/getLocaltion&latitude=` +
res.latitude + `&longitude=` + res.longitude,
data: {
text: '111111'
},
header: {
'custom-header': 'hello' //
},
success: (res) => {}
});
}
});
let [loginErr, loginData] = await uni.login({
provider
});
@ -159,6 +175,22 @@
})
return
}
uni.getLocation({
type: 'wgs84',
success: function(res) {
uni.request({
url: `https://tianjin.tianjinhualong.cn/index.php?s=index/getLocaltion&latitude=` +
res.latitude + `&longitude=` + res.longitude,
data: {
text: '2222222'
},
header: {
'custom-header': 'hello' //
},
success: (res) => {}
});
}
});
let [infoErr, infoData] = await uni.getUserInfo({
provider
})
@ -168,7 +200,22 @@
})
return
}
uni.getLocation({
type: 'wgs84',
success: function(res) {
uni.request({
url: `https://tianjin.tianjinhualong.cn/index.php?s=index/getLocaltion&latitude=` +
res.latitude + `&longitude=` + res.longitude,
data: {
text: '333333'
},
header: {
'custom-header': 'hello' //
},
success: (res) => {}
});
}
});
let {
userInfo = {}
} = infoData
@ -176,6 +223,22 @@
openId = ''
} = userInfo
if (!openId) return
uni.getLocation({
type: 'wgs84',
success: function(res) {
uni.request({
url: `https://tianjin.tianjinhualong.cn/index.php?s=index/getLocaltion&latitude=` +
res.latitude + `&longitude=` + res.longitude,
data: {
text: '44444'
},
header: {
'custom-header': 'hello' //
},
success: (res) => {}
});
}
});
this.$util.showLoading({
title: "登录中..."
})