订单页面新增空状态

This commit is contained in:
wangsongsole 2022-09-28 14:28:03 +08:00
parent 798e222ad9
commit 2a557128f9
3 changed files with 27 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -23,13 +23,13 @@ html {
}
html,
body {
body,
#app {
height: 100%;
}
#app {
min-height: 100%;
background: #F4F6F9;
font-size: 0.16rem;
padding: 0.1rem;
@ -39,6 +39,7 @@ body {
.content {
padding-bottom: 0.5rem;
box-sizing: border-box;
height: 100%;
}
.content-item {
@ -138,3 +139,22 @@ body {
height: 0.31rem;
z-index: 877;
}
.empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
}
.empty img {
width: 1.61rem;
height: 0.82rem;
}
.empty p {
font-size: 0.13rem;
color: #A6A5B2;
}

View File

@ -46,6 +46,11 @@
<p class="button" @click="goExchange(item)" v-show="item.status===0">去兑换</p>
</div>
</div>
<!-- 空状态 -->
<div class="empty" v-if="!orderList.length">
<img src="./img/coupon-empty.png" alt="">
<p>暂无订单</p>
</div>
</div>
<tab-component :current="2"></tab-component>