93 lines
1.7 KiB
JavaScript
Raw Normal View History

2024-07-26 16:36:45 +08:00
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
IMG_NAME: app.IMG_NAME,
menuList: [{
name: "我要报修",
img: "/profile/static/index/menu-bxfw.png",
2024-07-29 11:37:22 +08:00
path: "/pages/reportRepair/repairAdd/add"
2024-07-26 16:36:45 +08:00
}, {
name: "报修查询",
img: "/profile/static/index/menu-ztyy.png",
2024-07-29 11:37:22 +08:00
path: "/pages/reportRepair/repairRecord/reportPerson/record"
2024-07-26 16:36:45 +08:00
}, {
name: "维修入口",
img: "/profile/static/index/menu-bxfw.png",
path: "/pages/reportRepair/reportRepair"
}, {
name: "派单入口",
img: "/profile/static/index/menu-bxfw.png",
path: "/pages/reportRepair/reportRepair"
}]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
2024-07-26 17:28:44 +08:00
// 跳转菜单
2024-07-29 10:32:57 +08:00
jumpMenu(e) {
console.log('jumpMenu', e);
2024-07-26 17:28:44 +08:00
let obj = e.currentTarget.dataset.obj
wx.navigateTo({
2024-07-29 10:32:57 +08:00
url: obj.path,
})
2024-07-26 17:28:44 +08:00
},
2024-07-26 16:36:45 +08:00
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})