Showing
3 changed files
with
9 additions
and
5 deletions
| @@ -11,7 +11,7 @@ Component({ | @@ -11,7 +11,7 @@ Component({ | ||
| 11 | * 组件的初始数据 | 11 | * 组件的初始数据 |
| 12 | */ | 12 | */ |
| 13 | data: { | 13 | data: { |
| 14 | - url:'pages/reserve/index' | 14 | + url:'pages/reserve/search' |
| 15 | }, | 15 | }, |
| 16 | pageLifetimes:{ | 16 | pageLifetimes:{ |
| 17 | show(){ | 17 | show(){ |
| @@ -57,9 +57,6 @@ Component({ | @@ -57,9 +57,6 @@ Component({ | ||
| 57 | }, | 57 | }, |
| 58 | redirectTo(e){ | 58 | redirectTo(e){ |
| 59 | let url= util.attr(e, 'url'); | 59 | let url= util.attr(e, 'url'); |
| 60 | - this.setData({ | ||
| 61 | - url:url, | ||
| 62 | - }) | ||
| 63 | wx.switchTab({ | 60 | wx.switchTab({ |
| 64 | url: '/'+url, | 61 | url: '/'+url, |
| 65 | }) | 62 | }) |
| @@ -26,8 +26,13 @@ | @@ -26,8 +26,13 @@ | ||
| 26 | .tabBar .checked .text{ | 26 | .tabBar .checked .text{ |
| 27 | color: #5EB2FF; | 27 | color: #5EB2FF; |
| 28 | } | 28 | } |
| 29 | +.tabBar .search.checked .icon{ | ||
| 30 | + width: 56rpx; | ||
| 31 | + height: 56rpx; | ||
| 32 | +} | ||
| 29 | .tabBar .search.checked .text{ | 33 | .tabBar .search.checked .text{ |
| 30 | color: #FFFFFF; | 34 | color: #FFFFFF; |
| 35 | + display: none; | ||
| 31 | } | 36 | } |
| 32 | .home .icon{ | 37 | .home .icon{ |
| 33 | width: 40rpx; | 38 | width: 40rpx; |
| 1 | // pages/reserve/home.js | 1 | // pages/reserve/home.js |
| 2 | import util from '../../utils/util' | 2 | import util from '../../utils/util' |
| 3 | +import PubSub from '../../utils/PubSub' | ||
| 4 | +const {regeneratorRuntime} = global | ||
| 3 | Page({ | 5 | Page({ |
| 4 | 6 | ||
| 5 | /** | 7 | /** |
| @@ -28,7 +30,7 @@ Page({ | @@ -28,7 +30,7 @@ Page({ | ||
| 28 | * 生命周期函数--监听页面显示 | 30 | * 生命周期函数--监听页面显示 |
| 29 | */ | 31 | */ |
| 30 | onShow: function () { | 32 | onShow: function () { |
| 31 | - | 33 | + PubSub.emit('custom-tab-bar') |
| 32 | }, | 34 | }, |
| 33 | 35 | ||
| 34 | /** | 36 | /** |
-
Please register or login to post a comment