sadjv3_user/components/empty.vue

91 lines
1.5 KiB
Vue
Raw Normal View History

2024-06-05 19:16:02 +08:00
<template>
<view class="page-box">
2024-06-12 15:52:21 +08:00
<view class="centre" v-if="noneData=='地址'">
<image src="../static/address/map1.png" mode=""></image>
<view class="address-tips">
2024-07-02 20:38:31 +08:00
小主您还没有服务地址哦~
2024-06-12 15:52:21 +08:00
</view>
</view>
<view class="centre" v-else>
2024-06-05 19:16:02 +08:00
<image src="../static/images/empty.png" mode=""></image>
<view class="tips">
{{content}}
</view>
</view>
</view>
</template>
<script>
export default {
props: {
content: {
type: String,
default: '暂无数据'
2024-06-12 15:52:21 +08:00
},
noneData: {
type: String,
default: '暂无数据'
2024-06-05 19:16:02 +08:00
}
}
}
</script>
<style lang="scss" scoped>
page{
background: #FFFFFF;
}
.page-box {
position: relative;
left: 0;
top: -20upx;
right: 0;
bottom: 0;
height: 100vh;
background-color: #FFFFFF;
}
.centre {
position: absolute;
left: 0;
top: -50vh;
right: 0;
bottom: 0;
margin: auto;
height: 0rpx;
text-align: center;
// padding: 200rpx auto;
font-size: 32rpx;
image {
width: 476upx;
height: 357upx;
// width: 340rpx;
// height: 270rpx;
// margin-bottom: 20rpx;
margin: 0 auto 20rpx;
// border: 1px dotted #000000;
}
2024-06-12 15:52:21 +08:00
.address-tips{
font-weight: 400;
font-size: 32rpx;
color: #B9BEC7;
}
2024-06-05 19:16:02 +08:00
.tips {
font-size: 32rpx;
color: #2F3044;
margin-top: 20rpx;
font-weight: 700;
}
.btn {
margin: 80rpx auto;
width: 600rpx;
border-radius: 32rpx;
line-height: 90rpx;
color: #ffffff;
font-size: 34rpx;
background: #5074FF;
}
}
</style>