123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <template>
- <view class="view_x_case">
- <view class="tit">
- <view class="" >
- <slot name="title"></slot>
- </view>
- <view class="" style="display: flex; align-items: center;">
- <slot name="lookMore"></slot>
- <!-- <text style="color:#999999;font-size: 14px;">查看更多</text> -->
- <uni-icons type="forward" color="#ccc"></uni-icons>
- </view>
- </view>
-
- <!-- 首页精选活动类 -->
- <scroll-view class="scroll-view_H" scroll-x="true" :enhanced="true" :show-scrollbar="false">
- <slot name="activeBlock"></slot>
- </scroll-view>
-
- <!-- 首页教研室活动类 -->
- <!-- <scroll-view class="scroll-view_y" scroll-y="true"> -->
- <slot name="teaching"></slot>
- <!-- </scroll-view> -->
- </view>
- </template>
- <script>
- export default {
- name:"view_x_case",
- data() {
- return {
-
- };
- }
- }
- </script>
- <style lang="scss">
- .view_x_case{
- width: 750rpx;
- background-color: #fff;
- // margin-bottom: 50rpx;
- // padding-left: 25rpx;
- .tit{
- // margin-bottom: 15px;
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- // padding-right: 25rpx;
- padding: 40rpx 30rpx;
- padding-bottom: 20rpx;
- }
- .scroll-view_H {
- white-space: nowrap;
- // margin-left: 20rpx;
- }
- .scroll-view_y{
- // padding-right: 25rpx;
- }
- }
- </style>
|