2021-08-19 06:40:59 +00:00
|
|
|
<template>
|
|
|
|
<view class="nothing">
|
|
|
|
<view class="nothing-box">
|
2022-03-09 10:06:05 +00:00
|
|
|
<image lazy-load :src="imgSrc" mode="aspectFill"></image>
|
2021-08-19 06:40:59 +00:00
|
|
|
<view class="nothing-con">{{content}}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name:"nothing-page",
|
|
|
|
props:{
|
|
|
|
imgSrc:{
|
|
|
|
type:String,
|
|
|
|
default:'/static/public/nothing.png'
|
|
|
|
},
|
|
|
|
content:{
|
|
|
|
type:String,
|
|
|
|
default:'暂无内容'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.nothing{position: fixed;top: 0;right: 0;left: 0;bottom: 0;display: flex;justify-content: center;align-items: center;}
|
|
|
|
.nothing-box{display: flex;justify-content: center;flex-direction: column;align-items: center;}
|
|
|
|
.nothing-box>image{width: 474rpx;height: 273rpx;}
|
|
|
|
.nothing-con{font-size: 24rpx;font-family: PingFang SC;font-weight: 500;line-height: 33rpx;color: #333333;text-align: center;}
|
|
|
|
</style>
|