mycollection.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. // pages/user/mycollection/mycollection.js
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. collection_data: [
  8. {
  9. title: "古诗词诵读(一)江南",
  10. grade: "一年级(上学期)",
  11. avatarUrl: '../../../static/image/timg.jpg',
  12. previewUrl: "../../../static/image/timg.jpg",
  13. plays: "17230",
  14. likes: "71230",
  15. classId: "1",
  16. avatar: '../../static/image/timg.jpg',
  17. nickName: '木小雅',
  18. time: '10-18 09:56'
  19. },
  20. {
  21. title: "古诗词诵读(一)江南",
  22. grade: "一年级(上学期)",
  23. avatarUrl: '../../../static/image/timg.jpg',
  24. previewUrl: "../../../static/image/timg.jpg",
  25. plays: "17230",
  26. likes: "71230",
  27. classId: "1",
  28. avatar: '../../static/image/timg.jpg',
  29. nickName: '木小雅',
  30. time: '10-18 09:56'
  31. },
  32. {
  33. title: "古诗词诵读(一)江南",
  34. grade: "一年级(上学期)",
  35. avatarUrl: '../../../static/image/timg.jpg',
  36. previewUrl: "../../../static/image/timg.jpg",
  37. plays: "17230",
  38. likes: "71230",
  39. classId: "1",
  40. avatar: '../../static/image/timg.jpg',
  41. nickName: '木小雅',
  42. time: '10-18 09:56'
  43. },
  44. {
  45. title: "古诗词诵读(一)江南",
  46. grade: "一年级(上学期)",
  47. avatarUrl: '../../../static/image/timg.jpg',
  48. previewUrl: "../../../static/image/timg.jpg",
  49. plays: "17230",
  50. likes: "71230",
  51. classId: "1",
  52. avatar: '../../static/image/timg.jpg',
  53. nickName: '木小雅',
  54. time: '10-18 09:56'
  55. },
  56. {
  57. title: "古诗词诵读(一)江南",
  58. grade: "一年级(上学期)",
  59. avatarUrl: '../../../static/image/timg.jpg',
  60. previewUrl: "../../../static/image/timg.jpg",
  61. plays: "17230",
  62. likes: "71230",
  63. classId: "1",
  64. avatar: '../../static/image/timg.jpg',
  65. nickName: '木小雅',
  66. time: '10-18 09:56'
  67. },
  68. {
  69. title: "古诗词诵读(一)江南",
  70. grade: "一年级(上学期)",
  71. avatarUrl: '../../../static/image/timg.jpg',
  72. previewUrl: "../../../static/image/timg.jpg",
  73. plays: "17230",
  74. likes: "71230",
  75. classId: "1",
  76. avatar: '../../static/image/timg.jpg',
  77. nickName: '木小雅',
  78. time: '10-18 09:56'
  79. }
  80. ]
  81. },
  82. /**
  83. * 生命周期函数--监听页面加载
  84. */
  85. onLoad: function (option) {
  86. console.log(option.title);
  87. if (option.title) {
  88. wx.setNavigationBarTitle({
  89. title: option.title//页面标题为路由参数
  90. });
  91. this.setData({
  92. title: option.title
  93. });
  94. }
  95. },
  96. /**
  97. * 生命周期函数--监听页面初次渲染完成
  98. */
  99. onReady: function () {
  100. },
  101. /**
  102. * 生命周期函数--监听页面显示
  103. */
  104. onShow: function () {
  105. },
  106. /**
  107. * 生命周期函数--监听页面隐藏
  108. */
  109. onHide: function () {
  110. },
  111. /**
  112. * 生命周期函数--监听页面卸载
  113. */
  114. onUnload: function () {
  115. },
  116. /**
  117. * 页面相关事件处理函数--监听用户下拉动作
  118. */
  119. onPullDownRefresh: function () {
  120. },
  121. /**
  122. * 页面上拉触底事件的处理函数
  123. */
  124. onReachBottom: function () {
  125. },
  126. /**
  127. * 用户点击右上角分享
  128. */
  129. onShareAppMessage: function () {
  130. }
  131. })