// pages/appointment/appointment.js Page({ /** * 页面的初始数据 */ data: { hasAddress: true, calendarcolor: '#45A6B5', timeActive: '0', vanoverlayshow: false }, /** * 生命周期函数--监听页面加载 */ onLoad(options) { }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady() { }, /** * 生命周期函数--监听页面显示 */ onShow() { }, handleTime (e) { console.log(e); var timeActiveIndex = e.currentTarget.dataset.time this.setData({ timeActive: timeActiveIndex }) }, // 激活卡片 handleActiveCard () {}, // 去充值 handleCharge () {} })