index.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <view>
  3. <scroll-view scroll-y="true">
  4. <view v-for="item in riderData" :key="item.id" style="margin: 10rpx 0;">
  5. <rider-order :orderInfo="item"></rider-order>
  6. </view>
  7. </scroll-view>
  8. </view>
  9. </template>
  10. <script>
  11. import {
  12. registerVerify,
  13. } from '@/api/api.js';
  14. import {
  15. Debounce
  16. } from '@/utils/validate.js'
  17. import riderOrder from "@/components/riderOrder/index.vue";
  18. var statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
  19. let app = getApp();
  20. export default {
  21. name: 'riderShipping',
  22. components: {
  23. riderOrder,
  24. },
  25. data() {
  26. return {
  27. statusBarHeight: app.globalData.statusBarHeight,
  28. navigationBarHeight: 112,
  29. riderData: [{
  30. cost: '2.00',
  31. time: '12:00',
  32. shopName: '吉啊婆麻辣烫',
  33. shopDistance: 500,
  34. shopAddress: '梨园2楼7号橱窗',
  35. userAddress: '雅苑3栋209b1001室',
  36. userDistance: 0,
  37. userRemarks: '老板,多放点辣椒!辣死我',
  38. },
  39. {
  40. cost: '2.00',
  41. time: '12:00',
  42. shopName: '吉啊婆麻辣烫',
  43. shopDistance: 500,
  44. shopAddress: '梨园2楼7号橱窗',
  45. userAddress: '雅苑3栋209b1001室',
  46. userDistance: 0,
  47. userRemarks: '老板,多放点辣椒!辣死我',
  48. },
  49. {
  50. cost: '2.00',
  51. time: '12:00',
  52. shopName: '吉啊婆麻辣烫',
  53. shopDistance: 500,
  54. shopAddress: '梨园2楼7号橱窗',
  55. userAddress: '雅苑3栋209b1001室',
  56. userDistance: 0,
  57. userRemarks: '老板,多放点辣椒!辣死我',
  58. },
  59. {
  60. cost: '2.00',
  61. time: '12:00',
  62. shopName: '吉啊婆麻辣烫',
  63. shopDistance: 500,
  64. shopAddress: '梨园2楼7号橱窗',
  65. userAddress: '雅苑3栋209b1001室',
  66. userDistance: 0,
  67. userRemarks: '老板,多放点辣椒!辣死我',
  68. }
  69. ]
  70. }
  71. },
  72. methods: {
  73. },
  74. onLoad(options) {},
  75. mounted() {
  76. },
  77. }
  78. </script>
  79. <style scoped lang="scss">
  80. </style>