拓恒河湖长制全民护河平台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.

38 lines
857B

  1. // package_mine/pages/exchange/index.js
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. list: [],
  8. current: "/my/exchange",
  9. params: {}
  10. },
  11. /**
  12. * 生命周期函数--监听页面加载
  13. */
  14. onLoad(options) {
  15. let params = this.data.params
  16. params.openid = wx.getStorageSync('openid')
  17. this.setData({params})
  18. },
  19. /* 更新数据 */
  20. updateList(e) {
  21. let list = this.data.list.concat(e.detail)
  22. this.setData({ list })
  23. },
  24. /* 重置数据 */
  25. resetList() {
  26. this.setData({ list: [] })
  27. },
  28. // /* 跳转至详情页 */
  29. // showDetail(e) {
  30. // let data = e.currentTarget.dataset.item
  31. // wx.navigateTo({
  32. // url: '/package_mine/pages/feedbackDetail/index?data='+ JSON.stringify(data),
  33. // })
  34. // }
  35. })