订单页面新增空状态

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, html,
body { body,
#app {
height: 100%; height: 100%;
} }
#app { #app {
min-height: 100%;
background: #F4F6F9; background: #F4F6F9;
font-size: 0.16rem; font-size: 0.16rem;
padding: 0.1rem; padding: 0.1rem;
@ -39,6 +39,7 @@ body {
.content { .content {
padding-bottom: 0.5rem; padding-bottom: 0.5rem;
box-sizing: border-box; box-sizing: border-box;
height: 100%;
} }
.content-item { .content-item {
@ -137,4 +138,23 @@ body {
width: 0.31rem; width: 0.31rem;
height: 0.31rem; height: 0.31rem;
z-index: 877; 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> <p class="button" @click="goExchange(item)" v-show="item.status===0">去兑换</p>
</div> </div>
</div> </div>
<!-- 空状态 -->
<div class="empty" v-if="!orderList.length">
<img src="./img/coupon-empty.png" alt="">
<p>暂无订单</p>
</div>
</div> </div>
<tab-component :current="2"></tab-component> <tab-component :current="2"></tab-component>