保誠-保戶業務員媒合平台
wayne
2022-02-17 a3716f72066d25d745f4d5103ff23a553c3e102b
PAMapp/components/QuickFilter/QuickFilterConsultantList.vue
@@ -19,7 +19,7 @@
            >
                <UiAvatar
                    :size="200"
                    :fileName="item.img"
                    :agentNo="item.agentNo"
                    class="mx-auto"
                    @click.native="showAgentDetail(item.agentNo)"
                ></UiAvatar>
@@ -31,7 +31,7 @@
                        <div class="smTxt_bold mb-10 text--prudential_grey">服務資歷</div>
                        <div class="mb-10">{{item.seniority}}</div>
                    </el-col>
                    <el-col :span="12">
                    <el-col :span="12" v-if="!hideReviews">
                        <div class="smTxt_bold mb-10 text--prudential_grey">客戶滿意度</div>
                        <div>
                            <i class="icon-star pam-icon icon--yellow "></i>
@@ -79,20 +79,25 @@
</template>
<script lang="ts">
import { Consultant } from '~/shared/models/consultant.model';
import { ElCarousel } from 'element-ui/types/carousel';
import { hideReviews } from '~/shared/const/hide-reviews';
import { Vue, Component, Prop } from 'vue-property-decorator';
import { Consultant } from '~/assets/ts/models/consultant.model';
@Component
export default class QuickFilterConsultantList extends Vue {
    @Prop() consultantList!: Consultant[];
    @Prop()
    consultantList!: Consultant[];
    isVisiblePopUp = false;
    popUpTxt = '成功加入顧問清單';
    startPosition = 0;
    endPosition = 0;
    startYPosition = 0;
    endYPosition = 0;
    hideReviews = hideReviews ;
    //////////////////////////////////////////////////////////////////
    moveStart(event: TouchEvent) {
        this.startPosition = event.changedTouches[0].clientX;
@@ -114,13 +119,7 @@
        }
    }
    nextCard() {
        (this.$refs.carouselRef as ElCarousel).next();
    }
    prevCard() {
        (this.$refs.carouselRef as ElCarousel).prev();
    }
    //////////////////////////////////////////////////////////////////
    openPopUp(txt: string) {
        this.popUpTxt = txt;
@@ -130,6 +129,15 @@
    showAgentDetail(agentNo: string): void {
        this.$router.push(`/agentInfo/${agentNo}`);
    }
    nextCard() {
        (this.$refs.carouselRef as ElCarousel).next();
    }
    prevCard() {
        (this.$refs.carouselRef as ElCarousel).prev();
    }
}
</script>
@@ -216,4 +224,4 @@
        }
    }
</style>
</style>