123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <template>
- <view class="content">
- <mi-map ref="miMap" tipText="mi-Map" @updateAddress="updateAddress">
- </mi-map>
- </view>
- </template>
- <script>
- import miMap from '../../components/mi-map/mi-map.vue'
- export default {
- components: {
- miMap
- },
- data() {
- return {
- positionObj: {},
- };
- },
- onNavigationBarButtonTap(e) {
- if (e.index == 0) {
- this.inBack()
- }
- },
- methods: {
- inBack() {
-
- },
- // 打开地图
- openMap() {
- this.mapShow = true
- },
- // 更新地址并关闭地图
- updateAddress(addressObj) {
- this.positionObj = addressObj
- uni.$emit("addressData", this.positionObj)
- uni.navigateBack({})
- },
- },
- }
- </script>
- <style lang="scss">
- .content {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- }
- </style>
|