message.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. }
  47. }
  48. }
  49. </script>
  50. <style lang="scss" scoped>
  51. .container {
  52. min-width: 100vw;
  53. min-height: 100vh;
  54. background-color: #f2f2f2;
  55. overflow-y: auto;
  56. .box {
  57. margin-top: 10rpx;
  58. height: 194rpx;
  59. background-color: #fff;
  60. .box_time {
  61. height: 76rpx;
  62. line-height: 76rpx;
  63. text-align: center;
  64. color: #999999;
  65. font-size: 24rpx;
  66. }
  67. .box_info {
  68. display: flex;
  69. align-items: center;
  70. margin-left: 30rpx;
  71. .info_circle {
  72. width: 16rpx;
  73. height: 16rpx;
  74. border-radius: 50%;
  75. background-color: #d43030;
  76. }
  77. .while {
  78. background-color: #fff;
  79. }
  80. .info_icon {
  81. margin: 0 8rpx;
  82. width: 90rpx;
  83. height: 90rpx;
  84. img {
  85. width: 100%;
  86. height: 100%;
  87. }
  88. }
  89. .info_msg {
  90. .msg_title {
  91. font-size: 32rpx;
  92. font-weight: bold;
  93. }
  94. .msg_order {
  95. margin-top: 10rpx;
  96. color: #808080;
  97. font-size: 24rpx;
  98. }
  99. }
  100. }
  101. }
  102. }
  103. </style>