|
@@ -0,0 +1,302 @@
|
|
|
+<template>
|
|
|
+ <div class="point-index">
|
|
|
+ <div class="background"></div>
|
|
|
+ <div class="card">
|
|
|
+ <div class="avatar">
|
|
|
+ <img src="/test/null.jpg" alt="" />
|
|
|
+ <div class="info">
|
|
|
+ <div class="name">李哈哈</div>
|
|
|
+ <div class="text">智慧易加·油站专家</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="content">
|
|
|
+ <div class="item">
|
|
|
+ <div>1280.01</div>
|
|
|
+ <div>总余额</div>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <div>200</div>
|
|
|
+ <div>积分</div>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <div>0张</div>
|
|
|
+ <div>优惠券</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="charge">
|
|
|
+ <div class="tip">充值会员享更多优惠</div>
|
|
|
+ <button>去充值</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="title">
|
|
|
+ <div>
|
|
|
+ <div class="icon"></div>
|
|
|
+ <div>黄金会员</div>
|
|
|
+ </div>
|
|
|
+ <div>查看详情 ></div>
|
|
|
+ </div>
|
|
|
+ <div class="privilege">
|
|
|
+ <div class="title">会员特权</div>
|
|
|
+ <div>
|
|
|
+ <span class="icon"></span>
|
|
|
+ <span class="text">会员8.5折 </span><span>| 黄金会员加油享会员折扣</span>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <span class="icon"></span>
|
|
|
+ <span class="text">积分抵现 </span><span>| 10积分抵1元</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import ProductList from "../../components/ProductList";
|
|
|
+import { mapState, mapActions } from "vuex";
|
|
|
+export default {
|
|
|
+ head() {
|
|
|
+ return {
|
|
|
+ title: "个人中心",
|
|
|
+ };
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ images: [],
|
|
|
+ list: [],
|
|
|
+ loading: false, // 加载状态
|
|
|
+ finished: false, // 是否完成加载
|
|
|
+ refreshing: false, // 是否正在上拉刷新
|
|
|
+ };
|
|
|
+ },
|
|
|
+ components: {
|
|
|
+ ProductList,
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapState({
|
|
|
+ pointInfo: (state) => state.point.pointInfo,
|
|
|
+ }),
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ // this.getPointInfo();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ ...mapActions({
|
|
|
+ getPointInfo: "point/getPointInfo",
|
|
|
+ }),
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style>
|
|
|
+.point-index {
|
|
|
+ width: 100vw;
|
|
|
+ height: 100vh;
|
|
|
+}
|
|
|
+.point-index .background {
|
|
|
+ width: 7.5rem;
|
|
|
+ height: 4.24rem;
|
|
|
+ background: linear-gradient(
|
|
|
+ 180deg,
|
|
|
+ #fde1ac 0%,
|
|
|
+ rgba(255, 242, 219, 0.56) 90%,
|
|
|
+ rgba(255, 244, 224, 0) 100%
|
|
|
+ );
|
|
|
+}
|
|
|
+.point-index .card {
|
|
|
+ width: 6.9rem;
|
|
|
+ height: 3.94rem;
|
|
|
+ margin: 0 auto;
|
|
|
+ margin-top: -3.84rem;
|
|
|
+ background: url("~static/personal/bj5@2x.png") no-repeat 0px 0px;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ position: relative;
|
|
|
+}
|
|
|
+.point-index .card .avatar {
|
|
|
+ width: 3.2rem;
|
|
|
+ height: 1rem;
|
|
|
+ position: absolute;
|
|
|
+ top: 0.4rem;
|
|
|
+ left: 0.75rem;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+.point-index .card .avatar img {
|
|
|
+ width: 0.8rem;
|
|
|
+ height: 0.8rem;
|
|
|
+ border-radius: 0.4rem;
|
|
|
+}
|
|
|
+.point-index .card .avatar .info {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: space-between;
|
|
|
+}
|
|
|
+.point-index .card .avatar .info .name {
|
|
|
+ height: 0.45rem;
|
|
|
+ font-size: 0.32rem;
|
|
|
+ font-family: PingFangSC-Medium, PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #884e16;
|
|
|
+ line-height: 0.45rem;
|
|
|
+}
|
|
|
+.point-index .card .avatar .info .text {
|
|
|
+ height: 0.28rem;
|
|
|
+ font-size: 0.2rem;
|
|
|
+ font-family: PingFangSC-Light, PingFang SC;
|
|
|
+ font-weight: 300;
|
|
|
+ color: #884e16;
|
|
|
+ line-height: 0.28rem;
|
|
|
+}
|
|
|
+.point-index .card .content {
|
|
|
+ position: absolute;
|
|
|
+ height: 1.2rem;
|
|
|
+ width: 5.8rem;
|
|
|
+ left: 0.7rem;
|
|
|
+ top: 1.6rem;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-around;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+.point-index .card .content .item div:nth-child(1) {
|
|
|
+ width: 1.26rem;
|
|
|
+ height: 0.5rem;
|
|
|
+ font-size: 0.36rem;
|
|
|
+ font-family: PingFangSC-Medium, PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #884e16;
|
|
|
+ line-height: 0.5rem;
|
|
|
+}
|
|
|
+.point-index .card .content .item div:nth-child(2) {
|
|
|
+ height: 0.33rem;
|
|
|
+ font-size: 0.24rem;
|
|
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #884e16;
|
|
|
+ line-height: 0.33rem;
|
|
|
+}
|
|
|
+.point-index .card .charge {
|
|
|
+ border: none;
|
|
|
+ background-color: transparent;
|
|
|
+ outline: none;
|
|
|
+ width: 100%;
|
|
|
+ left: 0.7rem;
|
|
|
+ width: 6.1rem;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ position: absolute;
|
|
|
+ bottom: 0.3rem;
|
|
|
+ margin-right: 0.3rem;
|
|
|
+}
|
|
|
+.point-index .card .charge button {
|
|
|
+ border: none;
|
|
|
+ background-color: transparent;
|
|
|
+ outline: none;
|
|
|
+ width: 1.64rem;
|
|
|
+ height: 0.6rem;
|
|
|
+ background: #ff885d;
|
|
|
+ border-radius: 0.33rem;
|
|
|
+ margin-right: 0.3rem;
|
|
|
+ font-size: 0.28rem;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #ffffff;
|
|
|
+ line-height: 0.4rem;
|
|
|
+}
|
|
|
+.point-index .title {
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 0.4rem 0.3rem;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+.point-index .title > div {
|
|
|
+ display: flex;
|
|
|
+}
|
|
|
+.point-index .title div .icon {
|
|
|
+ width: 0.1rem;
|
|
|
+ height: 0.4rem;
|
|
|
+ background: #d2a781;
|
|
|
+ border-radius: 0.05rem;
|
|
|
+}
|
|
|
+.point-index .title div div:nth-last-child(1) {
|
|
|
+ width: 1.12rem;
|
|
|
+ height: 0.4rem;
|
|
|
+ font-size: 0.28rem;
|
|
|
+ font-family: PingFangSC-Medium, PingFang SC;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #111111;
|
|
|
+ line-height: 0.4rem;
|
|
|
+ margin-left: 0.3rem;
|
|
|
+}
|
|
|
+
|
|
|
+.point-index .title div:nth-last-child(1) {
|
|
|
+ height: 0.33rem;
|
|
|
+ font-size: 0.24rem;
|
|
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #aaaaaa;
|
|
|
+ line-height: 0.33rem;
|
|
|
+}
|
|
|
+.point-index .privilege {
|
|
|
+ padding: 0.3rem;
|
|
|
+ padding-top: 0;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+.point-index .privilege div:not(:nth-child(1)) {
|
|
|
+ width: 6.5rem;
|
|
|
+ height: 1rem;
|
|
|
+ border-radius: 0.1rem;
|
|
|
+ border: 0.01rem solid #d2a781;
|
|
|
+ margin: 0.2rem;
|
|
|
+ box-sizing: border-box;
|
|
|
+}
|
|
|
+.point-index .privilege .title {
|
|
|
+ width: 100%;
|
|
|
+ height: 0.4rem;
|
|
|
+ font-size: 0.28rem;
|
|
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #666666;
|
|
|
+ line-height: 0.4rem;
|
|
|
+ text-align: center;
|
|
|
+ display: inline;
|
|
|
+}
|
|
|
+.point-index .privilege > div:not(.title) {
|
|
|
+ position: relative;
|
|
|
+}
|
|
|
+.point-index .privilege div .icon {
|
|
|
+ position: absolute;
|
|
|
+ top: 0.27rem;
|
|
|
+ left: 0.3rem;
|
|
|
+}
|
|
|
+.point-index .privilege div:nth-child(2) .icon {
|
|
|
+ display: block;
|
|
|
+ width: 0.29rem;
|
|
|
+ height: 0.45rem;
|
|
|
+ background: url("~static/personal/zhekou@2x.png") no-repeat 0px 0px;
|
|
|
+ background-size: 100% 100%;
|
|
|
+}
|
|
|
+.point-index .privilege div:nth-child(3) .icon {
|
|
|
+ display: block;
|
|
|
+ width: 0.29rem;
|
|
|
+ height: 0.45rem;
|
|
|
+ background: url("~static/personal/jifen-2@2x.png") no-repeat 0px 0px;
|
|
|
+ background-size: 100% 100%;
|
|
|
+}
|
|
|
+.point-index .privilege div .text {
|
|
|
+ height: 0.4rem;
|
|
|
+ font-size: 0.28rem;
|
|
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #111111;
|
|
|
+ line-height: 0.4rem;
|
|
|
+ position: absolute;
|
|
|
+ top: 0.27rem;
|
|
|
+ left: 0.79rem;
|
|
|
+}
|
|
|
+.point-index .privilege div span:nth-child(3) {
|
|
|
+position: absolute;
|
|
|
+ color: #c5c5c5;
|
|
|
+ top:.32rem;
|
|
|
+ left:2.1rem
|
|
|
+}
|
|
|
+</style>
|