facephoto.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. const app = getApp()
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. isregiste: true,
  8. arrayCollege: ['软件工程学院', '文学院', '法学院'],
  9. indexCollege: 0,
  10. arrayDept: ['计算机应用系', '文学系', '数学系'],
  11. indexDept: 0,
  12. arrayClass: ['一班', '二班', '三班'],
  13. indexClass: 0,
  14. list: [{
  15. img: '/images/head.png',
  16. name: '刘天仙',
  17. address: '一号宿舍楼 502宿舍',
  18. time: '2019-10-28 15:18'
  19. }, {
  20. img: '/images/head.png',
  21. name: '陈方明',
  22. address: '一号宿舍楼 508宿舍',
  23. time: '2019-10-28 15:18'
  24. }]
  25. },
  26. checkTab: function(e) {
  27. const that = this;
  28. that.setData({
  29. isregiste: !that.data.isregiste
  30. })
  31. },
  32. pickerChangeCollege: function(e) {
  33. this.setData({
  34. indexCollege: e.detail.value
  35. })
  36. },
  37. pickerChangeDept: function(e) {
  38. this.setData({
  39. indexDept: e.detail.value
  40. })
  41. },
  42. pickerChangeClass: function(e) {
  43. this.setData({
  44. indexClass: e.detail.value
  45. })
  46. },
  47. /**
  48. * 生命周期函数--监听页面加载
  49. */
  50. onLoad: function(options) {
  51. },
  52. /**
  53. * 生命周期函数--监听页面初次渲染完成
  54. */
  55. onReady: function() {
  56. },
  57. /**
  58. * 生命周期函数--监听页面显示
  59. */
  60. onShow: function() {
  61. },
  62. /**
  63. * 生命周期函数--监听页面隐藏
  64. */
  65. onHide: function() {
  66. },
  67. /**
  68. * 生命周期函数--监听页面卸载
  69. */
  70. onUnload: function() {
  71. },
  72. /**
  73. * 页面相关事件处理函数--监听用户下拉动作
  74. */
  75. onPullDownRefresh: function() {
  76. },
  77. /**
  78. * 页面上拉触底事件的处理函数
  79. */
  80. onReachBottom: function() {
  81. }
  82. })