保誠-保戶業務員媒合平台
wayne
2021-11-12 505f666d3ecf3688778c079a8bbfb366d695cf22
PAMapp/components/Consultant/ConsultantSwiper.vue
@@ -14,7 +14,7 @@
              <div class="name">{{agentInfo.name}}</div>
              <div>
                <i class="icon-star pam-icon icon--yellow"></i>
                <span class="satisfaction">{{agentInfo.satisfaction}}</span>
                <span class="satisfaction">{{agentInfo.avgScore}}</span>
              </div>
          </div>
        </swiper-slide>
@@ -28,11 +28,11 @@
<script lang="ts">
import { Vue, Component, Prop } from 'vue-property-decorator';
import { SwiperOptions } from 'swiper';
import { Agents } from '~/plugins/api/home'
import { Consultants } from '~/assets/ts/api/consultant'
@Component
export default class UiSwiper extends Vue {
    @Prop() agents!: Agents[];
    @Prop() agents!: Consultants[];
    swiperOptions: SwiperOptions = {
        loop: true,
@@ -56,7 +56,8 @@
    }
    clkItem(loopIndex: number, realIndex: number) {
      this.$router.push('/agentInfo');
      const agentNo = this.agents[realIndex].agentNo;
      this.$router.push(`/agentInfo/${agentNo}`);
      console.log(loopIndex, realIndex, 'clkItem')
    }