index.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. const _Http = getApp().globalData.http;
  2. Component({
  3. data: {
  4. steps: [{
  5. text: '步骤一',
  6. desc: '描述信息',
  7. },
  8. {
  9. text: '步骤二',
  10. desc: '描述信息',
  11. },
  12. {
  13. text: '步骤三',
  14. desc: '描述信息',
  15. },
  16. {
  17. text: '步骤四',
  18. desc: '描述信息',
  19. },
  20. ],
  21. sa_orderid: 0,
  22. content: {
  23. nocache: true,
  24. pageNumber: 1,
  25. pageTotal: 1,
  26. total: null
  27. }
  28. },
  29. methods: {
  30. getList(id, init) {
  31. let content = this.data.content;
  32. content.sa_orderid = id;
  33. if (init) content.pageNumber = 1;
  34. _Http.basic({
  35. "id": "20221229093602",
  36. content
  37. }).then(res => {
  38. console.log("订单进度", res)
  39. if (res.msg != '成功') return wx.showToast({
  40. title: res.msg,
  41. icon: "none"
  42. })
  43. this.setData({
  44. list: res.pageNumber == 1 ? res.data : this.data.list.concat(res.data),
  45. "content.pageNumber": res.pageNumber + 1,
  46. "content.pageSize": res.pageSize,
  47. "content.pageTotal": res.pageTotal,
  48. "content.total": res.total,
  49. sa_orderid: id
  50. })
  51. })
  52. }
  53. }
  54. })