index.js 649 B

12345678910111213141516171819202122232425262728293031323334
  1. import reachBottom from '~/mixins/reachBottom';
  2. Page({
  3. behaviors: [reachBottom],
  4. data: {
  5. currentIndex: 1,
  6. categoryList: [{
  7. id: 1,
  8. title: '全部'
  9. }, {
  10. id: 2,
  11. title: '已付款'
  12. }, {
  13. id: 3,
  14. title: '退单'
  15. }, ]
  16. },
  17. onLoad(options) {
  18. },
  19. loadMore() {
  20. /* this.getData(getCategoryWorks, {
  21. columnId
  22. }); */
  23. },
  24. setClass({
  25. currentTarget
  26. }) {
  27. this.setData({
  28. currentIndex: currentTarget.dataset.index,
  29. });
  30. // this.resetData();
  31. },
  32. })