index.js 654 B

1234567891011121314151617181920212223242526272829
  1. import share from '~/mixins/share'
  2. import reachBottom from '~/mixins/reachBottom';
  3. import {
  4. getSaleInvite
  5. } from '~/api/sale'
  6. Page({
  7. behaviors: [reachBottom,share],
  8. data: {
  9. dateTime: '2023-09',
  10. },
  11. onLoad(options) {
  12. this.resetData();
  13. },
  14. bindDateChange(e) {
  15. console.log('携带值为', e.detail.value)
  16. this.setData({
  17. dateTime: e.detail.value
  18. })
  19. this.resetData()
  20. },
  21. openInvite() {
  22. this.selectComponent("#InvitePop").openInvite()
  23. },
  24. loadMore() {
  25. this.getData(getSaleInvite, {
  26. dateTime: this.data.dateTime
  27. });
  28. },
  29. })