Commit c494e56874a16e79c58df16895cb1e809ddd2194

Authored by wangfan
1 parent 29d1bed4

C端优化

Showing 1 changed file with 13 additions and 10 deletions
@@ -165,7 +165,9 @@ Page({ @@ -165,7 +165,9 @@ Page({
165 console.log('regionchange.getRegion',res) 165 console.log('regionchange.getRegion',res)
166 if(res.southwest.latitude!=this.mapData.region.southwest.latitude) { 166 if(res.southwest.latitude!=this.mapData.region.southwest.latitude) {
167 this.mapData.region = res 167 this.mapData.region = res
168 - this.getMarkers(); 168 + setTimeout(()=>{
  169 + this.getMarkers();
  170 + },300)
169 } 171 }
170 }, 172 },
171 }) 173 })
@@ -333,14 +335,14 @@ Page({ @@ -333,14 +335,14 @@ Page({
333 App.Reserve.SellerList(param).then(res => { 335 App.Reserve.SellerList(param).then(res => {
334 this.mapData.region.southwest.latitude=''; 336 this.mapData.region.southwest.latitude='';
335 if (res.ret == 200) { 337 if (res.ret == 200) {
336 - let sellersIds=["scale"+this.mapData.scale];  
337 - res.data.forEach(seller=>{  
338 - sellersIds.push(seller.id);  
339 - })  
340 - if(sellersIds.toString()==this.sellersIds.toString()) {  
341 - return;  
342 - }  
343 - this.sellersIds=sellersIds; 338 + // let sellersIds=["scale"+this.mapData.scale];
  339 + // res.data.forEach(seller=>{
  340 + // sellersIds.push(seller.id);
  341 + // })
  342 + // if(sellersIds.toString()==this.sellersIds.toString()) {
  343 + // return;
  344 + // }
  345 + // this.sellersIds=sellersIds;
344 sellers=res.data; 346 sellers=res.data;
345 let sellersLength=sellers.length; 347 let sellersLength=sellers.length;
346 sellers.forEach((seller,si) => { 348 sellers.forEach((seller,si) => {
@@ -431,7 +433,8 @@ Page({ @@ -431,7 +433,8 @@ Page({
431 map.longitude=this.user.longitude 433 map.longitude=this.user.longitude
432 map.scale=mapScale 434 map.scale=mapScale
433 this.setData({ 435 this.setData({
434 - map:map 436 + map:map,
  437 + hasSuggestion:false,
435 }) 438 })
436 this.mapCtx.moveToLocation({ 439 this.mapCtx.moveToLocation({
437 success:(res)=>{ 440 success:(res)=>{