Commit 1da92a9a99682756d9330a0552fc3ff9c8f01e24

Authored by vking
1 parent 34ce49ec

fixbug地图跳回初始定位

Showing 1 changed file with 6 additions and 3 deletions
@@ -100,9 +100,12 @@ Page({ @@ -100,9 +100,12 @@ Page({
100 'appHide', 100 'appHide',
101 data=>{ 101 data=>{
102 console.log('appHide'); 102 console.log('appHide');
103 - this.hasGetLocation=false  
104 - this.hasClickMoveToLocation=false  
105 - this.hasAppHide=true 103 + let pages=getCurrentPages();
  104 + if(pages.length==1){//用户停留在首页
  105 + this.hasGetLocation=false
  106 + this.hasClickMoveToLocation=false
  107 + this.hasAppHide=true
  108 + }
106 } 109 }
107 ) 110 )
108 reddot.init() 111 reddot.init()