list.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <div class="app-content">
  3. <div class="list-wrap" v-for="(item, index) in 4" :key="index" @click="$util.pageTo('/pages/order/detail')">
  4. <div class="list-top flex-center-between">
  5. <div class="app-color-3">订单编号:3261515151</div>
  6. <div class="app-price">等待支付</div>
  7. </div>
  8. <div class="list-blo">
  9. <list-module v-for="(item, subIndex) in 2" :key="subIndex" />
  10. </div>
  11. <div class="list-bottom flex-center-between">
  12. <div>
  13. <span>应付金额:</span>
  14. <span class="app-size-30 app-bold">¥580.00</span>
  15. </div>
  16. <button class="button-com red">立即付款</button>
  17. </div>
  18. </div>
  19. </div>
  20. </template>
  21. <script>
  22. import ListModule from '@/components/module/app-order-list'
  23. // api
  24. import { getListB } from '@/api/order'
  25. export default {
  26. name: 'order-list',
  27. components: {
  28. ListModule
  29. },
  30. data() {
  31. return {
  32. }
  33. },
  34. onPullDownRefresh() {
  35. console.log('fasdfasdf')
  36. },
  37. // 加载更多
  38. onReachBottom() {
  39. console.log('5151')
  40. },
  41. onLoad: function() {
  42. this.init()
  43. },
  44. methods: {
  45. async init() {
  46. this._list()
  47. },
  48. _list() {
  49. return getList({ status: this.tabIndex }).then(res => {
  50. this.completes(res)
  51. })
  52. }
  53. }
  54. }
  55. </script>
  56. <style lang="scss" scoped>
  57. .app-content {
  58. padding-top: 20px;
  59. padding-bottom: 1px;
  60. .list-wrap {
  61. padding: 0 30px;
  62. background-color: #fff;
  63. margin-bottom: 20px;
  64. .list-top,
  65. .list-bottom {
  66. padding: 20px 0;
  67. border-bottom: 1px solid $borderColor;
  68. .button-com {
  69. padding-top: 15px;
  70. padding-bottom: 15px;
  71. }
  72. }
  73. }
  74. }
  75. </style>