comments.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. // pages/comments/comments.js
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. commentsList:[{
  8. id:1,
  9. headImg:"../../images/headImg.jpg",
  10. product:"葛优躺(北京躺)电影足疗",
  11. assessDate:"2020-02-02",
  12. stars:5,
  13. comments:{
  14. content:"3号技师特别好~~~赞一个,下次还来。",
  15. imgs:[
  16. {imgurl:"../../images/commentsImg01.jpg"},
  17. {imgurl:"../../images/commentsImg02.jpg"},
  18. {imgurl:"../../images/commentsImg03.jpg"},
  19. {imgurl:"../../images/commentsImg03.jpg"},
  20. {imgurl:"../../images/commentsImg02.jpg"},
  21. {imgurl:"../../images/commentsImg01.jpg"},
  22. {imgurl:"../../images/commentsImg02.jpg"},
  23. {imgurl:"../../images/commentsImg01.jpg"},
  24. {imgurl:"../../images/commentsImg03.jpg"},
  25. ]
  26. }
  27. },{
  28. id:2,
  29. headImg:"../../images/headImg.jpg",
  30. product:"葛优躺(北京躺)电影足疗",
  31. assessDate:"2020-02-02",
  32. stars:5,
  33. comments:{
  34. content:"3号技师特别好~~~赞一个,下次还来。",
  35. imgs:[
  36. {imgurl:"../../images/commentsImg01.jpg"},
  37. ]
  38. }
  39. },{
  40. id:3,
  41. headImg:"../../images/headImg.jpg",
  42. product:"葛优躺(北京躺)电影足疗",
  43. assessDate:"2020-02-02",
  44. stars:4,
  45. comments:{
  46. content:"3号技师特别好~~~赞一个,下次还来。",
  47. imgs:[ ]
  48. }
  49. },{
  50. id:4,
  51. headImg:"../../images/headImg.jpg",
  52. product:"葛优躺(北京躺)电影足疗",
  53. assessDate:"2020-02-02",
  54. stars:5,
  55. comments:{
  56. content:"3号技师特别好~~~赞一个,下次还来。",
  57. imgs:[
  58. {imgurl:"../../images/commentsImg01.jpg"},
  59. {imgurl:"../../images/commentsImg02.jpg"},
  60. {imgurl:"../../images/commentsImg01.jpg"},
  61. {imgurl:"../../images/commentsImg03.jpg"},
  62. ]
  63. }
  64. },{
  65. id:5,
  66. headImg:"../../images/headImg.jpg",
  67. product:"葛优躺(北京躺)电影足疗",
  68. assessDate:"2020-02-02",
  69. stars:5,
  70. comments:{
  71. content:"3号技师特别好~~~赞一个,下次还来。",
  72. imgs:[
  73. {imgurl:"../../images/commentsImg01.jpg"},
  74. {imgurl:"../../images/commentsImg02.jpg"},
  75. {imgurl:"../../images/commentsImg03.jpg"},
  76. {imgurl:"../../images/commentsImg02.jpg"},
  77. {imgurl:"../../images/commentsImg01.jpg"},
  78. ]
  79. }
  80. }],
  81. },
  82. /**
  83. * 生命周期函数--监听页面加载
  84. */
  85. onLoad: function (options) {
  86. wx.setNavigationBarTitle({
  87. title: options.title
  88. })
  89. },
  90. /**
  91. * 生命周期函数--监听页面初次渲染完成
  92. */
  93. onReady: function () {
  94. },
  95. /**
  96. * 生命周期函数--监听页面显示
  97. */
  98. onShow: function () {
  99. },
  100. /**
  101. * 生命周期函数--监听页面隐藏
  102. */
  103. onHide: function () {
  104. },
  105. /**
  106. * 生命周期函数--监听页面卸载
  107. */
  108. onUnload: function () {
  109. },
  110. /**
  111. * 页面相关事件处理函数--监听用户下拉动作
  112. */
  113. onPullDownRefresh: function () {
  114. },
  115. /**
  116. * 页面上拉触底事件的处理函数
  117. */
  118. onReachBottom: function () {
  119. },
  120. /**
  121. * 用户点击右上角分享
  122. */
  123. onShareAppMessage: function () {
  124. }
  125. })