detail.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <view class="container">
  3. <!-- 金额显示 -->
  4. <view class="amount-section">
  5. <text class="amount">+0.50</text>
  6. <text class="description">签到打卡</text>
  7. </view>
  8. <!-- 交易信息 -->
  9. <view class="details-section">
  10. <view class="detail-item">
  11. <text class="label">交易类型</text>
  12. <text class="value">收入</text>
  13. </view>
  14. <view class="detail-item">
  15. <text class="label">交易时间</text>
  16. <text class="value">2025-01-10 13:12:12</text>
  17. </view>
  18. <view class="detail-item">
  19. <text class="label">记录编码</text>
  20. <text class="value">klpt000000036</text>
  21. </view>
  22. <view class="detail-item">
  23. <text class="label">交易后余额</text>
  24. <text class="value">78.78</text>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. methods: {
  32. goBack() {
  33. uni.navigateBack();
  34. },
  35. },
  36. };
  37. </script>
  38. <style scoped>
  39. /* 容器样式 */
  40. .container {
  41. padding: 16px;
  42. background-color: #ffffff;
  43. min-height: 100vh;
  44. font-size: 16px;
  45. }
  46. /* 金额显示样式 */
  47. .amount-section {
  48. margin: 20px 0;
  49. text-align: center;
  50. display: flex;
  51. flex-direction: column;
  52. }
  53. .amount {
  54. font-size: 32px;
  55. color: #ff5e00;
  56. font-weight: bold;
  57. }
  58. .description {
  59. font-size: 16px;
  60. color: #666;
  61. margin-top: 5px;
  62. }
  63. /* 交易详情样式 */
  64. .details-section {
  65. margin-top: 20px;
  66. }
  67. .detail-item {
  68. display: flex;
  69. justify-content: space-between;
  70. padding: 10px 0;
  71. }
  72. .label {
  73. color: #666;
  74. }
  75. .value {
  76. color: #333;
  77. }
  78. </style>