Blame view

pages/component/map/map.vue 941 Bytes
4b045f7c   刘淇   江阴初始化项目
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
  <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>
  </template>
  <script>
  	export default {
  		data() {
  			return {
  				title: 'map',
  				latitude: 39.909,
  				longitude: 116.39742,
  				covers: [{
  					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
  				}, {
  					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: {
  
  		}
  	}
  </script>
  <style>
  	map {
  		width: 100%;
  		height: 600rpx;
  	}
  </style>