Showing
1 changed file
with
23 additions
and
0 deletions
| @@ -292,4 +292,27 @@ Page({ | @@ -292,4 +292,27 @@ Page({ | ||
| 292 | }) | 292 | }) |
| 293 | }) | 293 | }) |
| 294 | }, | 294 | }, |
| 295 | + hasGoto:false, | ||
| 296 | + bindtransition(e){ | ||
| 297 | + console.log(e) | ||
| 298 | + if('change'==e.type){ | ||
| 299 | + this.hasGoto=false | ||
| 300 | + } | ||
| 301 | + if('animationfinish'==e.type){ | ||
| 302 | + if(this.hasGoto && (e.detail.current+1)==this.data.rsl.length){ | ||
| 303 | + wx.switchTab({ | ||
| 304 | + url: '/pages/reserve/index' | ||
| 305 | + }) | ||
| 306 | + return; | ||
| 307 | + }else{ | ||
| 308 | + this.hasGoto=true | ||
| 309 | + } | ||
| 310 | + } | ||
| 311 | + }, | ||
| 312 | + gotoSellerDetail(e){ | ||
| 313 | + let url='/pages/reserve/detail?id='+e.currentTarget.id | ||
| 314 | + wx.navigateTo({ | ||
| 315 | + url:url, | ||
| 316 | + }) | ||
| 317 | + }, | ||
| 295 | }) | 318 | }) |
-
Please register or login to post a comment