order.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <view class="order-pages">
  3. <view class="order-list">
  4. <view class="order-list-item" @click="goView">
  5. <view>
  6. <view>高新二路站</view>
  7. <view class="order-finish">已完成</view>
  8. </view>
  9. <view>
  10. <view class="order-carNo">13709146191</view>
  11. <u-icon name="arrow-right" color="#666" size="28"></u-icon>
  12. </view>
  13. <view>
  14. <view class="order-price">
  15. <text>¥9.8</text>
  16. <text>微信支付</text>
  17. </view>
  18. <view>2020-07-25 16:20:33</view>
  19. </view>
  20. </view>
  21. <view class="order-list-item">
  22. <view>
  23. <view>高新二路站</view>
  24. <view class="order-unPay">待支付</view>
  25. </view>
  26. <view>
  27. <view class="order-carNo">13709146191</view>
  28. <u-icon name="arrow-right" color="#666" size="28"></u-icon>
  29. </view>
  30. <view>
  31. <view class="order-price">
  32. <text>¥9.8</text>
  33. <text>微信支付</text>
  34. </view>
  35. <view>2020-07-25 16:20:33</view>
  36. </view>
  37. </view>
  38. <view class="order-list-item">
  39. <view>
  40. <view>高新二路站</view>
  41. <view class="order-cansel">已取消</view>
  42. </view>
  43. <view>
  44. <view class="order-carNo">13709146191</view>
  45. <u-icon name="arrow-right" color="#666" size="28"></u-icon>
  46. </view>
  47. <view>
  48. <view class="order-price">
  49. <text>¥9.8</text>
  50. <text>微信支付</text>
  51. </view>
  52. <view>2020-07-25 16:20:33</view>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. </template>
  58. <script>
  59. export default {
  60. data() {
  61. return {
  62. list:[],
  63. pageNo:1,
  64. pageSize:15,
  65. count:0,
  66. status:'loading'
  67. };
  68. },
  69. methods: {
  70. // 获取订单列表
  71. getList() {
  72. },
  73. // 查看详情
  74. goView(item){
  75. uni.navigateTo({
  76. url:"/pages/order/orderDetail?id="+item.id
  77. })
  78. }
  79. },
  80. // 滚动到底部自动加载下页
  81. onReachBottom() {
  82. }
  83. }
  84. </script>
  85. <style lang="scss">
  86. .order-pages{
  87. width: 100%;
  88. .order-list{
  89. padding: 25rpx;
  90. .order-list-item{
  91. box-shadow: 1rpx 1rpx 5rpx #eee;
  92. border: 1px solid #eee;
  93. border-radius: 10rpx;
  94. margin: 30rpx 0;
  95. > view{
  96. padding:20rpx 30rpx;
  97. display: flex;
  98. align-items: center;
  99. border-bottom: 1px dashed #eee;
  100. &:last-child{
  101. border: 0;
  102. }
  103. >view{
  104. &:first-child{
  105. flex-grow: 1;
  106. }
  107. &:last-child{
  108. padding-left: 15rpx;
  109. }
  110. }
  111. .order-finish{
  112. color: #00aa00;
  113. }
  114. .order-unPay{
  115. color: #ff0000;
  116. }
  117. .order-cansel{
  118. color: #7e7b88;
  119. }
  120. .order-carNo{
  121. font-size: 32rpx;
  122. }
  123. .order-price{
  124. text{
  125. margin-right: 20rpx;
  126. color: #666;
  127. &:first-child{
  128. color: red;
  129. font-size: 32rpx;
  130. }
  131. }
  132. }
  133. }
  134. }
  135. }
  136. }
  137. </style>