|
|
@@ -28,10 +28,10 @@ export interface ProductInterface {
|
|
|
img: null;
|
|
|
}
|
|
|
@Component({
|
|
|
- selector: 'app-linea',
|
|
|
- templateUrl: './linea.component.html',
|
|
|
- styleUrls: ['./linea.component.css'],
|
|
|
- standalone: false
|
|
|
+ selector: 'app-linea',
|
|
|
+ templateUrl: './linea.component.html',
|
|
|
+ styleUrls: ['./linea.component.css'],
|
|
|
+ standalone: false
|
|
|
})
|
|
|
export class LineaComponent implements OnInit {
|
|
|
public typeLine: string = '';
|
|
|
@@ -42,7 +42,7 @@ export class LineaComponent implements OnInit {
|
|
|
public aplicationOptions: any[] = [];
|
|
|
public linea: any = "";
|
|
|
public producto: any = "";
|
|
|
- private basicurlimg = 'https://www.atcfans.com/ALP/';
|
|
|
+ private basicurlimg = 'ALP/';
|
|
|
constructor(
|
|
|
private route: ActivatedRoute,
|
|
|
private router: Router,
|
|
|
@@ -56,7 +56,7 @@ export class LineaComponent implements OnInit {
|
|
|
|
|
|
const tipo: any = params.get('tipo');
|
|
|
this.producto = params.get('tipo');
|
|
|
-
|
|
|
+
|
|
|
if (urlTest[1] == 'aplicacion') {
|
|
|
this.linea = params.get('tipo');
|
|
|
this.porAplicacion();
|
|
|
@@ -119,15 +119,16 @@ export class LineaComponent implements OnInit {
|
|
|
this.isLoading = false;
|
|
|
this.imageService.getCategory().subscribe((response: any) => {
|
|
|
for (let index = 0; index < response.length; index++) {
|
|
|
- this.aplicationOptions.push({name: response[index].NOMBRE, link: response[index].ID, URLB: this.basicurlimg+response[index].URLB, img: this.basicurlimg+response[index].URLB });
|
|
|
+ this.aplicationOptions.push({ name: response[index].NOMBRE, link: response[index].ID, URLB: this.basicurlimg + response[index].URLB, img: this.basicurlimg + response[index].URLB });
|
|
|
}
|
|
|
});
|
|
|
break;
|
|
|
default:
|
|
|
this.imageService.getInfoBanner(tipo).subscribe((response: any) => {
|
|
|
- if(response.length > 0){
|
|
|
+ if (response.length > 0) {
|
|
|
this.typeLine = response[0]['NOMBRE'];
|
|
|
- this.typeBann = this.basicurlimg+response[0]['URLB'];
|
|
|
+ this.typeBann = this.basicurlimg + response[0]['URLB'];
|
|
|
+ console.log(this.typeBann);
|
|
|
} else {
|
|
|
this.typeLine = 'Categoría Desconocida';
|
|
|
this.typeBann = 'assets/img/bg-com.jpg';
|