<template>
  <view class="container">
    <!-- 金额显示 -->
    <view class="amount-section">
      <text class="amount">+0.50</text>
      <text class="description">签到打卡</text>
    </view>

    <!-- 交易信息 -->
    <view class="details-section">
      <view class="detail-item">
        <text class="label">交易类型</text>
        <text class="value">收入</text>
      </view>
      <view class="detail-item">
        <text class="label">交易时间</text>
        <text class="value">2025-01-10 13:12:12</text>
      </view>
      <view class="detail-item">
        <text class="label">记录编码</text>
        <text class="value">klpt000000036</text>
      </view>
      <view class="detail-item">
        <text class="label">交易后余额</text>
        <text class="value">78.78</text>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  methods: {
    goBack() {
      uni.navigateBack();
    },
  },
};
</script>

<style scoped>
/* 容器样式 */
.container {
  padding: 16px;
  background-color: #ffffff;
  min-height: 100vh;
  font-size: 16px;
}

/* 金额显示样式 */
.amount-section {
  margin: 20px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.amount {
  font-size: 32px;
  color: #ff5e00;
  font-weight: bold;
}

.description {
  font-size: 16px;
  color: #666;
  margin-top: 5px;
}

/* 交易详情样式 */
.details-section {
  margin-top: 20px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.label {
  color: #666;
}

.value {
  color: #333;
}
</style>
