// package/troubleshooting/shootingForm/index.js Page({ /** * 页面的初始数据 */ data: { shootingid: '', maintenancePersonId: null, maintenanceRequirement: '', planStartTimePopupShow: false, planStartTime: '', planEndTimePopupShow: false, planEndTime: '', }, /** * 生命周期函数--监听页面加载 */ onLoad (options) { const { shootingid } = options if (shootingid) { this.setData({ shootingid }) } else { } }, onMaintenancePersonPopupChange (e) { this.setData({ multiIndex: e.detail.value }) }, showPlanStartTimePopup () { this.setData({ planStartTimePopupShow: true }) }, closePlanStartTimePopup () { this.setData({ planStartTimePopupShow: false }) }, onPlanStartTimeChange (event) { this.setData({ planStartTime: event.detail, }) }, showPlanEndTimePopup () { this.setData({ planEndTimePopupShow: true }) }, closePlanEndTimePopup () { this.setData({ planEndTimePopupShow: false }) }, onPlanEndTimeChange (event) { this.setData({ planEndTime: event.detail, }) }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady () { }, /** * 生命周期函数--监听页面显示 */ onShow () { }, /** * 生命周期函数--监听页面隐藏 */ onHide () { }, /** * 生命周期函数--监听页面卸载 */ onUnload () { }, /** * 页面相关事件处理函数--监听用户下拉动作 */ onPullDownRefresh () { }, /** * 页面上拉触底事件的处理函数 */ onReachBottom () { }, /** * 用户点击右上角分享 */ onShareAppMessage () { } })