forked from stavyan/TinyShop-UniApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.vue
More file actions
executable file
·77 lines (75 loc) · 1.27 KB
/
Copy pathindex.vue
File metadata and controls
executable file
·77 lines (75 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<template>
<view class="empty">
<view class="empty-content" :class="{ emptyOnly: !isRecommendShow }">
<text class="iconfont iconnodata-search" :class="'text-'+themeColor.name"></text>
<text class="empty-content-info">{{ info }}</text>
</view>
<rf-recommend :bottom="bottom" v-if="isRecommendShow" :list="list" class="recommend" />
</view>
</template>
<script>
import rfRecommend from '@/components/rf-recommend/rf-recommend';
export default {
components: {
rfRecommend
},
props: {
src: {
type: String,
default: 'empty'
},
isRecommendShow: {
type: Boolean,
default: true
},
info: {
type: String,
default: ''
},
bottom: {
type: Number,
default: 0
},
list: {
type: Array,
default() {
return [];
}
}
},
data() {
return {};
},
computed: {}
};
</script>
<style lang="scss">
.empty {
background-color: $color-white;
.empty-content {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
padding: 20upx 0 80upx;
.empty-content-info {
font-size: $font-base - 2upx;
}
.iconfont {
font-size: 240upx;
}
&-image {
width: 200upx;
height: 200upx;
}
}
.emptyOnly {
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
}
}
</style>