富文本介绍
This commit is contained in:
@@ -106,13 +106,14 @@ const Home = () => {
|
||||
// Toast.show(`onCancel`);
|
||||
};
|
||||
|
||||
const getLocation = () => {
|
||||
// 获取地理位置
|
||||
const getLocation = async() => {
|
||||
// 获取地理位置
|
||||
Taro.getLocation({
|
||||
type: "wgs84",
|
||||
success: function (res) {
|
||||
success: function (res: any) {
|
||||
// 地理位置信息-经纬度
|
||||
console.log('lbsres---',res)
|
||||
console.log("lbsres---", res);
|
||||
const latitude = res.latitude;
|
||||
const longitude = res.longitude;
|
||||
const speed = res.speed;
|
||||
@@ -241,8 +242,8 @@ const Home = () => {
|
||||
text="打卡"
|
||||
className="iconStyle"
|
||||
onClick={() => {
|
||||
getLocation();
|
||||
// chooseImage();
|
||||
// getLocation();
|
||||
chooseImage();
|
||||
}}
|
||||
/>
|
||||
<GridItem
|
||||
|
||||
Reference in New Issue
Block a user