viewX-Case.vue 1.3 KB

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