富文本介绍

This commit is contained in:
eric
2022-11-21 13:19:24 +08:00
parent 04cbc3adbd
commit bd3d5652e9
9 changed files with 57 additions and 20 deletions

View File

@@ -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