Commit e3438252a684144f9bd70e6f582d001f3906454d

Authored by vking
1 parent c281bba1

search

... ... @@ -11,7 +11,7 @@ Component({
* 组件的初始数据
*/
data: {
url:'pages/reserve/index'
url:'pages/reserve/search'
},
pageLifetimes:{
show(){
... ... @@ -57,9 +57,6 @@ Component({
},
redirectTo(e){
let url= util.attr(e, 'url');
this.setData({
url:url,
})
wx.switchTab({
url: '/'+url,
})
... ...
... ... @@ -26,8 +26,13 @@
.tabBar .checked .text{
color: #5EB2FF;
}
.tabBar .search.checked .icon{
width: 56rpx;
height: 56rpx;
}
.tabBar .search.checked .text{
color: #FFFFFF;
display: none;
}
.home .icon{
width: 40rpx;
... ...
// pages/reserve/home.js
import util from '../../utils/util'
import PubSub from '../../utils/PubSub'
const {regeneratorRuntime} = global
Page({
/**
... ... @@ -28,7 +30,7 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
PubSub.emit('custom-tab-bar')
},
/**
... ...