detail-skeleton.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <template>
  2. <view
  3. class="skeleton-wrap"
  4. :class="['theme-' + sys.mode, 'main-' + sys.theme, 'font-' + sys.fontSize]"
  5. >
  6. <view class="skeleton-banner"></view>
  7. <view class="container-box">
  8. <view class="container-box-strip title ss-m-b-58"></view>
  9. <view class="container-box-strip ss-m-b-20"></view>
  10. <view class="container-box-strip ss-m-b-20"></view>
  11. <view class="container-box-strip w-364"></view>
  12. </view>
  13. <view class="container-box">
  14. <view class="ss-flex ss-row-between ss-m-b-34">
  15. <view class="container-box-strip w-380"></view>
  16. <view class="circle"></view>
  17. </view>
  18. <view class="ss-flex ss-row-between ss-m-b-34">
  19. <view class="container-box-strip w-556"></view>
  20. <view class="circle"></view>
  21. </view>
  22. <view class="ss-flex ss-row-between">
  23. <view class="container-box-strip w-556"></view>
  24. <view class="circle"></view>
  25. </view>
  26. </view>
  27. <view class="container-box">
  28. <view class="container-box-strip w-198 ss-m-b-42"></view>
  29. <view class="ss-flex">
  30. <view class="circle ss-m-r-12"></view>
  31. <view class="container-box-strip w-252"></view>
  32. </view>
  33. </view>
  34. <su-fixed bottom placeholder bg="bg-white">
  35. <view class="ui-tabbar-box">
  36. <view class="foot ss-flex ss-col-center">
  37. <view class="ss-m-r-54 ss-m-l-32">
  38. <view class="rec ss-m-b-8"></view>
  39. <view class="oval"></view>
  40. </view>
  41. <view class="ss-m-r-54">
  42. <view class="rec ss-m-b-8"></view>
  43. <view class="oval"></view>
  44. </view>
  45. <view class="ss-m-r-50">
  46. <view class="rec ss-m-b-8"></view>
  47. <view class="oval"></view>
  48. </view>
  49. <button class="ss-reset-button add-btn ui-Shadow-Main"></button>
  50. <button class="ss-reset-button buy-btn ui-Shadow-Main"></button>
  51. </view>
  52. </view>
  53. </su-fixed>
  54. </view>
  55. </template>
  56. <script setup>
  57. import { computed } from 'vue';
  58. import sheep from '@/sheep';
  59. const sys = computed(() => sheep.$store('sys'));
  60. </script>
  61. <style lang="scss" scoped>
  62. @keyframes loading {
  63. 0% {
  64. opacity: 0.5;
  65. }
  66. 50% {
  67. opacity: 1;
  68. }
  69. 100% {
  70. opacity: 0.5;
  71. }
  72. }
  73. .skeleton-wrap {
  74. width: 100%;
  75. height: 100vh;
  76. position: relative;
  77. .skeleton-banner {
  78. width: 100%;
  79. height: calc(100vh - 882rpx);
  80. background: #f4f4f4;
  81. }
  82. .container-box {
  83. padding: 24rpx 18rpx;
  84. margin: 14rpx 20rpx;
  85. background: var(--ui-BG);
  86. animation: loading 1.4s ease infinite;
  87. .container-box-strip {
  88. height: 40rpx;
  89. background: #f3f3f1;
  90. border-radius: 20rpx;
  91. }
  92. .title {
  93. width: 470rpx;
  94. height: 50rpx;
  95. border-radius: 25rpx;
  96. }
  97. .w-364 {
  98. width: 364rpx;
  99. }
  100. .w-380 {
  101. width: 380rpx;
  102. }
  103. .w-556 {
  104. width: 556rpx;
  105. }
  106. .w-198 {
  107. width: 198rpx;
  108. }
  109. .w-252 {
  110. width: 252rpx;
  111. }
  112. .circle {
  113. width: 40rpx;
  114. height: 40rpx;
  115. background: #f3f3f1;
  116. border-radius: 50%;
  117. }
  118. }
  119. .ui-tabbar-box {
  120. box-shadow: 0px -6px 10px 0px rgba(51, 51, 51, 0.2);
  121. }
  122. .foot {
  123. height: 100rpx;
  124. background: var(--ui-BG);
  125. .rec {
  126. width: 38rpx;
  127. height: 38rpx;
  128. background: #f3f3f1;
  129. border-radius: 8rpx;
  130. }
  131. .oval {
  132. width: 38rpx;
  133. height: 22rpx;
  134. background: #f3f3f1;
  135. border-radius: 11rpx;
  136. }
  137. .add-btn {
  138. width: 214rpx;
  139. height: 72rpx;
  140. font-weight: 500;
  141. font-size: 28rpx;
  142. border-radius: 40rpx 0 0 40rpx;
  143. background-color: var(--ui-BG-Main-light);
  144. color: var(--ui-BG-Main);
  145. }
  146. .buy-btn {
  147. width: 214rpx;
  148. height: 72rpx;
  149. font-weight: 500;
  150. font-size: 28rpx;
  151. border-radius: 0 40rpx 40rpx 0;
  152. background: linear-gradient(90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient));
  153. color: $white;
  154. }
  155. }
  156. }
  157. </style>