viewX-Case.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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" >
  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: 20rpx;
  37. // padding-left: 25rpx;
  38. .tit{
  39. // margin-bottom: 15px;
  40. display: flex;
  41. justify-content: space-between;
  42. // padding-right: 25rpx;
  43. padding: 40rpx 30rpx;
  44. }
  45. .scroll-view_H {
  46. white-space: nowrap;
  47. // margin-left: 20rpx;
  48. }
  49. .scroll-view_y{
  50. // padding-right: 25rpx;
  51. }
  52. }
  53. </style>