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