orderList.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <template>
  2. <view class="page" :style="{'min-height':(h-th)+'px','padding-top':mt+'px'}">
  3. <c-nav-bar title="订单列表"></c-nav-bar>
  4. <view class="query">
  5. <u-icon @click="" name="calendar" label="自定义查询" labelPos="right" labelColor="#666" color="#666" space="10px"></u-icon>
  6. </view>
  7. <view class="list">
  8. <view class="time">
  9. <text>{{new Date().Format('yyyy-MM-dd')}}</text>
  10. </view>
  11. <view class="content">
  12. <view class="li first">
  13. <text>订单信息</text>
  14. <text>销量</text>
  15. <text>成交金额</text>
  16. </view>
  17. <view class="li" v-for="(item,index) in data" :key="index">
  18. <view class="avatar">
  19. <image :src="emg"></image>
  20. <text>黄山村渔家乐12客位体验渔民出海</text>
  21. </view>
  22. <text>897</text>
  23. <text>¥765</text>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. data() {
  32. return {
  33. h: uni.getSystemInfoSync().windowHeight - 87,
  34. mt: uni.getSystemInfoSync().statusBarHeight + 44,
  35. data: [1, 2, 3, 4, 5],
  36. name: '黄沙村渔家乐',
  37. emg: 'https://i.ringzle.com/file/20240224/91173dde1cb44b139129e12ad4971f1d.png',
  38. icons: ['https://i.ringzle.com/file/20240224/70ab9f9d1a144c95927dedc6e84bcce7.png',
  39. 'https://i.ringzle.com/file/20240224/3f990c250f444ac9a5d9f334f322c98e.png',
  40. 'https://i.ringzle.com/file/20240224/7ca1bfa6e348438e83edc5af0589f847.png'
  41. ]
  42. }
  43. }
  44. }
  45. </script>
  46. <style lang="less" scoped>
  47. .page {
  48. background: #F3F4F4;
  49. padding-bottom: 40rpx;
  50. box-sizing: border-box;
  51. .query{
  52. height: 100rpx;
  53. display: flex;
  54. align-items: center;
  55. padding-left: 30rpx;
  56. background-color: #fff;
  57. }
  58. .list {
  59. width: calc(100% - 36rpx);
  60. margin: 20rpx auto;
  61. padding: 0 0 6rpx;
  62. .time {
  63. margin: 24rpx 0;
  64. color: #111;
  65. }
  66. .content {
  67. background-color: #fff;
  68. padding: 22rpx 20rpx 4rpx;
  69. border-radius: 24rpx;
  70. .li {
  71. display: grid;
  72. grid-template-columns: 60% 20% 20%;
  73. align-items: center;
  74. margin-bottom: 24rpx;
  75. text {
  76. color: #333;
  77. font-size: 26rpx;
  78. }
  79. .avatar {
  80. display: flex;
  81. align-items: center;
  82. image {
  83. width: 90rpx;
  84. min-width: 90rpx;
  85. height: 90rpx;
  86. margin-right: 20rpx;
  87. }
  88. text {
  89. width: 100px;
  90. word-break: break-all;
  91. text-overflow: ellipsis;
  92. display: -webkit-box;
  93. -webkit-box-orient: vertical;
  94. -webkit-line-clamp: 2;
  95. font-size: 24rpx;
  96. line-height: 33rpx;
  97. /* 这里是超出几行省略 */
  98. overflow: hidden;
  99. }
  100. }
  101. &.first {
  102. margin-bottom: 30rpx;
  103. text {
  104. color: #5A697C;
  105. }
  106. }
  107. }
  108. }
  109. }
  110. }
  111. </style>