message.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <view class="container">
  3. <!-- 每一个消息区域 -->
  4. <view class="box" v-for="item in imgList" :key="item.id">
  5. <view class="box_time">{{ item.time }}</view>
  6. <view class="box_info">
  7. <view class="info_circle" :class="{ while: item.type === false }"></view>
  8. <view class="info_icon">
  9. <img src="../../static/images/repairsImg/msg.png" />
  10. </view>
  11. <view class="info_msg">
  12. <view class="msg_title">{{ item.title }}</view>
  13. <view class="msg_order">订单号:{{ item.order }}</view>
  14. </view>
  15. </view>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. export default {
  21. data() {
  22. return {
  23. imgList: [
  24. {
  25. id: 1,
  26. type: false,
  27. title: '订单已完成请尽快确认!',
  28. order: '06521649496',
  29. time: '2023-07-07 12:25:25'
  30. },
  31. {
  32. id: 2,
  33. type: true,
  34. title: '请尽快确认!',
  35. order: '06521649496',
  36. time: '2023-08-07 12:25:25'
  37. },
  38. {
  39. id: 3,
  40. type: false,
  41. title: '已完成请尽快确认!',
  42. order: '06521649496',
  43. time: '2023-06-07 12:25:25'
  44. },
  45. {
  46. id: 4,
  47. type: false,
  48. title: '订单已完成请尽快确认!',
  49. order: '06521649496',
  50. time: '2023-07-07 12:25:25'
  51. },
  52. {
  53. id: 5,
  54. type: true,
  55. title: '请尽快确认!',
  56. order: '06521649496',
  57. time: '2023-08-07 12:25:25'
  58. },
  59. {
  60. id: 6,
  61. type: false,
  62. title: '已完成请尽快确认!',
  63. order: '06521649496',
  64. time: '2023-06-07 12:25:25'
  65. },
  66. {
  67. id: 7,
  68. type: false,
  69. title: '已完成请尽快确认!',
  70. order: '06521649496',
  71. time: '2023-06-07 12:25:25'
  72. }
  73. ]
  74. }
  75. }
  76. }
  77. </script>
  78. <style lang="scss" scoped>
  79. .container {
  80. width: 100vw;
  81. height: 100vh;
  82. background-color: #f2f2f2;
  83. overflow-y: auto;
  84. .box {
  85. margin-top: 10rpx;
  86. height: 194rpx;
  87. background-color: #fff;
  88. .box_time {
  89. height: 76rpx;
  90. line-height: 76rpx;
  91. text-align: center;
  92. color: #999999;
  93. font-size: 24rpx;
  94. }
  95. .box_info {
  96. display: flex;
  97. align-items: center;
  98. margin-left: 30rpx;
  99. .info_circle {
  100. width: 16rpx;
  101. height: 16rpx;
  102. border-radius: 50%;
  103. background-color: #d43030;
  104. }
  105. .while {
  106. background-color: #fff;
  107. }
  108. .info_icon {
  109. margin: 0 8rpx;
  110. width: 90rpx;
  111. height: 90rpx;
  112. img {
  113. width: 100%;
  114. height: 100%;
  115. }
  116. }
  117. .info_msg {
  118. .msg_title {
  119. font-size: 32rpx;
  120. font-weight: bold;
  121. }
  122. .msg_order {
  123. margin-top: 10rpx;
  124. color: #808080;
  125. font-size: 24rpx;
  126. }
  127. }
  128. }
  129. }
  130. }
  131. </style>