<template>
  <div class="outer">
    <div class="container">
      <div class="overview">
        <div class="title">会员余额(¥)</div>
        <div class="money">89757.00</div>
        <div class="pay">
          <span class="icon"></span>
          <span class="text"> 充值</span>
        </div>
      </div>
      <div class="detail">
        <div class="title">金额明细</div>
        <div class="part">
          <div class="active">全部</div>
          <div class="">充值</div>
          <div class="">支出</div>
        </div>
      </div>
      <div class="content">
        <div class="ele">
          <div class="title">
            <span class="text">充值</span>
            <span class="amount">+ 1050.00</span>
          </div>
          <div class="item">
            <span class="text">充值金额</span>
            <span class="amount">1000.00</span>
          </div>
          <div class="item">
            <span class="text">赠送金额</span> <span class="amount">50.00</span>
          </div>
          <div class="item">
            <span class="text">充值时间</span>
            <span class="amount">2020/09/20 18:00:00</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import ProductList from "../../components/ProductList";
export default {
  head() {
    return {
      title: "积分订单",
    };
  },
  data() {
    return {
      images: [],
      list: [],
      loading: false, //加载状态
      finished: false, //是否完成加载
      refreshing: false, //是否正在上拉刷新
      listsrc: "/test/pro.png",
    };
  },
  components: {
    ProductList,
  },
  beforeCreate() {},
  created() {},
  beforeMount() {},
  mounted() {
    console.log(this);
  },
  beforeUpdate() {},
  updated() {},
  beforeDestroy() {},
  destroyed() {},
  methods: {
    // onLoad() {
    //   var that = this;
    //   that.$axios
    //     .get("/getIntegralWaresInfoList", {
    //       params: {
    //         stationId: "1",
    //       },
    //     })
    //     .then((res) => {
    //       if (res.data.retCode == 0) {
    //         that.list = res.data.data; //追加数据
    //         // 加载状态结束
    //         that.loading = false;
    //         that.finished = true;
    //         console.log(that.list);
    //       }
    //     });
    // },
    // onRefresh() {
    //   // 清空列表数据
    //   that.finished = true;
    //   // 重新加载数据
    //   // 将 loading 设置为 true，表示处于加载状态
    //   that.loading = true;
    //   that.onLoad();
    // },
  },
};
</script>

<style>
.outer {
  width: 100%;
  height: 16.24rem;
  background: #ffffff;
}
.outer .container {
  width: 6.9rem;
  margin: 0 auto;
}
.outer .container .overview {
  width: 6.9rem;
  height: 2.8rem;
  background: url("../../static/point/4_b01_bj@2x.png") no-repeat;
  background-size: cover;
  position: relative;
}
.outer .container .overview .title {
  width: 1.48rem;
  height: 0.4rem;
  font-size: 0.28rem;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #ffffff;
  line-height: 0.4rem;
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
}
.outer .container .overview .money {
  width: 2.2rem;
  height: 0.7rem;
  font-size: 0.5rem;
  font-family: PingFangSC-Semibold, PingFang SC;
  font-weight: 600;
  color: #ffffff;
  line-height: 0.7rem;
  position: absolute;
  top: 1.2rem;
  left: 0.6rem;
}

.outer .container .overview .pay {
  width: 1.56rem;
  height: 0.6rem;
  border-radius: 0.39rem;
  border: 0.02rem solid #ffffff;
  position: absolute;
  top: 1.3rem;
  right: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.outer .container .overview .pay .icon {
  width: 0.3rem;
  height: 0.3rem;
  background: #ffffff;
  display: inline-block;
  background: url("../../static/point/jinbi.png") no-repeat;
  background-size: cover;
}

.outer .container .overview .pay .text {
  display: inline-block;
  width: 0.56rem;
  height: 0.6rem;
  font-size: 0.28rem;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #ffffff;
  line-height: 0.6rem;
  margin-left: 0.2rem;
}

.outer .container .detail {
  width: 100%;
  height: 1.17rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 0.01rem solid #e0e0e0;
}

.outer .container .detail .title {
  width: 1.28rem;
  height: 1.17rem;
  font-size: 0.32rem;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #000000;
  line-height: 1.17rem;
}
.outer .container .detail .part {
  display: flex;
  width: 3.2rem;
  height: 1.13rem;
  justify-content: space-between;
  align-items: center;
}

.outer .container .detail .part div {
  width: 0.64rem;
  height: 1.13rem;
  font-size: 0.32rem;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #aaaaaa;
  line-height: 1.13rem;
}
.outer .container .detail .part .active {
  width: 0.64rem;
  height: 1.13rem;
  font-size: 0.32rem;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #111111;
  border-bottom: 0.06rem solid #db9d28;
}
.outer .container .content {
  width: 100%;
}

.outer .container .content .ele {
  height: 2.7rem;
  border-bottom: 0.01rem solid #e0e0e0;
  padding: 0.3rem 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around
}
.outer .container .content .ele .title {
  width: 100%;
  height: 0.45rem;
  font-size: 0.32rem;
  font-family: PingFangSC-Regular, PingFang SC;
  color: #111111;
  line-height: 0.45rem;
  display: flex;
  justify-content: space-between;
}

.outer .container .content .ele .title .text {
  display: inline-block;
  width: 0.64rem;
  height: 0.45rem;
  font-weight: 500;
  color: #111111;
}

.outer .container .content .ele .title .amount {
  display: inline-block;
  height: 0.45rem;
  font-weight: 500;
  color: #db9d28;
}

.outer .container .content .ele .item{
  display:flex;
  justify-content: space-between;
  align-items: center;
  margin-top:0.15rem; 
height: 0.4rem;
font-size: 0.28rem;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #AAAAAA;
line-height: 0.4rem;
}

.outer .container .content .ele .item .text{
display:inline-block;
height: 0.4rem;
font-size: 0.28rem;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #AAAAAA;
line-height: 0.4rem;
}

.outer .container .content .ele .item .amount{
display:inline-block;
height: 0.4rem;
font-size: 0.28rem;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
line-height: 0.4rem;
}
</style>
