zulin-list.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <template>
  2. <view class="content">
  3. <view class="list-item hflex acenter jbetween" v-for="(item,index) in list" :key="index">
  4. <view class="left">
  5. <view class="hflex aend left-top">
  6. <text>租赁成功</text>
  7. <text>{{item.time}}</text>
  8. </view>
  9. <view class="left-bottom">恭喜!你已成功的提交了设备租赁</view>
  10. </view>
  11. <view class="right">
  12. <view class="btn1" v-if="item.status == 1">添加客服</view>
  13. <view class="btn2" v-if="item.status == 2">已完成</view>
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. import $api from '@/static/js/api.js'
  20. export default {
  21. data() {
  22. return {
  23. list: []
  24. }
  25. },
  26. onLoad() {
  27. this.getlist()
  28. },
  29. onShow() {
  30. },
  31. onPullDownRefresh() {
  32. },
  33. onReachBottom() {
  34. },
  35. methods: {
  36. getlist() {
  37. this.list = [
  38. {
  39. time: '2023-10-30 周三',
  40. status: 1
  41. },
  42. {
  43. time: '2023-10-30 周三',
  44. status: 2
  45. },
  46. ]
  47. }
  48. }
  49. }
  50. </script>
  51. <style lang="scss">
  52. .content {
  53. padding: 20rpx 28rpx;
  54. .list-item {
  55. background: #FFFFFF;
  56. border-radius: 20rpx;
  57. margin: 0 0 20rpx;
  58. padding: 32rpx 20rpx;
  59. .right {
  60. .btn1 {
  61. width: 160rpx;
  62. height: 64rpx;
  63. background: #00B0B0;
  64. border-radius: 40rpx;
  65. font-size: 26rpx;
  66. font-family: PingFangSC, PingFang SC;
  67. font-weight: 400;
  68. color: #FFFFFF;
  69. line-height: 64rpx;
  70. text-align: center;
  71. }
  72. .btn2 {
  73. width: 160rpx;
  74. height: 64rpx;
  75. background: #D5D5D5;
  76. border-radius: 40rpx;
  77. font-size: 26rpx;
  78. font-family: PingFangSC, PingFang SC;
  79. font-weight: 400;
  80. color: #FFFFFF;
  81. line-height: 64rpx;
  82. text-align: center;
  83. }
  84. }
  85. .left {
  86. .left-top {
  87. text:first-child {
  88. font-size: 32rpx;
  89. font-family: PingFangSC, PingFang SC;
  90. font-weight: 600;
  91. color: #333333;
  92. }
  93. text:last-child {
  94. font-size: 24rpx;
  95. font-family: SFPro, SFPro;
  96. font-weight: 400;
  97. color: #444444;
  98. padding-left: 24rpx;
  99. }
  100. }
  101. .left-bottom {
  102. padding: 20rpx 0 0;
  103. font-size: 24rpx;
  104. font-family: PingFangSC, PingFang SC;
  105. font-weight: 400;
  106. color: #999999;
  107. }
  108. }
  109. }
  110. }
  111. </style>