learn-lb.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // pages/learn-lb/learn-lb.js
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. lb: {
  8. indicatorDots: true,
  9. indicatorColor: '#F0FFF0',
  10. indicatorActiveColor: '#54FF9F',
  11. interval: 3000,
  12. duration: 500,
  13. autoplay: true,
  14. vertical: false,
  15. circular: true
  16. },
  17. imgs: [
  18. '../../images/4.jpeg',
  19. '../../images/5.jpeg',
  20. '../../images/6.jpeg'
  21. ]
  22. },
  23. /**
  24. * 生命周期函数--监听页面加载
  25. */
  26. onLoad(options) {
  27. },
  28. /**
  29. * 生命周期函数--监听页面初次渲染完成
  30. */
  31. onReady() {
  32. },
  33. /**
  34. * 生命周期函数--监听页面显示
  35. */
  36. onShow() {
  37. },
  38. /**
  39. * 生命周期函数--监听页面隐藏
  40. */
  41. onHide() {
  42. },
  43. /**
  44. * 生命周期函数--监听页面卸载
  45. */
  46. onUnload() {
  47. },
  48. /**
  49. * 页面相关事件处理函数--监听用户下拉动作
  50. */
  51. onPullDownRefresh() {
  52. },
  53. /**
  54. * 页面上拉触底事件的处理函数
  55. */
  56. onReachBottom() {
  57. },
  58. /**
  59. * 用户点击右上角分享
  60. */
  61. onShareAppMessage() {
  62. }
  63. })