拓恒河湖长制全民护河平台WEB端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
962B

  1. // pages/mine/index.js
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. userInfo: {}, // 用户授权信息
  8. list: [
  9. {title: '我的反馈', type: 'feedback'},
  10. {title: '我的美拍', type: 'upload'}
  11. ]
  12. },
  13. /**
  14. * 生命周期函数--监听页面加载
  15. */
  16. onLoad: function (options) {
  17. this.getTabBar().setData({
  18. selected: 2
  19. })
  20. this.setData({
  21. userInfo: wx.getStorageSync('userInfo')
  22. })
  23. },
  24. goRecords(e) {
  25. const type = e.currentTarget.dataset.type
  26. if(type === 'feedback') {
  27. wx.navigateTo({
  28. url: '/package_B/pages/records/index',
  29. })
  30. } else {
  31. wx.navigateTo({
  32. url: '/package_B/pages/beauties/index',
  33. })
  34. }
  35. },
  36. /**
  37. * 用户点击右上角分享
  38. */
  39. onShareAppMessage: function () {
  40. }
  41. })