viewX-Case.vue 1011 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <view class="view_x_case">
  3. <view class="tit">
  4. <view class="">
  5. <slot name="title"></slot>
  6. </view>
  7. <view class="">
  8. <slot name="lookMore"></slot>
  9. </view>
  10. </view>
  11. <!-- 首页精选活动类 -->
  12. <scroll-view class="scroll-view_H" scroll-x="true" :show-scrollbar=false>
  13. <slot name="activeBlock"></slot>
  14. </scroll-view>
  15. <!-- 首页教研室活动类 -->
  16. <scroll-view class="scroll-view_y" scroll-y="true" :show-scrollbar=false>
  17. <slot name="teaching"></slot>
  18. </scroll-view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. name:"view_x_case",
  24. data() {
  25. return {
  26. };
  27. }
  28. }
  29. </script>
  30. <style lang="scss">
  31. .view_x_case{
  32. width: 750rpx;
  33. background-color: #fff;
  34. margin-top: 10px;
  35. padding: 40rpx 0;
  36. padding-left: 25rpx;
  37. .tit{
  38. margin-bottom: 15px;
  39. display: flex;
  40. justify-content: space-between;
  41. padding-right: 25rpx;
  42. }
  43. .scroll-view_H {
  44. white-space: nowrap;
  45. }
  46. .scroll-view_y{
  47. // padding-right: 25rpx;
  48. }
  49. }
  50. </style>