index.js 334 B

123456789101112131415161718
  1. import {
  2. getFavoritesList
  3. } from "~/api/user"
  4. import reachBottom from '~/mixins/reachBottom'
  5. import share from '~/mixins/share'
  6. Page({
  7. behaviors: [reachBottom,share],
  8. data: {},
  9. onShow() {
  10. this.resetData()
  11. },
  12. async loadMore() {
  13. this.getData(getFavoritesList, {})
  14. },
  15. onReachBottom() {
  16. this.loadMore()
  17. },
  18. })