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() |
-
Please register or login to post a comment