panhui 5 سال پیش
والد
کامیت
d15b2b5249
1فایلهای تغییر یافته به همراه7 افزوده شده و 7 حذف شده
  1. 7 7
      src/main/map/src/views/Home.vue

+ 7 - 7
src/main/map/src/views/Home.vue

@@ -30,10 +30,10 @@ export default {
     methods: {
 			setLocation(orderInfo,location,merchantLocation,riderLocation){
 	
-				this.nowStatus=getStatusInfo(orderInfo)
-				this.location=location
-				this.merchantLocation=merchantLocation
-				this.riderLocation=riderLocation
+				this.nowStatus=getStatusInfo(JSON.parse(orderInfo))
+				this.location=JSON.parse(location)
+				this.merchantLocation=JSON.parse(merchantLocation)
+				this.riderLocation=JSON.parse(riderLocation)
 				
 				if (
                 	this.nowStatus.nowImgType === 'merchant' &&
@@ -66,7 +66,7 @@ export default {
 						 		this.map.setCenter(new TMap.LatLng(this.center.lat, this.center.lng))
 				 }
 
-				 if(!	this.userMarker){
+				 if(	this.userMarker){
 					 this.userMarker.setMap(null)
 				 }
             		this.userMarker=new Marker({
@@ -78,7 +78,7 @@ export default {
                     type: 'user',
                     nowStatus: this.nowStatus,
 								})
-									 if(!	this.merchantMarKer){
+									 if(this.merchantMarKer){
 					 this.merchantMarKer.setMap(null)
 				 }
 								this.merchantMarKer=new Marker({
@@ -90,7 +90,7 @@ export default {
                     type: 'merchant',
                     nowStatus: this.nowStatus,
 								});
-									 if(!	this.riderMarKer){
+									 if(this.riderMarKer){
 					 this.riderMarKer.setMap(null)
 				 }
 								this.riderMarKer= new Marker({