facephoto.js 1.8 KB

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