visitorcheck.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. const app = getApp()
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. isregiste: true,
  8. list: [{
  9. img: '/images/head.png',
  10. name: '刘天仙',
  11. address: '一号宿舍楼 502宿舍',
  12. time: '2019-10-28 15:18'
  13. }, {
  14. img: '/images/head.png',
  15. name: '陈方明',
  16. address: '一号宿舍楼 508宿舍',
  17. time: '2019-10-28 15:18'
  18. }]
  19. },
  20. checkTab: function(e) {
  21. const that = this;
  22. that.setData({
  23. isregiste: !that.data.isregiste
  24. })
  25. },
  26. todetail: function(e) {
  27. wx.navigateTo({
  28. url: '../visitorcheckdetail/visitorcheckdetail',
  29. })
  30. },
  31. /**
  32. * 生命周期函数--监听页面加载
  33. */
  34. onLoad: function(options) {
  35. },
  36. /**
  37. * 生命周期函数--监听页面初次渲染完成
  38. */
  39. onReady: function() {
  40. },
  41. /**
  42. * 生命周期函数--监听页面显示
  43. */
  44. onShow: function() {
  45. },
  46. /**
  47. * 生命周期函数--监听页面隐藏
  48. */
  49. onHide: function() {
  50. },
  51. /**
  52. * 生命周期函数--监听页面卸载
  53. */
  54. onUnload: function() {
  55. },
  56. /**
  57. * 页面相关事件处理函数--监听用户下拉动作
  58. */
  59. onPullDownRefresh: function() {
  60. },
  61. /**
  62. * 页面上拉触底事件的处理函数
  63. */
  64. onReachBottom: function() {
  65. }
  66. })