Showing
2 changed files
with
4 additions
and
1 deletions
| @@ -264,7 +264,7 @@ Page({ | @@ -264,7 +264,7 @@ Page({ | ||
| 264 | form:JSON.parse(JSON.stringify(formTpl)), | 264 | form:JSON.parse(JSON.stringify(formTpl)), |
| 265 | tablesed:null, | 265 | tablesed:null, |
| 266 | }) | 266 | }) |
| 267 | - App.Reserve.Detail({rid:_id,openid:''},true) | 267 | + App.Reserve.Detail({rid:_id,openid:''},'clear') |
| 268 | wx.navigateTo({ | 268 | wx.navigateTo({ |
| 269 | url:'b_detail?id='+_id, | 269 | url:'b_detail?id='+_id, |
| 270 | }); | 270 | }); |
| @@ -34,6 +34,9 @@ function rpc(host='',act,data={},fouce=false,header={},silence=true,cachetime=0, | @@ -34,6 +34,9 @@ function rpc(host='',act,data={},fouce=false,header={},silence=true,cachetime=0, | ||
| 34 | if(param){ | 34 | if(param){ |
| 35 | cache_key+='?'+param.substr((param.length-1)*-1); | 35 | cache_key+='?'+param.substr((param.length-1)*-1); |
| 36 | } | 36 | } |
| 37 | + if(fouce=='clear' || fouce=='clean'){ | ||
| 38 | + return wx.removeStorageSync(cache_key); | ||
| 39 | + } | ||
| 37 | if(!fouce && cachetime!=0){//优先使用缓存 | 40 | if(!fouce && cachetime!=0){//优先使用缓存 |
| 38 | let getCache= cache(cache_key); | 41 | let getCache= cache(cache_key); |
| 39 | if(getCache!=-99999){ | 42 | if(getCache!=-99999){ |
-
Please register or login to post a comment