2024-02-29 17:16:05 +08:00
|
|
|
Page({
|
|
|
|
|
2024-03-07 20:15:43 +08:00
|
|
|
/**
|
|
|
|
* 页面的初始数据
|
|
|
|
*/
|
|
|
|
data: {
|
2024-03-08 12:00:15 +08:00
|
|
|
dialogShow: false,
|
|
|
|
dialogId: null,
|
|
|
|
dialogContent: null,
|
2024-03-07 20:15:43 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面加载
|
|
|
|
*/
|
|
|
|
onLoad(options) {
|
2024-03-08 12:00:15 +08:00
|
|
|
|
2024-03-07 20:15:43 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
// tab 切换
|
|
|
|
tabClickSwitch(event) {
|
|
|
|
wx.showToast({
|
|
|
|
title: `切换到标签 ${event.detail.title}`,
|
|
|
|
icon: 'none',
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
2024-03-08 12:00:15 +08:00
|
|
|
// 显示-弹出框
|
|
|
|
showDialog(e) {
|
|
|
|
console.log('showDialog', e);
|
|
|
|
|
|
|
|
let _this = this
|
|
|
|
_this.setData({
|
|
|
|
dialogShow: true,
|
|
|
|
dialogId: e.currentTarget.dataset.id,
|
|
|
|
dialogContent: null
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
// 弹出框-通过
|
|
|
|
dialogSuccess() {
|
|
|
|
let _this = this
|
|
|
|
_this.setData({
|
|
|
|
dialogShow: false,
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
// 弹出框-驳回
|
|
|
|
dialogReject() {
|
|
|
|
let _this = this
|
|
|
|
_this.setData({
|
|
|
|
dialogShow: false,
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
// 弹出框-输入框:输入内容时触发
|
|
|
|
dialogInput(e) {
|
|
|
|
let _this = this
|
|
|
|
console.log('dialogInput', e.detail);
|
|
|
|
_this.setData({
|
|
|
|
dialogContent: e.detail,
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
2024-03-07 20:15:43 +08:00
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
|
|
*/
|
|
|
|
onReady() {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面显示
|
|
|
|
*/
|
|
|
|
onShow() {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面隐藏
|
|
|
|
*/
|
|
|
|
onHide() {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面卸载
|
|
|
|
*/
|
|
|
|
onUnload() {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 页面相关事件处理函数--监听用户下拉动作
|
|
|
|
*/
|
|
|
|
onPullDownRefresh() {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 页面上拉触底事件的处理函数
|
|
|
|
*/
|
|
|
|
onReachBottom() {
|
2024-03-08 12:00:15 +08:00
|
|
|
console.log('onReachBottom');
|
2024-03-07 20:15:43 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 用户点击右上角分享
|
|
|
|
*/
|
|
|
|
onShareAppMessage() {
|
|
|
|
|
|
|
|
},
|
|
|
|
onChange(event) {
|
|
|
|
wx.showToast({
|
|
|
|
title: `切换到标签 ${event.detail.name}`,
|
|
|
|
icon: 'none',
|
|
|
|
});
|
|
|
|
},
|
|
|
|
toCheckFn() {
|
|
|
|
wx.reLaunch({
|
|
|
|
url: '/pages/meeting/visitorIinvitation/visitorIinvitation',
|
|
|
|
})
|
|
|
|
}
|
2024-02-29 17:16:05 +08:00
|
|
|
})
|