| | |
| | | get notScoreAppointmentYet(): boolean { |
| | | const isAppointment = !!this.agentInfo['appointmentStatus']; |
| | | if (!isAppointment) return false; |
| | | return !this.agentInfo['appointmentScore']; |
| | | return this.agentInfo['appointmentStatus'] !== 'contacted' ? !this.agentInfo['appointmentScore'] : false; |
| | | } |
| | | |
| | | get isAppointment(): boolean { |
| | |
| | | if (this.agentInfo['appointmentStatus'] === 'reserved') { |
| | | return '已預約'; |
| | | } |
| | | if (this.agentInfo['appointmentStatus'] === 'done') { |
| | | return '已成交'; |
| | | } |
| | | if (this.agentInfo['appointmentStatus'] === 'closed') { |
| | | return '未成交'; |
| | | } |
| | | } else { |
| | | if (this.agentInfo.contactStatus === 'contacted') { |
| | | return '已聯絡'; |
| | |
| | | } |
| | | if (this.agentInfo['appointmentStatus'] === 'reserved') { |
| | | return 'reservedBtn'; |
| | | } |
| | | if (this.agentInfo['appointmentStatus'] === 'done') { |
| | | return 'doneBtn'; |
| | | } |
| | | if (this.agentInfo['appointmentStatus'] === 'closed') { |
| | | return 'closedBtn'; |
| | | } |
| | | } else { |
| | | if (this.agentInfo.contactStatus === 'contacted') { |
| | |
| | | } |
| | | } |
| | | |
| | | .doneBtn { |
| | | color: $BEIGE; |
| | | border-color: $BEIGE; |
| | | |
| | | &:focus { |
| | | color: $PRIMARY_WHITE; |
| | | background-color: $BEIGE; |
| | | opacity: 0.5; |
| | | } |
| | | } |
| | | |
| | | .closedBtn { |
| | | color: $PRUDENTIAL_GREY; |
| | | border-color: $PRUDENTIAL_GREY; |
| | | |
| | | &:focus { |
| | | color: $PRIMARY_WHITE; |
| | | background-color: $PRUDENTIAL_GREY; |
| | | opacity: 0.5; |
| | | } |
| | | } |
| | | |
| | | .updateTime { |
| | | font-size: 12px; |
| | | font-weight: bold; |