2024-08-05 16:28:32 +08:00

97 lines
1.7 KiB
JavaScript

const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
IMG_NAME: app.IMG_NAME,
menuList: [{
name: "我要报修",
img: "/profile/static/repair/index/my.png",
path: "/pages/reportRepair/report/report"
}, {
name: "报修查询",
img: "/profile/static/repair/index/query.png",
path: "/pages/reportRepair/query/record/record"
}, {
name: "维修入口",
img: "/profile/static/repair/index/repair.png",
path: "/pages/reportRepair/repair/index/index"
}, {
name: "派单入口",
img: "/profile/static/repair/index/case.png",
path: "/pages/reportRepair/assign/record/record"
}]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
// 跳转菜单
jumpMenu(e) {
console.log('jumpMenu', e);
let obj = e.currentTarget.dataset.obj
wx.navigateTo({
url: obj.path,
})
},
back(){
wx.navigateBack()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})