message.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <view>
  3. <view class="navbar-c">
  4. <view class="back" @click="backMine">
  5. <u-icon name="arrow-left" color="#101010" size="36"></u-icon>
  6. </view>
  7. <view class="title">
  8. 消息 (1)
  9. <image class="img" src="@/assets/img/riLine-brush-2-line.svg"></image>
  10. </view>
  11. </view>
  12. <view class="message-item" v-for="item in 2">
  13. <view class="item-icon">
  14. <image class="img" src="@/assets/img/riFill-clipboard-fill.svg" mode=""></image>
  15. </view>
  16. <view class="message-infos">
  17. <view class="infos-top">
  18. <view class="title">
  19. 工单提醒
  20. </view>
  21. <view class="date">
  22. 01-02 12:00
  23. </view>
  24. </view>
  25. <view class="details">
  26. [编号No123456]荆鹏软件园01设备温度异常,请尽快处理,处理人郭群...
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. data() {
  35. return {
  36. }
  37. },
  38. methods: {
  39. backMine() {
  40. uni.navigateBack()
  41. }
  42. }
  43. }
  44. </script>
  45. <style lang="scss" scoped>
  46. .back {
  47. z-index: 999;
  48. width: 200rpx;
  49. }
  50. .message-item {
  51. border-radius: 8px;
  52. background-color: rgba(255, 255, 255, 1);
  53. margin: 20rpx 32rpx;
  54. padding: 24rpx 32rpx;
  55. display: flex;
  56. align-items: center;
  57. .item-icon {
  58. display: flex;
  59. align-items: center;
  60. justify-content: center;
  61. width: 96rpx;
  62. height: 96rpx;
  63. border-radius: 12px;
  64. background: linear-gradient(180.29deg, rgba(255, 214, 125, 1) 0.9%, rgba(255, 150, 0, 1) 100.4%);
  65. .img {
  66. width: 56rpx;
  67. height: 56rpx;
  68. }
  69. }
  70. .message-infos {
  71. flex: 1;
  72. margin-left: 24rpx;
  73. .infos-top {
  74. display: flex;
  75. align-items: center;
  76. justify-content: space-between;
  77. .title {
  78. color: rgba(16, 16, 16, 1);
  79. font-size: 32rpx;
  80. }
  81. .date {
  82. color: rgb(140, 140, 140);
  83. font-size: 24rpx;
  84. }
  85. }
  86. .details {
  87. color: rgba(119, 119, 119, 1);
  88. font-size: 24rpx;
  89. margin-top: 16rpx;
  90. }
  91. }
  92. }
  93. </style>