// pages/Components/classList/classList.js Component({ /** * 组件的属性列表 */ properties: { showLeaveNum:{ type:Boolean, value: false } }, /** * 组件的初始数据 */ data: { }, /** * 组件的方法列表 */ methods: { getLeaveNumList:function(){ wx.navigateTo({ url: '/pages/leaveRecord/leaveRecord', }) } } })