Showing
2 changed files
with
3 additions
and
2 deletions
| @@ -98,6 +98,7 @@ Page({ | @@ -98,6 +98,7 @@ Page({ | ||
| 98 | 98 | ||
| 99 | }, | 99 | }, |
| 100 | gotoList(e){ | 100 | gotoList(e){ |
| 101 | + getApp().meListType=util.attr(e,'type') | ||
| 101 | wx.switchTab({ | 102 | wx.switchTab({ |
| 102 | url:'/pages/me/list?type='+util.attr(e,'type') | 103 | url:'/pages/me/list?type='+util.attr(e,'type') |
| 103 | }) | 104 | }) |
| @@ -25,8 +25,8 @@ Page({ | @@ -25,8 +25,8 @@ Page({ | ||
| 25 | * 生命周期函数--监听页面加载 | 25 | * 生命周期函数--监听页面加载 |
| 26 | */ | 26 | */ |
| 27 | onLoad: function (options) { | 27 | onLoad: function (options) { |
| 28 | - if(options.type){ | ||
| 29 | - this.tabType=options.type | 28 | + if(getApp().meListType){ |
| 29 | + this.tabType=getApp().meListType | ||
| 30 | this.setData({ | 30 | this.setData({ |
| 31 | tabType:this.tabType | 31 | tabType:this.tabType |
| 32 | }) | 32 | }) |
-
Please register or login to post a comment