kz-skeleton.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <view>
  3. <tui-skeleton v-if="showSkeleton" backgroundColor="#fafafa" borderRadius="10rpx"></tui-skeleton>
  4. <view class="container tui-skeleton">
  5. <image src="/static/img/train-banner1.png" mode="widthFix" class="tui-banner tui-skeleton-rect"></image>
  6. <view class="tui-text">
  7. <text class=" tui-skeleton-rect"> </text>
  8. </view>
  9. <view class="tui-view">
  10. <view class="tui-cell">
  11. <view class="tui-title tui-skeleton-rect"> </view>
  12. <view class="tui-link tui-skeleton-fillet" > </view>
  13. </view>
  14. <view class="tui-cell">
  15. <view class="tui-title tui-skeleton-rect"> </view>
  16. <view class="tui-link tui-skeleton-fillet" > </view>
  17. </view>
  18. <view class="tui-cell">
  19. <view class="tui-title tui-skeleton-rect"> </view>
  20. <view class="tui-link tui-skeleton-fillet" > </view>
  21. </view>
  22. <view class="tui-cell">
  23. <view class="tui-title tui-skeleton-rect"> </view>
  24. <view class="tui-link tui-skeleton-fillet" > </view>
  25. </view>
  26. <view class="tui-cell">
  27. <view class="tui-title tui-skeleton-rect"> </view>
  28. <view class="tui-link tui-skeleton-fillet" > </view>
  29. </view>
  30. <view class="tui-cell">
  31. <view class="tui-title tui-skeleton-rect"> </view>
  32. <view class="tui-link tui-skeleton-fillet" > </view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. name:"kz-skeleton",
  41. props: {
  42. // 显示开关
  43. showSkeleton: {
  44. type: Boolean,
  45. default: true
  46. },
  47. },
  48. data() {
  49. return {
  50. };
  51. }
  52. }
  53. </script>
  54. <style>
  55. .tui-banner {
  56. width: 100%;
  57. height: 375rpx;
  58. }
  59. .tui-text {
  60. width: 100%;
  61. padding: 12rpx 30rpx 20rpx;
  62. box-sizing: border-box;
  63. color: #B3B3B3;
  64. font-size: 26rpx;
  65. text-align: right;
  66. margin-top: 8rpx
  67. }
  68. .tui-view {
  69. width: 100%;
  70. padding: 20rpx 30rpx;
  71. box-sizing: border-box;
  72. }
  73. .tui-cell {
  74. padding: 24rpx 0;
  75. color: #555;
  76. }
  77. .tui-title {
  78. padding: 0 8rpx;
  79. box-sizing: border-box;
  80. display: inline-block;
  81. }
  82. .tui-link {
  83. width: 100%;
  84. padding: 30rpx;
  85. box-sizing: border-box;
  86. background: #fff;
  87. box-shadow: 0px 3rpx 20rpx rgba(183, 183, 183, 0.1);
  88. border-radius: 10rpx;
  89. color: #06c;
  90. margin-top: 20rpx;
  91. word-break: break-all;
  92. }
  93. </style>