Showing
1 changed file
with
20 additions
and
0 deletions
| @@ -188,6 +188,26 @@ App({ | @@ -188,6 +188,26 @@ App({ | ||
| 188 | onHide(){ | 188 | onHide(){ |
| 189 | console.log('onHide'); | 189 | console.log('onHide'); |
| 190 | PubSub.emit('appHide') | 190 | PubSub.emit('appHide') |
| 191 | + wx.getStorage({ | ||
| 192 | + key:'EVENT_LOG_CACHE', | ||
| 193 | + success:async res=>{ | ||
| 194 | + wx.request({ | ||
| 195 | + url: uri_dc.HOST__LINE+'App.Reserve.UUUU', | ||
| 196 | + method: 'POST', | ||
| 197 | + data: { | ||
| 198 | + openid:await this.getOpenid(), | ||
| 199 | + logs:JSON.stringify(res.data) | ||
| 200 | + }, | ||
| 201 | + header: { | ||
| 202 | + 'content-type': 'application/x-www-form-urlencoded' | ||
| 203 | + }, | ||
| 204 | + success:()=>{ | ||
| 205 | + wx.removeStorage({key:'EVENT_LOG_CACHE'}) | ||
| 206 | + }, | ||
| 207 | + }) | ||
| 208 | + } | ||
| 209 | + }) | ||
| 210 | + | ||
| 191 | let time=new Date()/1000; | 211 | let time=new Date()/1000; |
| 192 | wx.getStorageInfo({ | 212 | wx.getStorageInfo({ |
| 193 | success:(res)=>{ | 213 | success:(res)=>{ |
-
Please register or login to post a comment