123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306 |
- <template>
- <div class="point-list">
- <div v-if="orderList.length === 0" class="no-img">
- <div></div>
- <span>无订单</span>
- </div>
- <template v-else>
- <div class="order" v-for="item in orderList" :key="item.id">
- <div class="top">
- <div class="code">{{ "订单号 " + item.integralOrderNo }}</div>
- <div class="status">已兑换</div>
- </div>
- <div class="middle">
- <div class="imgcon">
- <img :src="item.waresPic" alt="" srcset="" />
- </div>
- <div class="content">
- <div class="title">{{ item.waresName }}</div>
- <div class="desc">{{ item.waresDetail }}</div>
- <div class="amount">
- <div>
- <span class="text">共{{ item.exchangeNum }}件商品 合计 </span
- ><span class="icon"></span><span>{{ item.integral }}</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>
- </template>
- <!-- <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">水光气垫</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 {
- orderList: [],
- };
- },
- components: {
- ProductList,
- },
- mounted() {
- this.initOrderList();
- },
- methods: {
- initOrderList() {
- this.$axios
- .$get("/getUserIntegralOrderList", {
- params: {
- unionId: this.unionId,
- stationId: this.stationId,
- },
- })
- .then((res) => {
- if (res.retCode === 0) {
- this.orderList = res.data;
- }
- });
- },
- },
- };
- </script>
- <style>
- .point-list {
- width: 100%;
- background: #f8f8f8;
- width: 7rem;
- margin: 0 auto;
- }
- .point-list .no-img {
- width: 100%;
- height: 60vh;
- position: relative;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .point-list .no-img div {
- width: 2.29rem;
- height: 1.87rem;
- background: url("../../static/common/wu@2x.png") no-repeat 0 0;
- background-size: 100% 100%;
- }
- .point-list .no-img span {
- width: 2.29rem;
- height: 0.4rem;
- font-size: 0.28rem;
- font-weight: 500;
- color: #aaaaaa;
- line-height: 0.4rem;
- text-align: center;
- }
- .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 {
- 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 {
- 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: 100% 100%;
- }
- .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>
|