<template>
  <view class="bigBox">
    <Tabs :list='list1' @changeTab="changeTab" :newIndex="current" />
    <view>
      <swiper :current="current" class="swiper" @change="swiperChange">
        <swiper-item>
          <view class="list">
            图片演示
          </view>
        </swiper-item>
        <swiper-item>
          <view class="list">
            视频演示
          </view>
        </swiper-item>
      </swiper>
    </view>
  </view>
</template>

<script>
import Ticket from '@/components/Ticket/index.vue'
import Tabs from '@/components/Tabs/index.vue'
export default {
  components: {Ticket,Tabs},
  data() {
    return {
      list1: [
        {
          name: "图片演示",
        },
        {
          name: "视频演示",
        },
      ],
      nouserList:[],
      current: 0,
      actionIndx:0
    };
  },
  mounted(){
  },
  methods: {
    changeTab(current) {
      this.current = current;
    },
    swiperChange(val){
      this.current = val.detail.current;
    }
  },
};
</script>

<style lang="scss" scoped>
.bigBox {
  .swiper {
    background: #F8F8F8;
    height: calc(100vh - 64rpx);
    .list{
      height: 100%;
      padding: 0rpx 32rpx;
      overflow-y: scroll;
    }
  }
}
</style>
