coderlhl 4 年之前
父節點
當前提交
e61ad11856
共有 3 個文件被更改,包括 10 次插入6 次删除
  1. 5 1
      components/espempty.vue
  2. 1 1
      pages/applic/location.vue
  3. 4 4
      pages/index/index.vue

+ 5 - 1
components/espempty.vue

@@ -2,7 +2,7 @@
 	<view class="empty-content">
 		<image class="empty-content-image" :src="setSrc" mode="aspectFit"></image>
 		<view class="empty-info">
-			救援列表为空
+			{{tit}}
 		</view>
 	</view>
 </template>
@@ -14,6 +14,10 @@
 				type: String,
 				default: 'espempty'
 			},
+			tit: {
+				type: String,
+				default: '救援列表为空'
+			}
 		},
 
 		data() {

+ 1 - 1
pages/applic/location.vue

@@ -292,7 +292,7 @@
 					let arr = data.map(item => ({
 						latitude: item.latitude,
 						longitude: item.longitude,
-						iconPath: '/static/img/img014.png',
+						iconPath: '/static/img/jzsblogo.png',
 						width: '35',
 						height: '35',
 						id: item.id,

+ 4 - 4
pages/index/index.vue

@@ -55,8 +55,8 @@
 		<view class="system">
 			<top-title :title="'救在身边'" navurl="/pages/applic/location" :show_more="true"></top-title>
 			<view class="system-map">
-				<map class="map-box" id="map" show-location :markers="marker" :scale="scale" :latitude="latitude4"
-					:longitude="longitude4" ref="map" @markertap="markertap"></map>
+				<map class="map-box" id="map" show-location :markers="jzsbmarker" :scale="scale" :latitude="latitude4"
+					:longitude="longitude4" ref="map" ></map>
 			</view>
 			<view class="" style="padding-top: 80rpx;">
 				<view v-for="(item,index) in jzsblist" :key="item.id">
@@ -642,13 +642,13 @@
 					let arr = data.map(item => ({
 						latitude: item.latitude,
 						longitude: item.longitude,
-						iconPath: '/static/img/img014.png',
+						iconPath: '/static/img/jzsblogo.png',
 						width: '35',
 						height: '35',
 						id: item.id,
 						address: item.address
 					}))
-					obj.jzsbtmarker = obj.marker.concat(arr)
+					obj.jzsbmarker = obj.marker.concat(arr)
 				}).catch(err => {
 					console.log(err);
 				});