| | |
| | | @Prop() agents!: Consultants[]; |
| | | |
| | | swiperOptions: SwiperOptions = { |
| | | loop: true, |
| | | loop: false, |
| | | slideToClickedSlide: false, |
| | | navigation: { |
| | | nextEl: '.swiper-button-next', |
| | |
| | | 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}`); |
| | | } |
| | | |
| | | } |