index.js 400 B

123456789101112131415161718192021222324
  1. import {
  2. getFavoritesList
  3. } from "~/api/user"
  4. import reachBottom from '~/mixins/reachBottom'
  5. Page({
  6. behaviors: [reachBottom],
  7. data: {},
  8. onShow() {
  9. this.resetData()
  10. },
  11. async loadMore() {
  12. this.getData(getFavoritesList, {})
  13. console.log(this.data.list);
  14. },
  15. onReachBottom() {
  16. this.loadMore()
  17. },
  18. /**
  19. * 用户点击右上角分享
  20. */
  21. onShareAppMessage() {
  22. }
  23. })