保誠-保戶業務員媒合平台
Mila
2021-11-17 89f7eba16f36d75e11c2b49e3ea1624787203606
PAMapp/components/Consultant/ConsultantSwiper.vue
@@ -35,7 +35,7 @@
    @Prop() agents!: Consultants[];
    swiperOptions: SwiperOptions = {
        loop: true,
      loop: false,
        slideToClickedSlide: false,
        navigation: {
          nextEl: '.swiper-button-next',
@@ -44,21 +44,19 @@
        breakpoints: {
          320: {
            slidesPerView: 3,
            slidesPerGroup: 3,
            spaceBetween: 3
          },
          768: {
            slidesPerView: 6,
            slidesPerGroup: 6,
            spaceBetween: 3
          }
        }
    }
    clkItem(loopIndex: number, realIndex: number) {
      const agentNo = this.agents[realIndex].agentNo;
      this.$router.push(`/agentInfo/${agentNo}`);
      console.log(loopIndex, realIndex, 'clkItem')
      const agentNo = this.agents[loopIndex].agentNo;
      this.$router.push(`/agentInfo/${agentNo}`);
    }
}