empty.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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-box {
  23. position: relative;
  24. left: 0;
  25. height: 100vh;
  26. background-color: #FFFFFF;
  27. }
  28. .centre {
  29. position: absolute;
  30. left: 0;
  31. top: 200upx;
  32. right: 0;
  33. bottom: 0;
  34. // margin: auto;
  35. // height: 0rpx;
  36. text-align: center;
  37. // padding: 200rpx auto;
  38. font-size: 32rpx;
  39. image {
  40. // width: 387rpx;
  41. // height: 341rpx;
  42. width: 390rpx;
  43. height: 270rpx;
  44. // margin-bottom: 20rpx;
  45. margin: 0 auto 20rpx;
  46. // border: 1px dotted #000000;
  47. }
  48. .tips {
  49. font-size: 32rpx;
  50. color: #2F3044;
  51. margin-top: 20rpx;
  52. font-weight: 700;
  53. }
  54. .btn {
  55. margin: 80rpx auto;
  56. width: 600rpx;
  57. border-radius: 32rpx;
  58. line-height: 90rpx;
  59. color: #ffffff;
  60. font-size: 34rpx;
  61. background: #5074FF;
  62. }
  63. }
  64. </style>