You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
949 B
34 lines
949 B
// pages/administ/index.js
|
|
const event = require('../../../utils/event')
|
|
const app = getApp()
|
|
|
|
Page({
|
|
/**
|
|
* 页面的初始数据
|
|
*/
|
|
data: {
|
|
safeBottom: app.globalData.safeBottom,
|
|
fragment: app.globalData.safeFragmentHeight,
|
|
show: false,
|
|
visiable: true
|
|
},
|
|
/************************************** 初始化流程 ********************************************/
|
|
onLoad: function (options) {
|
|
this.setData({ safeBottom: app.globalData.safeBottom })
|
|
},
|
|
/************************************** 生命周期函数--监听页面初次渲染完成 ********************************************/
|
|
showMenu: function () {
|
|
this.setData({show: !this.data.show})
|
|
},
|
|
onClose: function(){
|
|
this.setData({show: false})
|
|
},
|
|
onEvent: function (message) {
|
|
if (message.what == 99) {
|
|
this.setData({ visiable: message.visiable })
|
|
}
|
|
},
|
|
onUnload: function(){
|
|
event.remove('TabMessage', this)
|
|
}
|
|
})
|