emptys.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. data(){
  20. return {
  21. content:'暂无内容'
  22. }
  23. }
  24. }
  25. </script>
  26. <style lang="scss" scoped>
  27. .page-box {
  28. position: relative;
  29. left: 0;
  30. // height: 50vh;
  31. }
  32. .centre {
  33. position: absolute;
  34. left: 0;
  35. top: 0;
  36. right: 0;
  37. bottom: 0;
  38. margin: auto;
  39. height: 0rpx;
  40. text-align: center;
  41. // padding: 200rpx auto;
  42. font-size: 32rpx;
  43. image {
  44. // width: 387rpx;
  45. // height: 341rpx;
  46. width: 340rpx;
  47. height: 270rpx;
  48. // margin-bottom: 20rpx;
  49. margin: 0 auto 20rpx;
  50. // border: 1px dotted #000000;
  51. }
  52. .tips {
  53. font-size: 32rpx;
  54. color: #2F3044;
  55. margin-top: 20rpx;
  56. font-weight: 700;
  57. }
  58. .btn {
  59. margin: 80rpx auto;
  60. width: 600rpx;
  61. border-radius: 32rpx;
  62. line-height: 90rpx;
  63. color: #ffffff;
  64. font-size: 34rpx;
  65. background: #5074FF;
  66. }
  67. }
  68. </style>