1 index页( tabbar页)的跳转跳转到style页(非tabbar页)代码
setStyle: function(event) {
wx.navigateTo({
url: "../../pages/style/stylelist/style"
})
},
2.从style页(非tabbar页)跳回index页(tabbar页)代码
setStyle:function(event){
wx.switchTab({
url: '../../../pages/index/index'
})
},
3.index页( tabbar页)的onShow方法
onShow: function() {
console.log('onShow');
},
第1次 index--->style---->index 执行onShow方法
第2次 index--->style---->index 不执行onShow方法
后面一直不执行这个onShow方法了

那就是微信小程序框架的问题。我的本意是重非tabbar页带参数到tabbar页。在onshow事件中读取。但第一次可以。但是后面就不行了
开发工具里是没有这个问题的
导致非tabbar页面带回给tabbar页面的参数,没有事件可以读取的到。