index.js 367 B

1234567891011121314151617181920212223
  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. },
  14. onReachBottom() {
  15. this.loadMore()
  16. },
  17. /**
  18. * 用户点击右上角分享
  19. */
  20. onShareAppMessage() {
  21. }
  22. })