detail.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. // pages/login/login.js
  2. import WxValidate from '../../utils/wxValidate'
  3. const app = getApp()
  4. Page({
  5. /**
  6. * 页面的初始数据
  7. */
  8. data: {
  9. src: '/image/adimges.jpg',
  10. src1: '/image/head1.png',
  11. frameStyle: { useTop: false, name: '团队详情', leftArrow: true, useBar: false },
  12. // 主体高度
  13. infoHeight: '',
  14. list: [
  15. {
  16. id: '1',time: '08:30', date: '2022.01.15',Founder:'XXX',group:'哈拉海队',person:'10'
  17. }
  18. ],
  19. lists: [
  20. {
  21. id: '1',name:'老头1',head:'/image/tou.png'
  22. },
  23. {
  24. id: '1',name:'老头2',head:'/image/tou.png'
  25. },
  26. {
  27. id: '1',name:'老头3',head:'/image/tou.png'
  28. },
  29. {
  30. id: '1',name:'老头4',head:'/image/tou.png'
  31. },
  32. {
  33. id: '1',name:'老头5',head:'/image/tou.png'
  34. },
  35. {
  36. id: '1',name:'老头6',head:'/image/tou.png'
  37. },
  38. {
  39. id: '1',name:'老头7',head:'/image/tou.png'
  40. },
  41. {
  42. id: '1',name:'老头8',head:'/image/tou.png'
  43. },
  44. {
  45. id: '1',name:'老头9',head:'/image/tou.png'
  46. },
  47. ],
  48. },
  49. back: function () {
  50. wx.navigateBack({ url: '/pages/home/index' })
  51. },
  52. /**
  53. * 生命周期函数--监听页面加载
  54. */
  55. onLoad: function (options) {
  56. // 计算高度
  57. this.searchHeight()
  58. },
  59. // 计算高度
  60. searchHeight: function () {
  61. let frameStyle = this.data.frameStyle;
  62. let client = app.globalData.client;
  63. // 减去状态栏
  64. let infoHeight = client.windowHeight - (client.statusBarHeight + client.getMenu.height + (client.getMenu.top - client.statusBarHeight) * 2);
  65. // 是否减去底部菜单
  66. if (frameStyle.useBar) infoHeight = infoHeight - 50;
  67. if (infoHeight) this.setData({ infoHeight: infoHeight })
  68. },
  69. /**
  70. * 生命周期函数--监听页面初次渲染完成
  71. */
  72. onReady: function () {
  73. },
  74. /**
  75. * 生命周期函数--监听页面显示
  76. */
  77. onShow: function () {
  78. },
  79. /**
  80. * 生命周期函数--监听页面隐藏
  81. */
  82. onHide: function () {
  83. },
  84. /**
  85. * 生命周期函数--监听页面卸载
  86. */
  87. onUnload: function () {
  88. },
  89. /**
  90. * 页面相关事件处理函数--监听用户下拉动作
  91. */
  92. onPullDownRefresh: function () {
  93. },
  94. /**
  95. * 页面上拉触底事件的处理函数
  96. */
  97. onReachBottom: function () {
  98. },
  99. /**
  100. * 用户点击右上角分享
  101. */
  102. onShareAppMessage: function () {
  103. }
  104. })