Merge remote-tracking branch 'origin/master'
| | |
| | | width: 150px; |
| | | height: 150px |
| | | } |
| | | |
| | | .pam-avatar>img { |
| | | width: 100%; |
| | | object-position: center top; |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | .pam-consultant-carousel { |
| | | padding: 0 10px; |
| | | margin: 0 -10px; |
| | | |
| | | .pam-quickFilter-carousel { |
| | | .el-carousel__container { |
| | | .el-carousel__item { |
| | | max-width: 336px; |
| | | width: 100%; |
| | | box-shadow: 0 0 6px #00000029; |
| | | border-radius: 10px; |
| | |
| | | |
| | | @media (min-width: 768px) { |
| | | .el-carousel__container { |
| | | transform: translateX(27%); |
| | | transform: translateX(30%); |
| | | .el-carousel__item { |
| | | max-width: 336px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | import Router from 'vue-router'; |
| | | |
| | | export const service = axios.create({ |
| | | baseURL: 'http://localhost:8080/api' |
| | | baseURL: process.env.BASE_URL |
| | | }) |
| | | |
| | | service.interceptors.request.use(function (config: AxiosRequestConfig) { |
| | |
| | | <el-col :xs="22" :sm="23"> |
| | | <el-row type="flex"> |
| | | <el-col class="flex_column" :xs="5" :sm="3"> |
| | | <el-avatar |
| | | <UiAvatar |
| | | :size="50" |
| | | :src="agentInfo.img" |
| | | class="cursor--pointer" |
| | | @click.native="showAgentDetail(agentInfo.agentNo);" |
| | | ></el-avatar> |
| | | :fileName="agentInfo.img" |
| | | @click.native="showAgentDetail(agentInfo.agentNo)" |
| | | ></UiAvatar> |
| | | <div class="satisfaction"> |
| | | <i class="icon-star pam-icon icon--yellow satisfaction"></i> |
| | | <span>{{agentInfo.avgScore }}</span> |
| | |
| | | :key="index" |
| | | > |
| | | <div class="consultantCardStyle" > |
| | | <el-avatar class="mb-10" :size="80" :src="agentInfo.img"></el-avatar> |
| | | <UiAvatar :size="80" :fileName="agentInfo.img" class="mb-10"></UiAvatar> |
| | | <div class="name">{{agentInfo.name}}</div> |
| | | <div> |
| | | <i class="icon-star pam-icon icon--yellow"></i> |
| | |
| | | :autoplay="false" |
| | | indicator-position="none" |
| | | arrow="never" |
| | | class="pam-consultant-carousel" |
| | | class="pam-quickFilter-carousel" |
| | | ref="carouselRef" |
| | | > |
| | | <el-carousel-item |
| | |
| | | @touchstart="touchStart" |
| | | @touchend="moveCard" |
| | | > |
| | | <el-avatar |
| | | <UiAvatar |
| | | :size="200" |
| | | class="mx-auto cursor--pointer" |
| | | :fileName="item.img" |
| | | class="mx-auto" |
| | | @click.native="showAgentDetail(item.agentNo)" |
| | | :src="item.img" |
| | | /> |
| | | ></UiAvatar> |
| | | <div class="mdTxt mt-30 mb-30 text--center">{{item.name}}(伯æ¨ä¿éªç¶ç´äºº)</div> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | |
| | | border-radius: 50px; |
| | | background-color: $LIGHT_GREY; |
| | | color: $CORAL; |
| | | z-index: 2; |
| | | cursor: pointer; |
| | | |
| | | &:before { |
| | |
| | | } |
| | | } |
| | | |
| | | .pam-right-arrow { |
| | | &:before { |
| | | margin-left: 15px; |
| | | } |
| | | } |
| | | |
| | | .pam-left-arrow { |
| | | &:before { |
| | | .pam-left-arrow:before { |
| | | margin-left: 25px; |
| | | } |
| | | |
| | | .pam-right-arrow:before { |
| | | margin-left: 15px; |
| | | } |
| | | |
| | | .arrow-right-position { |
| | | top: 50%; |
| | | right: -60px; |
| | | right: -40px; |
| | | transform: translateY(-50%); |
| | | z-index: 3; |
| | | } |
| | | |
| | | .arrow-left-position { |
| | | top: 50%; |
| | | left: -60px; |
| | | left: -40px; |
| | | transform: translateY(-50%); |
| | | z-index: 3; |
| | | } |
| | | |
| | | .relative { |
¤ñ¹ï·sÀÉ®× |
| | |
| | | <template> |
| | | <el-avatar |
| | | :size="size" |
| | | :src="imgSrc" |
| | | class="pam-avatar cursor--pointer" |
| | | ></el-avatar> |
| | | </template> |
| | | |
| | | <script lang="ts"> |
| | | import { Vue, Component, Prop } from 'nuxt-property-decorator'; |
| | | |
| | | @Component |
| | | export default class UiAvatar extends Vue { |
| | | @Prop() size!: number; |
| | | @Prop() fileName!: string; |
| | | |
| | | get imgSrc() { |
| | | return process.env.BASE_URL + '/consultant/avatar/' + this.fileName; |
| | | } |
| | | } |
| | | </script> |
| | |
| | | document.documentElement.scrollTop = 0; |
| | | } |
| | | } |
| | | }, |
| | | env: { |
| | | BASE_URL: 'http://localhost:8080/api' |
| | | } |
| | | } |
| | |
| | | <el-row |
| | | type="flex" |
| | | justify="center"> |
| | | <el-avatar |
| | | size="large" |
| | | src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"> |
| | | </el-avatar> |
| | | <UiAvatar :size="150" :fileName="agentInfo.image"></UiAvatar> |
| | | </el-row> |
| | | |
| | | <el-row |