tijiao
This commit is contained in:
@@ -1,52 +1,53 @@
|
||||
<template>
|
||||
<view>
|
||||
<page-head :title="title"></page-head>
|
||||
<view class="uni-common-mt">
|
||||
<view>
|
||||
<map :latitude="latitude" :longitude="longitude" :markers="covers">
|
||||
</map>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<page-head :title="title"></page-head>
|
||||
<view class="uni-common-mt">
|
||||
<view>
|
||||
<map :latitude="latitude" :longitude="longitude" :markers="covers">
|
||||
</map>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: 'map',
|
||||
latitude: 39.909,
|
||||
longitude: 116.39742,
|
||||
covers: [{
|
||||
id: 1,
|
||||
latitude: 39.9085,
|
||||
longitude: 116.39747,
|
||||
// #ifdef APP-PLUS
|
||||
iconPath: '../../../static/app-plus/location@3x.png',
|
||||
// #endif
|
||||
// #ifndef APP-PLUS
|
||||
iconPath: '../../../static/location.png',
|
||||
// #endif
|
||||
}, {
|
||||
id: 2,
|
||||
latitude: 39.90,
|
||||
longitude: 116.39,
|
||||
// #ifdef APP-PLUS
|
||||
iconPath: '../../../static/app-plus/location@3x.png',
|
||||
// #endif
|
||||
// #ifndef APP-PLUS
|
||||
iconPath: '../../../static/location.png',
|
||||
// #endif
|
||||
}]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: "map",
|
||||
latitude: 39.909,
|
||||
longitude: 116.39742,
|
||||
covers: [
|
||||
{
|
||||
id: 1,
|
||||
latitude: 39.9085,
|
||||
longitude: 116.39747,
|
||||
// #ifdef APP-PLUS
|
||||
iconPath: "../../../static/app-plus/location@3x.png",
|
||||
// #endif
|
||||
// #ifndef APP-PLUS
|
||||
iconPath: "../../../static/location.png",
|
||||
// #endif
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
latitude: 39.9,
|
||||
longitude: 116.39,
|
||||
// #ifdef APP-PLUS
|
||||
iconPath: "../../../static/app-plus/location@3x.png",
|
||||
// #endif
|
||||
// #ifndef APP-PLUS
|
||||
iconPath: "../../../static/location.png",
|
||||
// #endif
|
||||
},
|
||||
],
|
||||
};
|
||||
},
|
||||
methods: {},
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
map {
|
||||
width: 100%;
|
||||
height: 600rpx;
|
||||
}
|
||||
map {
|
||||
width: 100%;
|
||||
height: 600rpx;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user