index.js 798 B

1234567891011121314151617181920212223242526272829303132
  1. const _Http = getApp().globalData.http;
  2. Component({
  3. data: {
  4. },
  5. methods: {
  6. queryList(condition) {
  7. return _Http.basic({
  8. "id": 20230727134902,
  9. "content": {
  10. "pageNumber": 1,
  11. "pageSize": 9999,
  12. "where": {
  13. condition
  14. }
  15. }
  16. }).then(res => {
  17. console.log("项目名称", res)
  18. this.setData({
  19. repetitionList: res.data,
  20. show: res.data.length != 0
  21. })
  22. return res.data.length != 0
  23. })
  24. },
  25. repClose() {
  26. this.setData({
  27. show: false
  28. })
  29. }
  30. }
  31. })