Commit 0763505c1c7a1512242fd4799681ff01e7fd9a77

Authored by vking
1 parent 2fed3100

new 2.0

@@ -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 })