index.js 677 B

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