This commit is contained in:
cansnow
2026-01-01 04:15:30 +08:00
parent 09c7889525
commit 78386d4cc1
75 changed files with 1995 additions and 1715 deletions
@@ -1,5 +1,32 @@
<template>
<view class="ly-map-wrapper">
<view style="background: transparent;position: absolute;z-index:1998;top:10px;left: 10px;right:10px;display: flex;align-items: center;justify-content: space-between;">
<uni-icons type="left" size="26" color="#333" @click="back"></uni-icons>
<u-button
@click="confirm"
type="primary"
v-if="type == 'chooselocation'"
style="font-size: 15px;width: 100rpx;margin: 0;">确定</u-button>
</view>
<!-- <uni-nav-bar
left-icon="back"
@clickLeft="back"
backgroundColor="transparent"
:border="false"
fixed
statusBar
>
<template slot="right" v-if="type == 'chooselocation'">
<u-button
type="primary"
size="mini"
:customStyle="{
fontSize: '26rpx',
padding: '16rpx auto'
}"
@click="confirm">确定</u-button>
</template>
</uni-nav-bar> -->
<!-- 地图展示 -->
<view :id="mapId" :config="config" :change:config="LyMap.init" :call="option" :change:call="LyMap.call"
class="ly-map" />
@@ -48,7 +75,8 @@
showLocationIcon: {
type: Boolean,
default: false,
}
},
type:String
},
// 数据定义
data() {
@@ -81,6 +109,12 @@
},
// 通用方法
methods: {
confirm(){
this.$emit('onUserEvent',{type:'confirm'});
},
back(){
this.$emit('onUserEvent',{type:'back'});
},
// 生成唯一ID
genId() {
let result = '';
@@ -621,7 +655,7 @@
height: 100%;
position: relative;
overflow: hidden;
background: #f0f0f0;
background: transparent;
.ly-map {
width: 100%;