image.png
<template>
<div class="empty">
<image class="image" style="width: 310px;height: 212px;"
src="https://s.kcimg.cn/wap/images/detail/o2oImg/settled_no@2x.png">
</image>
<text class="tip">您附近還沒有店鋪哦</text>
<text class="guide">上傳店鋪可獲取卡路里哦蝠嘉,快來參與吧</text>
</div>
</template>
// <script>
// export default {
// }
// </script>
<style scoped>
.image{
background-color: #fff;
}
.empty{
// 自身內(nèi)部間距,為負(fù)值沒有效果坠宴,相當(dāng)于iOS contentInsets
padding-top: 90px;
// 父視圖定義其所有的子視圖組合起來在父視圖中垂直居中
justify-content: center;
// 父視圖定義其所有的子視圖組合起來在父視圖中水平居中
align-items: center;
background-color: #fff;
}
.tip{
margin-top: 60px;
font-size: 36px;
color: #666;
}
.guide{
// 外部距離
margin-bottom: 80px;
font-size: 28px;
color: #999;
}
</style>