msgdetail.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <view class="container">
  3. <view class="detail-card card-anim">
  4. <view class="msg-title">{{ msgData.title || '消息详情' }}</view>
  5. <view class="info-list">
  6. <view class="info-item">
  7. <text class="label">岗位:</text>
  8. <text class="value">{{ msgData.position || '-' }}</text>
  9. </view>
  10. <view class="info-item">
  11. <text class="label">公司:</text>
  12. <text class="value">{{ msgData.company || '-' }}</text>
  13. </view>
  14. <view class="info-item">
  15. <text class="label">进度:</text>
  16. <text class="value status-text">{{ msgData.status || '-' }}</text>
  17. </view>
  18. <view class="info-item">
  19. <text class="label">时间:</text>
  20. <text class="value">{{ msgData.time || '-' }}</text>
  21. </view>
  22. <view class="info-item vertical">
  23. <text class="label mb-8">说明:</text>
  24. <text class="value desc-text">{{ msgData.desc || '暂无说明' }}</text>
  25. </view>
  26. </view>
  27. </view>
  28. <!-- 到底啦提示 -->
  29. <view class="end-tip">
  30. <view class="line"></view>
  31. <text class="end-text">已到底啦~</text>
  32. <view class="line"></view>
  33. </view>
  34. </view>
  35. </template>
  36. <script setup>
  37. import { ref } from 'vue';
  38. import { onLoad } from '@dcloudio/uni-app';
  39. const msgData = ref({
  40. title: '',
  41. position: '',
  42. company: '',
  43. status: '',
  44. desc: ''
  45. });
  46. onLoad((options) => {
  47. if (options.data) {
  48. try {
  49. const decoded = decodeURIComponent(options.data);
  50. msgData.value = JSON.parse(decoded);
  51. } catch (e) {
  52. console.error('Parse msg data error', e);
  53. }
  54. }
  55. });
  56. </script>
  57. <style lang="scss" scoped>
  58. .container {
  59. min-height: 100vh;
  60. background-color: #F8F9FB;
  61. padding: 30rpx;
  62. }
  63. .detail-card {
  64. background: #FFFFFF;
  65. border-radius: 24rpx;
  66. padding: 40rpx;
  67. box-shadow: 0 4rpx 24rpx rgba(0,0,0,0.03);
  68. .msg-title {
  69. font-size: 38rpx;
  70. font-weight: bold;
  71. color: #1A1A1A;
  72. display: block;
  73. margin-bottom: 30rpx;
  74. }
  75. .info-list {
  76. display: flex;
  77. flex-direction: column;
  78. gap: 20rpx;
  79. .info-item {
  80. display: flex;
  81. font-size: 30rpx;
  82. line-height: 1.5;
  83. &.vertical {
  84. flex-direction: column;
  85. }
  86. .label {
  87. color: #999999;
  88. flex-shrink: 0;
  89. }
  90. .mb-8 {
  91. margin-bottom: 8rpx;
  92. }
  93. .value {
  94. color: #666666;
  95. }
  96. .status-text {
  97. color: #1F6CFF;
  98. font-weight: 500;
  99. }
  100. .desc-text {
  101. color: #888888;
  102. font-size: 28rpx;
  103. line-height: 1.6;
  104. }
  105. }
  106. }
  107. }
  108. .end-tip {
  109. display: flex;
  110. align-items: center;
  111. justify-content: center;
  112. padding: 80rpx 0;
  113. .line {
  114. width: 60rpx;
  115. height: 1rpx;
  116. background: #E0E0E0;
  117. margin: 0 20rpx;
  118. }
  119. .end-text {
  120. font-size: 24rpx;
  121. color: #CCCCCC;
  122. }
  123. }
  124. .card-anim {
  125. animation: fadeInDown 0.4s ease-out;
  126. }
  127. @keyframes fadeInDown {
  128. from { opacity: 0; transform: translateY(-20rpx); }
  129. to { opacity: 1; transform: translateY(0); }
  130. }
  131. </style>