index.js 805 B

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