system.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <template>
  2. <view class="container">
  3. <!-- 导航栏 -->
  4. <view class="nav-bar">
  5. <view class="nav-left" @click="navBack">
  6. <image class="back-icon" src="/static/icons/chevron_right_dark.svg" style="transform: rotate(180deg);"></image>
  7. </view>
  8. <text class="nav-title">系统消息</text>
  9. <view class="nav-right"></view>
  10. </view>
  11. <view class="nav-placeholder"></view>
  12. <view class="sys-msg-list">
  13. <view class="date-label">2023-11-01</view>
  14. <!-- 消息卡片 1 -->
  15. <view class="sys-card" @click="navToDetail">
  16. <view class="sys-header">
  17. <text class="sys-title">账号审核通过</text>
  18. <view class="red-dot"></view>
  19. </view>
  20. <view class="sys-content">
  21. <text class="sys-text">恭喜,您的健康证已通过审核,现在可以开始接单了。</text>
  22. </view>
  23. <view class="sys-footer">
  24. <text class="sys-time">10:00</text>
  25. <view class="check-more">
  26. <text>查看详情</text>
  27. <image class="arrow-icon-small" src="/static/icons/chevron_right.svg"></image>
  28. </view>
  29. </view>
  30. </view>
  31. <!-- 消息卡片 2 -->
  32. <view class="sys-card">
  33. <view class="sys-header">
  34. <text class="sys-title">活动奖励到账</text>
  35. </view>
  36. <view class="sys-content">
  37. <text class="sys-text">您参与的“新手启航”活动奖励金 ¥50 已发放到您的账户。</text>
  38. </view>
  39. <view class="sys-footer">
  40. <text class="sys-time">09:15</text>
  41. <view class="check-more">
  42. <text>查看详情</text>
  43. <image class="arrow-icon-small" src="/static/icons/chevron_right.svg"></image>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="date-label">2023-10-30</view>
  48. <!-- 消息卡片 3 -->
  49. <view class="sys-card">
  50. <view class="sys-header">
  51. <text class="sys-title">系统维护通知</text>
  52. </view>
  53. <view class="sys-content">
  54. <text class="sys-text">平台将于 11月5日 凌晨 02:00-04:00 进行系统维护,届时将无法接单。</text>
  55. </view>
  56. <view class="sys-footer">
  57. <text class="sys-time">18:30</text>
  58. <view class="check-more">
  59. <text>查看详情</text>
  60. <image class="arrow-icon-small" src="/static/icons/chevron_right.svg"></image>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. </template>
  67. <script>
  68. export default {
  69. methods: {
  70. navBack() {
  71. uni.navigateBack();
  72. },
  73. navToDetail() {
  74. uni.navigateTo({
  75. url: '/pages/mine/message/detail'
  76. });
  77. }
  78. }
  79. }
  80. </script>
  81. <style>
  82. page {
  83. background-color: #F5F6FA;
  84. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  85. }
  86. .nav-bar {
  87. position: fixed;
  88. top: 0;
  89. left: 0;
  90. width: 100%;
  91. height: 88rpx;
  92. padding-top: var(--status-bar-height);
  93. background-color: #fff;
  94. display: flex;
  95. align-items: center;
  96. justify-content: space-between;
  97. padding: 0 30rpx;
  98. box-sizing: border-box;
  99. z-index: 100;
  100. }
  101. .nav-placeholder {
  102. height: calc(88rpx + var(--status-bar-height));
  103. }
  104. .back-icon {
  105. width: 40rpx;
  106. height: 40rpx;
  107. }
  108. .nav-title {
  109. font-size: 34rpx;
  110. font-weight: bold;
  111. color: #333;
  112. }
  113. .nav-right { width: 40rpx; }
  114. .sys-msg-list {
  115. padding: 20rpx 30rpx;
  116. }
  117. .date-label {
  118. text-align: center;
  119. font-size: 24rpx;
  120. color: #ccc;
  121. margin: 30rpx 0 20rpx; /* Increased top margin */
  122. }
  123. .sys-card {
  124. background-color: #fff;
  125. border-radius: 16rpx;
  126. padding: 30rpx;
  127. margin-bottom: 20rpx;
  128. box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.02);
  129. }
  130. .sys-header {
  131. display: flex;
  132. align-items: center;
  133. margin-bottom: 16rpx;
  134. }
  135. .sys-title {
  136. font-size: 28rpx;
  137. font-weight: bold;
  138. color: #333;
  139. }
  140. .red-dot {
  141. width: 10rpx;
  142. height: 10rpx;
  143. background-color: #FF3B30;
  144. border-radius: 50%;
  145. margin-left: 10rpx;
  146. }
  147. .sys-content {
  148. margin-bottom: 24rpx;
  149. }
  150. .sys-text {
  151. font-size: 26rpx;
  152. color: #666;
  153. line-height: 1.6;
  154. }
  155. .sys-footer {
  156. display: flex;
  157. justify-content: space-between;
  158. align-items: center;
  159. border-top: 1rpx solid #f5f5f5;
  160. padding-top: 20rpx;
  161. }
  162. .sys-time {
  163. font-size: 24rpx;
  164. color: #999;
  165. }
  166. .check-more {
  167. display: flex;
  168. align-items: center;
  169. font-size: 24rpx;
  170. color: #999;
  171. }
  172. .arrow-icon-small {
  173. width: 20rpx;
  174. height: 20rpx;
  175. margin-left: 4rpx;
  176. opacity: 0.5;
  177. }
  178. </style>