index.js 672 B

1234567891011121314151617181920212223242526272829303132333435
  1. import {
  2. getBeLikeList
  3. } from '~/api/message'
  4. import event from '~/mixins/event'
  5. import reachBottom from '~/mixins/reachBottom'
  6. Page({
  7. behaviors: [reachBottom,event],
  8. data: {},
  9. onShow(options) {
  10. this.resetData()
  11. },
  12. loadMore() {
  13. this.getData(getBeLikeList, {
  14. pageSize: 20
  15. })
  16. },
  17. jumpUserInfo({
  18. currentTarget
  19. }) {
  20. wx.navigateTo({
  21. url: `/pages/personal/index?uid=${currentTarget.dataset.uid}&type=user`,
  22. })
  23. },
  24. jumpWork({
  25. currentTarget
  26. }) {
  27. let {
  28. id,
  29. likelog
  30. } = currentTarget.dataset
  31. wx.navigateTo({
  32. url: `/pages/userWorks/index?id=${id}&onceId=${likelog}&type=like`,
  33. })
  34. },
  35. })