<template>
  <div class="point-list">
    <div class="order">
      <div class="top">
        <div class="code">订单号 836847623234289</div>
        <div class="status">待付款</div>
      </div>
      <div class="middle">
        <div class="imgcon">
          <img :src="listsrc" alt="" srcset="" />
        </div>
        <div class="content">
          <div class="title">DMS CORTHE 水光气垫</div>
          <div class="desc">15g SPF 50+ PA +++ 自然白</div>
          <div class="amount">
            <div>
              <span class="text">共1件商品 合计 </span><span class="icon"></span
              ><span>300</span>
            </div>
          </div>
        </div>
      </div>

      <div class="footer">
        <span class="paytime">付款倒计时：23:59:59</span>
        <div class="paybutton">
          <button class="cancel">取消订单</button>
          <button class="pay">立刻付款</button>
        </div>
      </div>
    </div>
    <div class="order">
      <div class="top">
        <div class="code">订单号 836847623234289</div>
        <div class="status">待付款</div>
      </div>
      <div class="middle">
        <div class="imgcon">
          <img :src="listsrc" alt="" srcset="" />
        </div>
        <div class="content">
          <div class="title">DMS CORTHE 水光气垫</div>
          <div class="desc">15g SPF 50+ PA +++ 自然白</div>
          <div class="amount">
            <div>
              <span class="text">共1件商品 合计 </span><span class="icon"></span
              ><span>300</span>
            </div>
          </div>
        </div>
      </div>

      <div class="footer">
        <span class="paytime">付款倒计时：23:59:59</span>
        <div class="paybutton">
          <button class="cancel">取消订单</button>
          <button class="pay">立刻付款</button>
        </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>
.point-list {
  width: 100%;
  background: #f8f8f8;
  width: 7rem;
  margin: 0 auto;
}
.point-list .order {
  width: 100%;
  background: #ffffff;
  margin-top: 0.2rem;
}
.point-list .order .top {
  width: 100%rem;
  height: 1rem;
  position: relative;
  border-bottom: 0.01rem solid #e0e0e0;
}
.point-list .order .top .code {
  width: 3.44rem;
  height: 0.4rem;
  font-size: 0.28rem;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #666666;
  line-height: 0.4rem;
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
}
.point-list .order .top .status {
  width: 0.84rem;
  height: 0.4rem;
  font-size: 0.28rem;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #666666;
  line-height: 0.4rem;
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
}

.point-list .order .middle {
  width: 100%;
  height: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.point-list .order .middle .imgcon {
  width: 2.4rem;
  height: 2.4rem;
  background: #ffffff;
  border-radius: 0.1rem;
  border: 0.02rem solid #eeeeee;
  box-sizing: border-box;
  padding: 0.3rem;
  margin-bottom: 1rem;
}
.point-list .order .middle .imgcon img {
  width: 100%;
  height: 100%;
}
.point-list .order .middle .content {
  width: 4.48rem;
  height: 3.4rem;
  padding: 0.3rem 0.1rem;
}
.point-list .order .middle .content .title {
  width: 3.56rem;
  height: 0.45rem;
  font-size: 0.32rem;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
  color: #111111;
  line-height: 0.45rem;
}
.point-list .order .middle .content .desc {
  width: 4.2rem;
  height: 1.95rem;
  font-size: 0.28rem;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #666666;
  line-height: 0.4rem;
}
.point-list .order .middle .content .amount {
  width: 4.2rem;
  height: 1rem;
  font-size: 0.32rem;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
  color: #fe9700;
  line-height: 0.45rem;
  position: relative;
}
.point-list .order .middle .content .amount div {
  display: inline-block;
  position: absolute;
  right: 0;
  top: 0.2rem;
}
.point-list .order .middle .content .amount .text {
  width: 1.7rem;
  height: 0.33rem;
  font-size: 0.24rem;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #666666;
  line-height: 0.33rem;
}
.point-list .order .middle .content .amount .icon {
  display: inline-block;
  width: 0.25rem;
  height: 0.25rem;
  background: url("../../static/common/a01_jifen@2x.png") no-repeat 0 0;
  background-size: cover;
}
.point-list .order .footer {
  width: 100%;
  height: 1rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.point-list .order .footer .paytime {
  display: inline-block;
  width: 2.84rem;
  height: 0.4rem;
  font-size: 0.28rem;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #aaaaaa;
  line-height: 0.4rem;
}
.point-list .order .footer .paybutton {
  display: flex;
  justify-content: space-between;
  width: 3.4rem;
}

.point-list .order .footer .paybutton .cancel {
  border: none;
  background-color: transparent;
  outline: none;
  display: block;
  width: 1.6rem;
  height: 0.6rem;
  border-radius: 0.3rem;
  border: 0.02rem solid #aaaaaa;
  font-size: 0.28rem;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #aaaaaa;
  line-height: 0.4rem;
}
.point-list .order .footer .paybutton .pay {
  border: none;
  background-color: transparent;
  outline: none;
  display: block;
  width: 1.6rem;
  height: 0.6rem;
  background: #fe9700;
  border-radius: 0.3rem;
  font-size: 0.28rem;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #ffffff;
  line-height: 0.4rem;
}
</style>
