detail.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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="detail-content">
  13. <text class="detail-title">账号审核通过</text>
  14. <text class="detail-time">2023-11-01 10:00</text>
  15. <view class="detail-body">
  16. <text>尊敬的用户,您的健康认证资料已通过平台审核。作为履约者,您现在可以正常接收并处理订单。请确保您熟读平台规则,遵守交通法规,安全配送。祝您工作愉快!</text>
  17. </view>
  18. <view class="detail-footer">
  19. <view class="divider"></view>
  20. <text class="footer-text">如有疑问,请咨询在线客服。</text>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. methods: {
  28. navBack() {
  29. uni.navigateBack();
  30. }
  31. }
  32. }
  33. </script>
  34. <style>
  35. page {
  36. background-color: #fff;
  37. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  38. }
  39. .nav-bar {
  40. position: fixed;
  41. top: 0;
  42. left: 0;
  43. width: 100%;
  44. height: 88rpx;
  45. padding-top: var(--status-bar-height);
  46. background-color: #fff;
  47. display: flex;
  48. align-items: center;
  49. justify-content: space-between;
  50. padding: 0 30rpx;
  51. box-sizing: border-box;
  52. z-index: 100;
  53. border-bottom: 1rpx solid #f5f5f5;
  54. }
  55. .nav-placeholder {
  56. height: calc(88rpx + var(--status-bar-height));
  57. }
  58. .back-icon {
  59. width: 40rpx;
  60. height: 40rpx;
  61. }
  62. .nav-title {
  63. font-size: 34rpx;
  64. font-weight: bold;
  65. color: #333;
  66. }
  67. .nav-right { width: 40rpx; }
  68. .detail-content {
  69. padding: 40rpx 30rpx;
  70. }
  71. .detail-title {
  72. font-size: 40rpx;
  73. font-weight: bold;
  74. color: #333;
  75. display: block;
  76. margin-bottom: 20rpx;
  77. }
  78. .detail-time {
  79. font-size: 24rpx;
  80. color: #999;
  81. display: block;
  82. margin-bottom: 40rpx;
  83. }
  84. .detail-body {
  85. font-size: 30rpx;
  86. color: #333;
  87. line-height: 1.8;
  88. }
  89. .detail-footer {
  90. margin-top: 60rpx;
  91. text-align: center;
  92. }
  93. .divider {
  94. height: 1rpx;
  95. background-color: #eee;
  96. margin-bottom: 30rpx;
  97. }
  98. .footer-text {
  99. font-size: 26rpx;
  100. color: #ccc;
  101. }
  102. </style>