index.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // pages/my/index.js
  2. const app = getApp()
  3. Page({
  4. /**
  5. * 页面的初始数据
  6. */
  7. data: {
  8. // nvabarData: {
  9. // showCapsule: 0, //是否显示左上角图标,消息中心 1表示显示 0表示不显示
  10. // showBack: 1, //返回
  11. // title: '我的', //导航栏 中间的标题
  12. // // 此页面 页面内容距最顶部的距离
  13. // height: app.globalData.height * 2 + 20,
  14. // },
  15. active: 4,
  16. ColorList: app.globalData.ColorList,
  17. searchValue:'',
  18. },
  19. changeSearch(){
  20. console.log(this.data.searchValue);
  21. },
  22. onChange(e){
  23. this.setData({
  24. searchValue: e.detail,
  25. });
  26. },
  27. /**
  28. * 生命周期函数--监听页面加载
  29. */
  30. onLoad: function (options) {
  31. },
  32. /**
  33. * 生命周期函数--监听页面初次渲染完成
  34. */
  35. onReady: function () {
  36. },
  37. /**
  38. * 生命周期函数--监听页面显示
  39. */
  40. onShow: function () {
  41. },
  42. /**
  43. * 生命周期函数--监听页面隐藏
  44. */
  45. onHide: function () {
  46. },
  47. /**
  48. * 生命周期函数--监听页面卸载
  49. */
  50. onUnload: function () {
  51. },
  52. /**
  53. * 页面相关事件处理函数--监听用户下拉动作
  54. */
  55. onPullDownRefresh: function () {
  56. },
  57. /**
  58. * 页面上拉触底事件的处理函数
  59. */
  60. onReachBottom: function () {
  61. },
  62. /**
  63. * 用户点击右上角分享
  64. */
  65. onShareAppMessage: function () {
  66. }
  67. })