<template>
  <view class="exchange_detail">
    <dHeader :title="'兑换详情'"></dHeader>
    <div class="container">
      <div class="header">
        <div class="header-image">
          <image class="img" src="../../static/img/exchange.png"></image>
        </div>
        <div class="header-content">
          <div class="header-content-title">兑换完成</div>
          <div class="header-content-text">
            <view class="header-content-small">共计</view>90积分
          </div>
        </div>
      </div>
      <div class="nav">
        <div class="nav-image">
          <image class="img" src="../../static/img/exchange.png"></image>
        </div>
        <div class="nav-content">
          <div class="nav-content-text">小米官旗米家体脂秤S400智能精准减肥电子称</div>
          <div class="nav-content-tag">
            <div class="tag-image">
              <image class="img" src="../../static/img/score_b.png"></image>10
            </div>
            <view class="tag-text">共9件</view>
          </div>
        </div>
      </div>
      <div class="main">
        <div class="main-cell">
          <div class="cell-label">活动时间</div>
          <div class="cell-content">2023-10-1至2024-11-01</div>
        </div>
        <div class="main-cell">
          <div class="cell-label">活动网点</div>
          <div class="cell-content">中国大连中央大道店黄河路50号</div>
        </div>
        <div class="main-cell">
          <div class="cell-label">兑换方式</div>
          <div class="cell-content">邮寄到家</div>
        </div>
        <div class="main-cell">
          <div class="cell-label">兑换方式</div>
          <div class="cell-content">邮寄到家</div>
        </div>
        <div class="main-cell">
          <div class="cell-label">收货地址</div>
          <div class="cell-content">
            孟佳程，+23583273669137中国 大连 中央大道黄河路50号
            <view class="red">地址提交后无法修改，如需修改地址请联系客服</view>
          </div>
        </div>
        <div class="main-cell">
          <div class="cell-label">快递单号</div>
          <div class="cell-content">SFSF88997261500218</div>
        </div>
        <div class="main-cell">
          <div class="cell-label">快递公司</div>
          <div class="cell-content">顺丰快递</div>
        </div>
        <div class="main-cell">
          <div class="cell-label">快递日期</div>
          <div class="cell-content">2024-01-01</div>
        </div>
        <div class="main-cell">
          <div class="cell-label">备注</div>
          <div class="cell-content">请尽快发货</div>
        </div>
      </div>
    </div>
  </view>
</template>

<script>
import dHeader from '../../components/dHeader/index.vue'
export default {
  components: {
    dHeader
  }
}
</script>

<style lang="scss">
page {
  /* #ifdef H5 */
  padding-top: 140upx;
  /* #endif */
  /* #ifdef APP-PLUS */
  padding-top: calc(var(--status-bar-height) + 100upx);
  /* #endif */

  box-sizing: border-box;
  height: 100%;
  background: linear-gradient(#317beb, #d3e5fe);
}
.exchange_detail {
  padding: 50upx 40upx;
  height: inherit;
  box-sizing: border-box;
  background-color: #fff;
  border-top-right-radius: 20upx;
  border-top-left-radius: 20upx;
  background: linear-gradient(#fff, #d3e5fe);
}
.header {
  display: flex;
  box-sizing: border-box;
  .header-image {
    width: 90upx;
    height: 90upx;
    .img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  .header-content {
    margin-left: 20upx;
    display: flex;
    height: inherit;
    flex-direction: column;
    justify-content: space-between;
    .header-content-title {
      font-size: 26upx;
      color: #333;
    }
    .header-content-text {
      display: flex;
      align-items: end;
      font-size: 24upx;
      color: #666;

      .header-content-small {
        margin-right: 10upx;
        font-size: 20upx;
        color: #999;
      }
    }
  }
}
.nav {
  margin-top: 60upx;
  width: 100%;
  display: flex;
  .nav-image {
    width: 140upx;
    height: 140upx;
    .img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  .nav-content {
    flex: 1;
    margin-left: 20upx;
    display: flex;
    height: inherit;
    flex-direction: column;
    .nav-content-text {
      width: 70%;
      font-size: 24upx;
      color: var(--cb7b);
    }
    .nav-content-tag {
      width: 100%;
      margin-top: 20upx;
      display: flex;
      align-items: center;
      justify-content: space-between;
      .tag-image {
        display: flex;
        align-items: center;
        .img {
          width: 32upx;
          height: 32upx;
          object-fit: cover;
        }
      }
      .tag-text {
        font-size: 24upx;
        color: #666;
      }
    }
  }
}
.main {
  margin-top: 60upx;
  width: 100%;
  display: flex;
  flex-direction: column;
  .main-cell {
    margin-top: 20upx;
    width: 100%;
    display: flex;
    align-items: start;
    justify-content: space-between;
    .cell-label {
      width: 30%;
      font-size: 24upx;
      color: #333;
    }
    .cell-content {
      text-align: right;
      width: 70%;
      font-size: 24upx;
      color: var(--cb7b);
      .red {
        color: red;
        font-size: 16upx;
      }
    }
  }
}
</style>
