123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293 |
- <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>
|