message.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <template>
  2. <view>
  3. <u-navbar title="消息 (1)" title-color="#101010" ></u-navbar>
  4. <!-- 消息列表 -->
  5. <view class="message-list">
  6. <view class="message-item">
  7. <view class="icon">
  8. <image class="img" src="@/assets/img/antFill-notification.svg" mode=""></image>
  9. <view class="dot">
  10. </view>
  11. </view>
  12. <view class="content">
  13. <view class="title">
  14. <view class="title-name">
  15. 停电通知
  16. </view>
  17. <view class="title-time">
  18. 01-02
  19. </view>
  20. </view>
  21. <view class="value">
  22. 接电力部门通知,明天(1月25日)因台区用电调调调调调调调调调
  23. </view>
  24. </view>
  25. </view>
  26. <view class="message-item">
  27. <view class="icon icon2">
  28. <image class="img" src="@/assets/img/antFill-account-book.svg" mode=""></image>
  29. </view>
  30. <view class="content">
  31. <view class="title">
  32. <view class="title-name">
  33. 余额提醒
  34. </view>
  35. <view class="title-time">
  36. 01-02
  37. </view>
  38. </view>
  39. <view class="value">
  40. 租户您好,贵司账户余额不足100元,请尽快充值充值
  41. </view>
  42. </view>
  43. </view>
  44. <view class="message-item">
  45. <view class="icon icon3">
  46. <image class="img" src="@/assets/img/fas fa-bell.svg" mode=""></image>
  47. </view>
  48. <view class="content">
  49. <view class="title">
  50. <view class="title-name">
  51. 故障报警
  52. </view>
  53. <view class="title-time">
  54. 01-02
  55. </view>
  56. </view>
  57. <view class="value">
  58. 本园区11楼所在楼层电表网络故障,我们会尽快处处处处
  59. </view>
  60. </view>
  61. </view>
  62. <view class="message-item">
  63. <view class="icon icon4">
  64. <image class="img" src="@/assets/img/fas fa-exclamation-triangle Copy 1.svg" mode=""></image>
  65. </view>
  66. <view class="content">
  67. <view class="title">
  68. <view class="title-name">
  69. 断电通知
  70. </view>
  71. <view class="title-time">
  72. 01-02
  73. </view>
  74. </view>
  75. <view class="value">
  76. 租户您好,截止2月18日0时,贵司账户余额已不足足足足足
  77. </view>
  78. </view>
  79. </view>
  80. <view class="message-item">
  81. <view class="icon icon5">
  82. <image class="img" src="@/assets/img/fas fa-chart-pie.svg" mode=""></image>
  83. </view>
  84. <view class="content">
  85. <view class="title">
  86. <view class="title-name">
  87. 电费月度账单
  88. </view>
  89. <view class="title-time">
  90. 01-02
  91. </view>
  92. </view>
  93. <view class="value">
  94. 截止2024年01月,您家电表止码8652,用电12888888
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. <Tabbar :current="1" ></Tabbar>
  100. </view>
  101. </template>
  102. <script>
  103. import Tabbar from '@/components/Tabbar.vue'
  104. export default {
  105. components: {
  106. Tabbar
  107. },
  108. data() {
  109. return {
  110. }
  111. },
  112. methods: {
  113. }
  114. }
  115. </script>
  116. <style lang="scss" scoped>
  117. .message-list{
  118. background-color: #fff;
  119. .message-item{
  120. display: flex;
  121. padding: 32rpx;
  122. border-bottom: 1px solid rgba(240,240,240,1);
  123. .icon{
  124. width: 96rpx;
  125. height: 96rpx;
  126. border-radius: 12px;
  127. display: flex;
  128. align-items: center;
  129. justify-content: center;
  130. position: relative;
  131. background: linear-gradient(180.4deg, rgba(127,213,151,1) 2.1%,rgba(67,176,116,1) 101.21%);
  132. .img{
  133. width: 56rpx;
  134. height: 56rpx;
  135. }
  136. .dot{
  137. width: 20rpx;
  138. height: 20rpx;
  139. border-radius:999px;
  140. background-color: rgba(255,0,0,1);
  141. position: absolute;
  142. top:-6rpx;
  143. right:-6rpx;
  144. }
  145. }
  146. .icon2{
  147. background: linear-gradient(180deg, rgba(121,172,255,1) 0%,rgba(57,132,255,1) 100%);
  148. color: rgba(255,255,255,1);
  149. }
  150. .icon3{
  151. background: linear-gradient(180.29deg, rgba(255,214,125,1) 0.9%,rgba(255,150,0,1) 100.4%);
  152. }
  153. .icon4{
  154. background: linear-gradient(180.29deg, rgba(255,124,112,1) 0.9%,rgba(255,79,63,1) 100.4%);
  155. }
  156. .icon5{
  157. background: linear-gradient(178.44deg, rgba(122,232,227,1) 3.96%,rgba(57,182,182,1) 100.6%);
  158. }
  159. .content{
  160. flex:1;
  161. margin-left: 24rpx;
  162. display: flex;
  163. flex-direction: column;
  164. justify-content: space-between;
  165. .title{
  166. display: flex;
  167. justify-content: space-between;
  168. align-items: center;
  169. .title-name{
  170. color: rgb(16,16,16);
  171. font-size: 32rpx;
  172. }
  173. .title-time{
  174. color: rgb(140,140,140);
  175. font-size: 24rpx;
  176. }
  177. }
  178. .value{
  179. width: 560rpx;
  180. white-space: nowrap;
  181. overflow: hidden;
  182. text-overflow: ellipsis;
  183. margin-top: 10rpx;
  184. font-size: 24rpx
  185. }
  186. }
  187. }
  188. }
  189. </style>