index.vue 5.1 KB

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