保誠-保戶業務員媒合平台
Mila
2021-11-25 c9c705cc198b2da645a3a404ac47ad9e17df4c93
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}`);
    }
}