You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
26 KiB
61 lines
26 KiB
3 years ago
|
<template>
|
||
|
<view class="empty-content">
|
||
|
<image class="empty-content-image" :src="typeSrc.empty" mode="aspectFit"></image>
|
||
|
<view style="color: #999999;margin-top: 8px;font-size: 13px">{{des}}</view>
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
props: [
|
||
|
"src", "des","show"
|
||
|
],
|
||
|
data() {
|
||
|
return {
|
||
|
typeSrc: {
|
||
|
des:'No data',
|
||
|
empty: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMMAAACtCAYAAAANgcuAAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTN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oEu7JBud5VwUBU5+tgIRGnhRwHHHyKKt6DG9fI0/juBrwy1ensG1k1AwQPR+95q0IrapeiMKjChQYth1nT7CVJ/DyC3uoUwsUrQrRFgXaSo55HiN6nGjTdDSkQxUhgrdQb8LegikUnjMo
|
||
|
},
|
||
|
|
||
|
}
|
||
|
},
|
||
|
|
||
|
computed: {
|
||
|
setSrc() {
|
||
|
return this.typeSrc.empty;
|
||
|
},
|
||
|
setDes() {
|
||
|
return this.typeSrc[this.des];
|
||
|
},
|
||
|
},
|
||
|
methods:{
|
||
|
goHome(){
|
||
|
uni.switchTab({url: '/pages/index/index'});
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss">
|
||
|
.empty-content {
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
|
flex-direction: column;
|
||
|
|
||
|
// position: fixed;
|
||
|
left: 0;
|
||
|
// top: 100upx;
|
||
|
padding-top: 200upx;
|
||
|
right: 0;
|
||
|
bottom: 0;
|
||
|
// background: #FFFFFF;
|
||
|
padding-bottom: 120upx;
|
||
|
|
||
|
&-image {
|
||
|
width: 200upx;
|
||
|
height: 200upx;
|
||
|
}
|
||
|
}
|
||
|
</style>
|