viewX-Case.vue 1.1 KB

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