rank.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. // pages/piano/rank/rank.js
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. nvabarData: {
  8. showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
  9. title: '排行榜', //导航栏 中间的标题
  10. },
  11. userHeader: "https://img2.baidu.com/it/u=555422902,1687437697&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=500",
  12. tabList: ["本月排行榜", '30天排行榜', '7天排行榜'],
  13. textList: [
  14. { "count": 12, "tips": "今日次数"},
  15. { "count": 32, "tips": '月度次数' },
  16. { "count": 45, "tips": '今日排名' }
  17. ],
  18. rankList: [
  19. {
  20. "index": 1,
  21. "header": "https://img2.baidu.com/it/u=821017625,3715366885&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=500",
  22. "name": "名字",
  23. "address": "xxxx",
  24. "count": "xx次cc时间",
  25. }, {
  26. "index": 2,
  27. "header": "https://img2.baidu.com/it/u=821017625,3715366885&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=500",
  28. "name": "名字2",
  29. "address": "xxxx",
  30. "count": "xx次cc时间",
  31. },
  32. {
  33. "index": 3,
  34. "header": "https://img2.baidu.com/it/u=821017625,3715366885&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=500",
  35. "name": "名字2",
  36. "address": "xxxx",
  37. "count": "xx次cc时间",
  38. }
  39. ],
  40. selectIndex: 0
  41. },
  42. /**
  43. * 生命周期函数--监听页面加载
  44. */
  45. onLoad(options) {
  46. },
  47. /**
  48. * 生命周期函数--监听页面初次渲染完成
  49. */
  50. onReady() {
  51. },
  52. /**
  53. * 生命周期函数--监听页面显示
  54. */
  55. onShow() {
  56. },
  57. /**
  58. * 生命周期函数--监听页面隐藏
  59. */
  60. onHide() {
  61. },
  62. /**
  63. * 生命周期函数--监听页面卸载
  64. */
  65. onUnload() {
  66. },
  67. /**
  68. * 页面相关事件处理函数--监听用户下拉动作
  69. */
  70. onPullDownRefresh() {
  71. },
  72. /**
  73. * 页面上拉触底事件的处理函数
  74. */
  75. onReachBottom() {
  76. },
  77. /**
  78. * 用户点击右上角分享
  79. */
  80. onShareAppMessage() {
  81. }
  82. })