Browse Source

12.13补改

yfso 2 years ago
parent
commit
0b28feef89
1 changed files with 2 additions and 3 deletions
  1. 2 3
      pages/map/map.vue

+ 2 - 3
pages/map/map.vue

xqd xqd xqd
@@ -414,7 +414,6 @@
 					...tempobj,
 					...param
 				}).then(res => {
-					
 					this.hotelList = res.data.data.map(item=>{
 						item.logo = this.$utils.toHttps(item.logo);
 						return {
@@ -453,8 +452,9 @@
 					this.hotelList.sort((prev,next)=>{
 						return prev.distanceToMe-next.distanceToMe;
 					})
+					
 					setTimeout(()=>{
-						if(this.beginConfig.hotel_id==0){
+						if(!this.beginConfig.hotel_id){
 							this.$refs.map.markertap({markerId: this.hotelList[0].id})	
 						}else{	
 							this.localToMark(this.beginConfig.hotel_id);
@@ -496,7 +496,6 @@
 			//合作伙伴刷选
 			change(e) {
 			},
-			
 			//展开地区选择
 			openArea() {
 				this.isSelectArea = !this.isSelectArea