-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
se realiza cambios de diseno y correccion de errores visuales
- Loading branch information
Showing
20 changed files
with
265 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,26 @@ | ||
<nb-layout justify | ||
><nb-layout-header> | ||
<nb-layout-column> | ||
<div class="flex-wrap space-x-3 position"> | ||
<button | ||
outline | ||
nbButton | ||
[nbContextMenu]="items" | ||
nbContextMenuTag="context-menu" | ||
> | ||
Créditos | ||
</button> | ||
<button | ||
outline | ||
nbButton | ||
[nbContextMenu]="itemsAhorros" | ||
nbContextMenuTag="context-menu" | ||
> | ||
Ahorros | ||
</button> | ||
</div> | ||
</nb-layout-column> | ||
<nb-layout justify> | ||
<nb-layout-header> | ||
<div class="flex w-full justify-center space-x-6"> | ||
<button outline nbButton [nbContextMenu]="items" nbContextMenuTag="context-menu" [ngClass]="{ 'btn' : esCredito }"> | ||
Créditos | ||
</button> | ||
<button outline nbButton [nbContextMenu]="itemsAhorros" nbContextMenuTag="context-menu" [ngClass]="{ 'btn' : esAhorros }"> | ||
Ahorros | ||
</button> | ||
</div> | ||
</nb-layout-header> | ||
|
||
<nb-layout-column> | ||
<router-outlet></router-outlet> | ||
</nb-layout-column> | ||
<nb-layout-footer>Contact us</nb-layout-footer> | ||
|
||
<nb-layout-footer class="text-center text-xs"> | ||
AVISO LEGAL. El servicio que ofrece la COOPERATIVA para efectos de simulación de ahorro y créditos | ||
es de carácter eminentemente ilustrativo e informativo, brindando a sus asociados la posibilidad de formarse una | ||
idea cercana de las condiciones a las que podría acceder a nuestros servicios de ahorro y crédito, sin embargo, | ||
tanto el efectivo otorgamiento de un crédito como las reales y definitivas condiciones del mismo, dependerán | ||
enteramente de las políticas de otorgamiento de crédito que tiene vigente la COOPERATIVA, por lo que los resultados | ||
de la simulación no son vinculantes para ésta en cuanto tener que otorgar un crédito o mantener los resultados que | ||
arroje la simulación | ||
</nb-layout-footer> | ||
</nb-layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import { CurrencyPipe } from '@angular/common'; | ||
import { Component, Input } from '@angular/core'; | ||
import { FormBuilder } from '@angular/forms'; | ||
import { NbDialogService } from '@nebular/theme'; | ||
|
@@ -8,43 +9,54 @@ import { EnviarCorreoPage } from './../../components/enviar-correo/enviar-correo | |
selector: 'app-informacion-credito', | ||
templateUrl: './informacion-credito.component.html', | ||
styleUrls: ['./informacion-credito.component.css'], | ||
providers: [CurrencyPipe] | ||
}) | ||
export class InformacionCreditoComponent { | ||
@Input() valorCuota!: number; | ||
@Input() title!: any; | ||
@Input() intereses!: any; | ||
@Input() interesesEA!: any; | ||
@Input() TotalAhorro!: any; | ||
@Input() TotalCredito!: any; | ||
@Input() tipoSolicitud!: any; | ||
|
||
_Tem: number = 1; | ||
|
||
// form!: FormGroup; | ||
constructor( | ||
private formBuilder: FormBuilder, | ||
private emailService: EmailService, | ||
private dialogService: NbDialogService | ||
private dialogService: NbDialogService, | ||
private currencyPipe: CurrencyPipe | ||
) { | ||
// this.form = this.formBuilder.group({ | ||
// NombreCliente: ['', [Validators.required]], | ||
// emailCliente: ['', [Validators.required, Validators.email]], | ||
// TelCel: ['', [Validators.required, Validators.maxLength(256)]], | ||
// }); | ||
|
||
} | ||
|
||
// onClickContacto(): void { | ||
// const { NombreCliente, emailCliente, TelCel } = this.form.value; | ||
// this.emailService | ||
// .send({ | ||
// to: '[email protected]', | ||
// params: { | ||
// nombre_contacto: NombreCliente, | ||
// email_contacto: emailCliente, | ||
// telefono_contacto: TelCel, | ||
// }, | ||
// }) | ||
// .then(console.log); | ||
// } | ||
get informacion() { | ||
if (this.title === 'Informción Crédito') { | ||
return { | ||
titleLabel: 'Valor de la cuota', | ||
title: this.valorCuota, | ||
footerFirstLabel: 'Interés mensuales' , | ||
footerFirstValue: `${this.intereses}%`, | ||
footerSecondLabel: 'Tasa efectiva anual', | ||
footerSecondValue: this.interesesEA, | ||
footerThirdLabel: 'Pago total del crédito', | ||
footerThirdValue: this.toCurrency(this.TotalCredito), | ||
} | ||
} else { | ||
return { | ||
titleLabel: 'Valor de la ganacia', | ||
title: this.TotalAhorro, | ||
footerFirstLabel: '% Tasa EA', | ||
footerFirstValue: `${this.intereses}%`, | ||
footerSecondLabel: 'Tasa efectiva anual', | ||
footerSecondValue: this.toCurrency(this.valorCuota), | ||
} | ||
|
||
} | ||
} | ||
|
||
|
||
open(): void { | ||
this.dialogService.open(EnviarCorreoPage, { | ||
autoFocus: true, | ||
|
@@ -54,4 +66,8 @@ export class InformacionCreditoComponent { | |
} | ||
}); | ||
} | ||
|
||
private toCurrency(value: number): string { | ||
return this.currencyPipe.transform(value) || ''; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.