You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.1 KiB

3 years ago
// index.js
// 获取应用实例
const app = getApp()
Page({
data: {
3 years ago
tabbar: {},
menuList:[
{ icon:'../../images/home/menu1.png',text: 'IT制作'},
{ icon:'../../images/home/menu2.png', text: 'logo设计' },
{ icon:'../../images/home/menu3.png', text: '文案策划' },
{ icon:'../../images/home/menu4.png', text: 'app开发' },
{ icon:'../../images/home/menu5.png', text: '装修服务' },
{ icon:'../../images/home/menu6.png', text: '软件定制' },
{ icon:'../../images/home/menu7.png', text: '法律服务' },
{ icon:'../../images/home/menu8.png', text: '小程序' },
{ icon:'../../images/home/menu9.png', text: '网络营销' },
{ icon:'../../images/home/menu10.png', text: '全部分类' }
],
CustomBar: app.globalData.CustomBar,
menuHeight: app.globalData.menuHeight,
navHeight: app.globalData.navHeight,
menuTop: app.globalData.menuTop,
active: 2
3 years ago
},
onLoad() {
3 years ago
app.editTabbar();
3 years ago
},
3 years ago
tabClick(e){
this.setData({
active: e.currentTarget.dataset.i
3 years ago
})
},
3 years ago
toTab2(){
wx.switchTab({
url: '/pages/demandHall/index',
3 years ago
})
3 years ago
},
3 years ago
})