message.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. <template>
  2. <view>
  3. <view class="navbar-c">
  4. <view class="back" >
  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. <!-- 消息列表 -->
  13. <view class="message-list" >
  14. <view class="message-item" >
  15. <view class="icon ">
  16. <image class="img" src="@/assets/img/antFill-notification.svg" mode=""></image>
  17. <view class="dot" >
  18. </view>
  19. </view>
  20. <view class="content">
  21. <view class="title">
  22. <view class="title-name">
  23. 停电通知
  24. </view>
  25. <view class="title-time" >
  26. 01-02
  27. </view>
  28. </view>
  29. <view class="value" >
  30. 接电力部门通知,明天(1月25日)因台区用电调…
  31. </view>
  32. </view>
  33. </view>
  34. <view class="message-item" >
  35. <view class="icon icon2">
  36. <image class="img" src="@/assets/img/antFill-account-book.svg" mode=""></image>
  37. </view>
  38. <view class="content">
  39. <view class="title">
  40. <view class="title-name">
  41. 低额提醒
  42. </view>
  43. <view class="title-time" >
  44. 01-02
  45. </view>
  46. </view>
  47. <view class="value" >
  48. 用户您好,贵司账户余额不足100元,请尽快充值…
  49. </view>
  50. </view>
  51. </view>
  52. <view class="message-item" >
  53. <view class="icon icon3">
  54. <image class="img" src="@/assets/img/fas fa-bell.svg" mode=""></image>
  55. </view>
  56. <view class="content">
  57. <view class="title">
  58. <view class="title-name">
  59. 故障告警
  60. </view>
  61. <view class="title-time" >
  62. 01-02
  63. </view>
  64. </view>
  65. <view class="value" >
  66. 本园区11楼所在楼层电表网络故障,我们会尽快处…
  67. </view>
  68. </view>
  69. </view>
  70. <view class="message-item" >
  71. <view class="icon icon4">
  72. <image class="img" src="@/assets/img/fas fa-exclamation-triangle Copy 1.svg" mode=""></image>
  73. </view>
  74. <view class="content">
  75. <view class="title">
  76. <view class="title-name">
  77. 欠费告警
  78. </view>
  79. <view class="title-time" >
  80. 01-02
  81. </view>
  82. </view>
  83. <view class="value" >
  84. 用户您好,截止2月18日0时,贵司账户余额已不足…
  85. </view>
  86. </view>
  87. </view>
  88. <view class="message-item" >
  89. <view class="icon icon5">
  90. <image class="img" src="@/assets/img/fas fa-chart-pie.svg" mode=""></image>
  91. </view>
  92. <view class="content">
  93. <view class="title">
  94. <view class="title-name">
  95. 电费月度账单
  96. </view>
  97. <view class="title-time" >
  98. 01-02
  99. </view>
  100. </view>
  101. <view class="value" >
  102. 截止2024年01月,您家电表止码8652,用电128…
  103. </view>
  104. </view>
  105. </view>
  106. <view class="message-item" >
  107. <view class="icon icon6">
  108. <image class="img" src="@/assets/img/md-watch_later.svg" mode=""></image>
  109. </view>
  110. <view class="content">
  111. <view class="title">
  112. <view class="title-name">
  113. 租约到期提醒
  114. </view>
  115. <view class="title-time" >
  116. 01-02
  117. </view>
  118. </view>
  119. <view class="value" >
  120. 用户您好,您的租约即将于2月14日到期,如需续…
  121. </view>
  122. </view>
  123. </view>
  124. </view>
  125. <energyCenterTabbar :current="2"></energyCenterTabbar>
  126. </view>
  127. </template>
  128. <script>
  129. import energyCenterTabbar from '@/components/energyCenterTabbar.vue'
  130. export default {
  131. components: {
  132. energyCenterTabbar
  133. },
  134. data() {
  135. return {
  136. }
  137. },
  138. onLoad() {
  139. },
  140. onShow() {
  141. this.prefetch()
  142. },
  143. methods: {
  144. }
  145. }
  146. </script>
  147. <style lang="scss" scoped>
  148. .navbar-c{
  149. .img{
  150. width: 32rpx;
  151. height: 32rpx;
  152. border-radius: 50px;
  153. background-color: rgba(232,232,232,1);
  154. }
  155. }
  156. .message-list{
  157. background-color: #fff;
  158. .message-item{
  159. display: flex;
  160. padding: 32rpx;
  161. border-bottom: 1px solid rgba(240,240,240,1);
  162. .icon{
  163. width: 96rpx;
  164. height: 96rpx;
  165. border-radius: 12px;
  166. display: flex;
  167. align-items: center;
  168. justify-content: center;
  169. position: relative;
  170. background: linear-gradient(180.4deg, rgba(127,213,151,1) 2.1%,rgba(67,176,116,1) 101.21%);
  171. .img{
  172. width: 56rpx;
  173. height: 56rpx;
  174. filter: drop-shadow(0px 2px 4px rgba(0,75,23,0.67));
  175. }
  176. .dot{
  177. width: 20rpx;
  178. height: 20rpx;
  179. border-radius:999px;
  180. background-color: rgba(255,0,0,1);
  181. position: absolute;
  182. top:-6rpx;
  183. right:-6rpx;
  184. }
  185. }
  186. .icon2{
  187. background: linear-gradient(180deg, rgba(121,172,255,1) 0%,rgba(57,132,255,1) 100%);
  188. color: rgba(255,255,255,1);
  189. .img{
  190. filter: drop-shadow(0px 2px 4px rgba(24,90,198,1));
  191. }
  192. }
  193. .icon3{
  194. background: linear-gradient(180.29deg, rgba(255,214,125,1) 0.9%,rgba(255,150,0,1) 100.4%);
  195. .img{
  196. filter: drop-shadow(0px 2px 4px rgba(182,77,0,1));
  197. }
  198. }
  199. .icon4{
  200. background: linear-gradient(180.29deg, rgba(255,124,112,1) 0.9%,rgba(255,79,63,1) 100.4%);
  201. .img{
  202. filter: drop-shadow( 0px 2px 4px rgba(192,0,0,0.5));
  203. }
  204. }
  205. .icon5{
  206. background: linear-gradient(178.44deg, rgba(122,232,227,1) 3.96%,rgba(57,182,182,1) 100.6%);
  207. .img{
  208. filter: drop-shadow( 0px 2px 4px rgba(0,130,118,1));
  209. }
  210. }
  211. .icon6{
  212. background: linear-gradient(179.2deg, rgba(168,178,238,1) 6.28%,rgba(123,123,240,1) 96.94%);
  213. .img{
  214. filter: drop-shadow( 0px 2px 2px rgba(52,0,255,0.75));
  215. }
  216. }
  217. .content{
  218. flex:1;
  219. margin-left: 24rpx;
  220. display: flex;
  221. flex-direction: column;
  222. justify-content: space-between;
  223. .title{
  224. display: flex;
  225. justify-content: space-between;
  226. align-items: center;
  227. .title-name{
  228. color: rgb(16,16,16);
  229. font-size: 32rpx;
  230. }
  231. .title-time{
  232. color: rgb(140,140,140);
  233. font-size: 24rpx;
  234. }
  235. }
  236. .value{
  237. width: 560rpx;
  238. white-space: nowrap;
  239. overflow: hidden;
  240. text-overflow: ellipsis;
  241. margin-top: 10rpx;
  242. font-size: 24rpx
  243. }
  244. }
  245. }
  246. }
  247. </style>