| | |
| | | </el-checkbox-group> |
| | | </div> |
| | | <!-------------------- 年資 --------------------> |
| | | <div class="quickBtnBlock pam-radio-group" |
| | | <div class="quickBtnBlock" |
| | | v-else-if="questionOption.name === 'seniority'" |
| | | > |
| | | <div |
| | | v-for="(i, index) in questionOption.detail" |
| | | :key="index" |
| | | class="pam-radio" |
| | | <el-radio-group |
| | | class="pam-quickFilter-radio pam-radio-group" |
| | | v-model="pickedItem.seniority" |
| | | > |
| | | <input |
| | | :id="i.value" |
| | | type="radio" |
| | | name="seniority" |
| | | :value="i.value" |
| | | class="el-radio-input" |
| | | v-model="pickedItem.seniority" |
| | | > |
| | | <label |
| | | :for="i.value" |
| | | class="el-radio-label" |
| | | <el-radio |
| | | v-for="(i, index) in questionOption.detail" |
| | | :key="index" |
| | | :label="i.value" |
| | | :class="i.className" |
| | | > |
| | | <p>{{i.name}}</p> |
| | | <p class="subtitle">{{i.subTitle}}</p> |
| | | </label> |
| | | </div> |
| | | <div>{{i.name}}</div> |
| | | <div class="subtitle">{{i.subTitle}}</div> |
| | | </el-radio> |
| | | </el-radio-group> |
| | | </div> |
| | | <!-------------------- 性別 --------------------> |
| | | <div class="quickBtnBlock" |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | ////////////////////////////////////////////////////////////////// |
| | | private getGender(): string { |
| | | return this.filterSingleSelected('gender'); |
| | |
| | | |
| | | .pam-radio-group { |
| | | height: 240px; |
| | | |
| | | .pam-radio { |
| | | width: 48%; |
| | | height: 110px; |
| | | |
| | | .el-radio-input { |
| | | display: none; |
| | | } |
| | | |
| | | .el-radio-label { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | align-items: center; |
| | | width: 100%; |
| | | height: 100%; |
| | | box-shadow: 0 0 6px #22222229; |
| | | border-radius: 10px; |
| | | -webkit-tap-highlight-color: transparent; |
| | | font-size: 20px; |
| | | font-weight: bold; |
| | | color: $PRIMARY_BLACK; |
| | | background-size: cover; |
| | | background-position: center; |
| | | background-repeat: no-repeat; |
| | | cursor: pointer; |
| | | |
| | | .subtitle { |
| | | @extend .smTxt_bold; |
| | | color: $PRUDENTIAL_GREY; |
| | | } |
| | | |
| | | &.btn_unlimited { |
| | | background-image: url('~/assets/images/quickFilter/btn_unlimited.svg'); |
| | | } |
| | | |
| | | &.btn_senior { |
| | | background-image: url('~/assets/images/quickFilter/btn_senior.svg'); |
| | | } |
| | | |
| | | &.btn_young { |
| | | background-image: url('~/assets/images/quickFilter/btn_young.svg'); |
| | | } |
| | | } |
| | | |
| | | .el-radio-input:checked ~ .el-radio-label { |
| | | background-color: $PEACH; |
| | | color: $PRIMARY_WHITE; |
| | | .subtitle { |
| | | color: $PRIMARY_WHITE; |
| | | font-weight: lighter; |
| | | } |
| | | } |
| | | } |
| | | flex-wrap: wrap; |
| | | } |
| | | |
| | | </style> |