index.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <template>
  2. <view class="order">
  3. <zs-search fixed></zs-search>
  4. <!-- <u-search placeholder="日照香炉生紫烟" v-model="keyword"></u-search> -->
  5. <zs-list mt="130rpx" @load="loadMore" :status="status">
  6. <view class="order-item" v-for="(item,index) in list" :key="index" @click="jump">
  7. <view class="order-box">
  8. <!-- <image class="icon" :src="item.src" mode=""></image> -->
  9. <zs-img radius="full" :src="item.src" width="164rpx" height="164rpx"></zs-img>
  10. <view class="info">
  11. <view class="title">
  12. {{item.title}}
  13. </view>
  14. <view class="time">
  15. 购买时间:{{item.time}}
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </zs-list>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. data() {
  26. return {
  27. status: 'more',
  28. loading: false,
  29. keyword: '',
  30. list: [{
  31. src: 'https://mstatic.gzstv.com/media/images/2021/06/09/w1nrZC8_x-PQ.jpg',
  32. title: '万安加油站(中石化)',
  33. time: '2023-07-30 10:00:00',
  34. distance: 13.62
  35. },
  36. {
  37. src: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fss2.meipian.me%2Fusers%2F159660028%2Fb327e4a2a3e1473a82e2a53b5a5d2db2.jpeg%3Fmeipian-raw%2Fbucket%2Fivwen%2Fkey%2FdXNlcnMvMTU5NjYwMDI4L2IzMjdlNGEyYTNlMTQ3M2E4MmUyYTUzYjVhNWQyZGIyLmpwZWc%3D%2Fsign%2Fcec9ce1dfb5e0c3e627e30fb099899da.jpg&refer=http%3A%2F%2Fss2.meipian.me&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1693560973&t=7b7dfb1cbf6a6759e70f868c894888c9',
  38. title: '万安加油站(中石化)',
  39. time: '2023-07-30 10:00:00',
  40. distance: 13.62
  41. },
  42. {
  43. id: 2,
  44. src:'https://img-md.veimg.cn/meadinindex/img5/2021/11/69F51D249ADA446EB5507352AA4ABD6E.jpg',
  45. title: '泊斯曼酒店',
  46. time: '2023-07-30 10:00:00',
  47. distance: 5.23,
  48. },
  49. {
  50. id: 3,
  51. src:'https://file.gzl.cn/group1/M00/32/54/wKkBH1_7uBKAaWm1AAMJ4gwToRo237.jpg',
  52. title: '贵阳万丽酒店',
  53. time: '2023-07-30 10:00:00',
  54. distance: 5.23,
  55. },
  56. ]
  57. }
  58. },
  59. methods: {
  60. loadMore() {
  61. this.status = 'loading'
  62. setTimeout(() => {
  63. this.status = 'more'
  64. this.list.push({
  65. src: 'https://img2.baidu.com/it/u=3177584174,2077949726&fm=253&fmt=auto&app=120&f=JPEG?w=540&h=360',
  66. title: '万安加油站(中石化)',
  67. status: 1,
  68. time: '2023-07-30 10:00:00',
  69. price: 251.00
  70. })
  71. }, 1000)
  72. },
  73. jump() {
  74. uni.navigateTo({
  75. url: './detail'
  76. })
  77. }
  78. },
  79. }
  80. </script>
  81. <style lang="scss">
  82. .order {
  83. background: #efefef;
  84. padding: 0 30rpx;
  85. min-height: 100vh;
  86. .zs-search {
  87. // position: fixed;
  88. // top: 0%;
  89. // left: 0;
  90. // width: 100%;
  91. }
  92. .zs-list {
  93. padding-top: 30rpx;
  94. .order-item {
  95. background-color: #fff;
  96. border-radius: 8px;
  97. margin-bottom: 30rpx;
  98. .order-box {
  99. padding: 25rpx;
  100. display: flex;
  101. .icon {
  102. width: 164rpx;
  103. height: 164rpx;
  104. border-radius: 16rpx;
  105. background-color: #999;
  106. }
  107. .info {
  108. margin-left: 25rpx;
  109. .title {
  110. color: #0F0F0F;
  111. font-size: 28rpx;
  112. margin-top: 30rpx;
  113. }
  114. .time {
  115. font-size: 26rpx;
  116. color: #999999;
  117. margin-top: 20rpx;
  118. }
  119. }
  120. }
  121. }
  122. }
  123. }
  124. </style>