123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <template>
- <view class="empty-content" :style="{backgroundColor:backgroundColor}">
- <image class="empty-content-image" :src="StaticUrl + '/image/icon-empty@2x.png'" mode="aspectFit"></image>
- <text class="error-text">{{EmptyText}}</text>
- </view>
- </template>
- <script>
- export default {
- props: {
- backgroundColor:{
- type: String,
- default: '#F7F7F7'
- },
- src: {
- type: String,
- default: 'empty'
- },
- typeIndex:{
- type:String,
- default: 'empty'
- },
- navbarHeight:{
- type:Number
- }
- },
- data() {
- return {
- StaticUrl: this.$Static,
- EmptyText:'暂无数据',
- }
- },
- created(){
- if(this.typeIndex==0){
- this.EmptyText = '暂无数据'
- }else{
- this.EmptyText = '暂无数据'
- }
- },
- computed: {
-
- },
- }
- </script>
- <style lang="scss">
- .empty-content {
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- margin: auto;
- height: 700rpx;
- z-index: 999;
- &-image {
- width: 100rpx;
- height: 100rpx;
- }
- .error-text{
- font-size: $font-size-28;
- color: #999999;
- line-height: 88rpx;
- }
- }
- </style>
|