empty.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <view class="page-box">
  3. <view class="centre">
  4. <image src="../static/images/empty.png" mode=""></image>
  5. <view class="tips">
  6. {{content}}
  7. </view>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. props: {
  14. content: {
  15. type: String,
  16. default: '暂无数据'
  17. }
  18. }
  19. }
  20. </script>
  21. <style lang="scss" scoped>
  22. page{
  23. background: #FFFFFF;
  24. }
  25. .page-box {
  26. position: relative;
  27. left: 0;
  28. top: -20upx;
  29. right: 0;
  30. bottom: 0;
  31. height: 100vh;
  32. background-color: #FFFFFF;
  33. }
  34. .centre {
  35. position: absolute;
  36. left: 0;
  37. top: -50vh;
  38. right: 0;
  39. bottom: 0;
  40. margin: auto;
  41. height: 0rpx;
  42. text-align: center;
  43. // padding: 200rpx auto;
  44. font-size: 32rpx;
  45. image {
  46. width: 476upx;
  47. height: 357upx;
  48. // width: 340rpx;
  49. // height: 270rpx;
  50. // margin-bottom: 20rpx;
  51. margin: 0 auto 20rpx;
  52. // border: 1px dotted #000000;
  53. }
  54. .tips {
  55. font-size: 32rpx;
  56. color: #2F3044;
  57. margin-top: 20rpx;
  58. font-weight: 700;
  59. }
  60. .btn {
  61. margin: 80rpx auto;
  62. width: 600rpx;
  63. border-radius: 32rpx;
  64. line-height: 90rpx;
  65. color: #ffffff;
  66. font-size: 34rpx;
  67. background: #5074FF;
  68. }
  69. }
  70. </style>