cyx-ament-wechat/miniprogram/pages/work/work.js

76 lines
1.2 KiB
JavaScript
Raw Normal View History

2023-08-31 10:43:26 +08:00
// pages/index/work.js
const $api = require('../../utils/api').API;
Page({
/**
* 页面的初始数据
*/
data: {
2023-08-31 17:11:28 +08:00
typeOpt:['党务及意识形态','党风廉政建设','日常考核指标','年度考核指标']
2023-08-31 10:43:26 +08:00
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
2023-08-31 17:11:28 +08:00
//跳转页面
handleSwitch(e){
let _type = e.currentTarget.dataset.type;
let typeName = this.data.typeOpt[Number(_type)];
wx.navigateTo({
url:'../workReport/workReport?type='+typeName
})
},
2023-08-31 10:43:26 +08:00
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})