Commit c4fca1cc by 高淑倩

add: 组件生命周期隐藏重置

parent c0baa9e0
...@@ -25,6 +25,22 @@ Component({ ...@@ -25,6 +25,22 @@ Component({
currentTab: 99, currentTab: 99,
isAuthorization: false, // false 不显示 true 显示 isAuthorization: false, // false 不显示 true 显示
}, },
/*组件所在页面的生命周期 */
pageLifetimes: {
show: function () {
// 页面被展示
this.setData({
currentTab: 99
})
},
hide: function () {
// 页面被隐藏
this.setData({
currentTab: 99
})
},
},
/** /**
* 组件的方法列表 * 组件的方法列表
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment