<template>
<view>
<map
style="width: 100vw; height: 100vh;"
:latitude="latitude"
:longitude="longitude"
:scale="scale"
:markers="markers"
:circles="circles"
></map>
<view class="bottom">
<view class="btop">
<view class="lf">{
{address}}</view>
<view class="rf">
<u-icon name="reload" label='刷新' @click="getLocationInfo()" labelPos='bottom' labelColor='blue' color='blue'></u-icon>
</view>
</view>
<u-button type="primary" @click='dkbtn' text="完成"></u-button>
</view>
</view>
</template>
import {
addygkq
} from "@/utils/kqapi.js"
<script>
import { addygkq } from '../../utils/kqapi';
export default {
data() {
return {
latitude: 39.909, // 默认定在首都
longitude: 116.39742,
scale: 16, // 默认16
markers: [],
circles:[],
markerHeight: 30,
address_info :"",
address_info_recomd:"",
address :""
};
},
methods: {
// 获取当前时间
getNowTime() {
let dateTime;
let yy = new Date().getFullYear();
let MM
手机端定位打卡
最新推荐文章于 2024-10-26 18:13:12 发布