index.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. // custom-tab-bar/smartStore/index.js
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. option1: [{
  8. text: '列表',
  9. value: 0
  10. },
  11. {
  12. text: '收藏夹',
  13. value: 1
  14. }
  15. ],
  16. option2: [{
  17. text: '默认排序',
  18. value: 'a'
  19. },
  20. {
  21. text: '按上传日期升序',
  22. value: 'b'
  23. },
  24. {
  25. text: '按上传日期降序',
  26. value: 'c'
  27. },
  28. ],
  29. value1: 0,
  30. value2: 'a',
  31. },
  32. /**
  33. * 生命周期函数--监听页面加载
  34. */
  35. onLoad(options) {
  36. },
  37. /**
  38. * 生命周期函数--监听页面初次渲染完成
  39. */
  40. onReady() {
  41. },
  42. /**
  43. * 生命周期函数--监听页面显示
  44. */
  45. onShow() {
  46. this.getTabBar().init();
  47. },
  48. /**
  49. * 生命周期函数--监听页面隐藏
  50. */
  51. onHide() {
  52. },
  53. /**
  54. * 生命周期函数--监听页面卸载
  55. */
  56. onUnload() {
  57. },
  58. /**
  59. * 页面相关事件处理函数--监听用户下拉动作
  60. */
  61. onPullDownRefresh() {
  62. },
  63. /**
  64. * 页面上拉触底事件的处理函数
  65. */
  66. onReachBottom() {
  67. },
  68. /**
  69. * 用户点击右上角分享
  70. */
  71. onShareAppMessage() {
  72. }
  73. })