Commit 413cf87c authored by metalvarez's avatar metalvarez

soporte para multiples consulados

parent 5cd913bb
#Wed Jun 12 12:06:32 VET 2019 #Wed Jun 19 16:35:52 VET 2019
base.0=/home/victor/Proyectos/IonicAngular/appcocha2019/platforms/android/app/build/intermediates/transforms/dexMerger/debug/0 base.0=/home/victor/Proyectos/IonicAngular/appcocha2019/platforms/android/app/build/intermediates/transforms/dexMerger/debug/0
path.1=classes2.dex path.1=classes2.dex
renamed.1=classes2.dex renamed.1=classes2.dex
......
[{"name":"resources","index":0,"scopes":["PROJECT","SUB_PROJECTS","EXTERNAL_LIBRARIES"],"types":["RESOURCES"],"format":"JAR","present":true}] [{"name":"resources","index":0,"scopes":["EXTERNAL_LIBRARIES","SUB_PROJECTS","PROJECT"],"types":["RESOURCES"],"format":"JAR","present":true}]
\ No newline at end of file \ No newline at end of file
[{"name":"resources","index":0,"scopes":["PROJECT","SUB_PROJECTS","EXTERNAL_LIBRARIES"],"types":["NATIVE_LIBS"],"format":"DIRECTORY","present":true}] [{"name":"resources","index":0,"scopes":["EXTERNAL_LIBRARIES","SUB_PROJECTS","PROJECT"],"types":["NATIVE_LIBS"],"format":"DIRECTORY","present":true}]
\ No newline at end of file \ No newline at end of file
<!--
Generated template for the UsefulinfoPage page.
See http://ionicframework.com/docs/components/#navigation for more info on
Ionic pages and navigation.
-->
<ion-content scrollY="true" style="background-color: #F3F4F6" *ngIf="informations"> <ion-content scrollY="true" style="background-color: #F3F4F6" *ngIf="informations">
<ion-grid> <ion-grid>
<ion-row> <ion-row>
...@@ -25,12 +18,6 @@ ...@@ -25,12 +18,6 @@
<ion-grid > <ion-grid >
<ion-row class="borderdrop"> <ion-row class="borderdrop">
<ion-col col-12 col-xl-12> <ion-col col-12 col-xl-12>
<!-- <ion-item class="drpdown">
<ion-label>Seleccione país</ion-label>
<ion-select [(ngModel)]="country" (ionChange)="onCountryChange(country)">
<ion-option *ngFor="let country of this.informations" [value]="country.nombre">{{country.nombre}}</ion-option>
</ion-select>
</ion-item> -->
<ion-item> <ion-item>
<ion-label>Seleccione país</ion-label> <ion-label>Seleccione país</ion-label>
...@@ -51,10 +38,6 @@ ...@@ -51,10 +38,6 @@
</div> </div>
<br/> <br/>
</ion-grid> </ion-grid>
<!-- {{country.nombre}} -->
<!-- {{countrie}}
{{this.informations | json}} -->
<!-- <ion-grid *ngIf="country.nombre == countrie"> -->
<ion-grid *ngIf="selectedcountry"> <ion-grid *ngIf="selectedcountry">
<ion-row class="border oddcolor"> <ion-row class="border oddcolor">
<ion-col col-1 col-xl-1 class="iconfix"> <ion-col col-1 col-xl-1 class="iconfix">
...@@ -65,8 +48,6 @@ ...@@ -65,8 +48,6 @@
</ion-col> </ion-col>
<ion-col col-6 col-xl-6 class="ionlbl"> <ion-col col-6 col-xl-6 class="ionlbl">
{{moneda}} {{moneda}}
<!-- <ion-label class="ionlbl">{{informations[0]?.moneda}}</ion-label> -->
<!-- <ion-label class="ionlbl">{{moneda}}</ion-label> -->
</ion-col> </ion-col>
</ion-row> </ion-row>
...@@ -79,8 +60,6 @@ ...@@ -79,8 +60,6 @@
</ion-col> </ion-col>
<ion-col col-6 col-xl-6 class="ionlbl"> <ion-col col-6 col-xl-6 class="ionlbl">
{{capital}} {{capital}}
<!-- <ion-label class="ionlbl">{{informations[1]?.capital}}</ion-label> -->
<!-- <ion-label class="ionlbl">{{capital}}</ion-label> -->
</ion-col> </ion-col>
</ion-row> </ion-row>
...@@ -93,13 +72,11 @@ ...@@ -93,13 +72,11 @@
</ion-col> </ion-col>
<ion-col col-6 col-xl-6 class="ionlbl"> <ion-col col-6 col-xl-6 class="ionlbl">
{{idioma}} {{idioma}}
<!-- <ion-label class="ionlbl">{{informations[2]?.idioma}}</ion-label> -->
<!-- <ion-label class="ionlbl">{{idioma}}</ion-label> -->
</ion-col> </ion-col>
</ion-row> </ion-row>
<div *ngFor="let consulado of consulados">
<ion-row > <ion-row >
<p class="title1">{{nombre}}</p> <p class="title1">{{consulado.nombre}}</p>
</ion-row> </ion-row>
<ion-row class="border oddcolor"> <ion-row class="border oddcolor">
...@@ -111,39 +88,14 @@ ...@@ -111,39 +88,14 @@
Telefono consulado Telefono consulado
</ion-col> </ion-col>
<ion-col col-6 col-xl-6 style="text-align: right;"> <ion-col col-6 col-xl-6 style="text-align: right;">
<ion-grid *ngFor="let phone of telephone"> <ion-grid *ngFor="let phone of consulado.telephone">
<ion-row class="ionlbl" > <ion-row class="ionlbl" >
{{phone.numero}} {{phone.numero}}
<!-- <ion-label class="ionlbl" style="text-align: right;">{{phone.numero}}</ion-label> -->
</ion-row> </ion-row>
</ion-grid> </ion-grid>
</ion-col> </ion-col>
</ion-row> </ion-row>
<!-- <ion-row class="border evencolor">
<ion-col col-1 col-xl-1 >
</ion-col>
<ion-col col-5 col-xl-5>
</ion-col>
<ion-col col-6 col-xl-6>
<ion-input class="iontext" type="text" [(ngModel)]="numtwo"></ion-input>
</ion-col>
</ion-row>
<ion-row class="border oddcolor">
<ion-col col-1 col-xl-1>
</ion-col>
<ion-col col-5 col-xl-5>
</ion-col>
<ion-col col-6 col-xl-6>
<ion-input class="iontext" type="text" [(ngModel)]="numthree"></ion-input>
</ion-col>
</ion-row> -->
<ion-row class="border evencolor"> <ion-row class="border evencolor">
<ion-col col-1 col-xl-1 class="iconfix"> <ion-col col-1 col-xl-1 class="iconfix">
<img src="assets/imgs/Marqueta/maps-and-flags.png"> <img src="assets/imgs/Marqueta/maps-and-flags.png">
...@@ -152,9 +104,7 @@ ...@@ -152,9 +104,7 @@
Direccion consulado Direccion consulado
</ion-col> </ion-col>
<ion-col col-6 col-xl-6 class="ionlbl"> <ion-col col-6 col-xl-6 class="ionlbl">
{{direccion}} {{consulado.direccion}}
<!-- <ion-label class="ionlbl">{{userInfo[1]?.Direccion}}</ion-label> -->
<!-- <ion-label class="ionlbl">{{direccion}}</ion-label> -->
</ion-col> </ion-col>
</ion-row> </ion-row>
...@@ -166,19 +116,16 @@ ...@@ -166,19 +116,16 @@
correo electrónico correo electrónico
</ion-col> </ion-col>
<ion-col col-6 col-xl-6 class="ionlbl"> <ion-col col-6 col-xl-6 class="ionlbl">
{{email}} {{consulado.email}}
<!-- <ion-label class="ionlbl">{{userInfo[2]?.emails[0].email1}}</ion-label> -->
<!-- <ion-label class="ionlbl">{{email}}</ion-label> -->
</ion-col> </ion-col>
</ion-row> </ion-row>
</div>
<ion-row class="border evencolor"> <ion-row class="border evencolor">
<ion-col col-1 col-xl-1 class="iconfix"> <ion-col col-1 col-xl-1 class="iconfix">
</ion-col> </ion-col>
<ion-col col-5 col-xl-5 class="textclr"> <ion-col col-5 col-xl-5 class="textclr">
</ion-col> </ion-col>
<ion-col col-6 col-xl-6> <ion-col col-6 col-xl-6>
<!-- <ion-label class="ionlbl">{{email}}</ion-label> -->
<!-- <ion-label class="ionlbl">{{userInfo[2]?.emails[1].email2}}</ion-label> -->
</ion-col> </ion-col>
</ion-row> </ion-row>
</ion-grid> </ion-grid>
......
...@@ -47,6 +47,7 @@ export class UsefulinfoPage { ...@@ -47,6 +47,7 @@ export class UsefulinfoPage {
datoutils: any; datoutils: any;
matchPais: boolean = false; matchPais: boolean = false;
countrie: any; countrie: any;
consulados: any = [];
ports: Port[]; ports: Port[];
port: Port; port: Port;
...@@ -101,6 +102,7 @@ export class UsefulinfoPage { ...@@ -101,6 +102,7 @@ export class UsefulinfoPage {
} }
portChange(event: { component: SelectSearchableComponent, value: any }) { portChange(event: { component: SelectSearchableComponent, value: any }) {
this.consulados = [];
this.error = ''; this.error = '';
this.countrie = event.value.nombre; this.countrie = event.value.nombre;
for (var i = 0; i < this.informations.length; i++) { for (var i = 0; i < this.informations.length; i++) {
...@@ -110,11 +112,23 @@ export class UsefulinfoPage { ...@@ -110,11 +112,23 @@ export class UsefulinfoPage {
this.moneda = this.datoutils.moneda; this.moneda = this.datoutils.moneda;
this.capital = this.datoutils.capital; this.capital = this.datoutils.capital;
this.idioma = this.datoutils.idioma; this.idioma = this.datoutils.idioma;
this.nombre = this.datoutils.consulados.nombre; if (Array.isArray(this.datoutils.consulados)) {
this.direccion = this.datoutils.consulados.direccion; this.datoutils.consulados.forEach(consulado => {
this.email = this.datoutils.consulados.email; this.consulados.push({
this.telephone = this.datoutils.consulados.telefonos; nombre: consulado.nombre,
direccion: consulado.direccion,
email: consulado.email,
telephone: consulado.telefonos
});
});
} else {
this.consulados.push({
nombre: this.datoutils.consulados.nombre,
direccion: this.datoutils.consulados.direccion,
email: this.datoutils.consulados.email,
telephone: this.datoutils.consulados.telefonos
});
}
} else { } else {
console.log("else"); console.log("else");
......
...@@ -273,7 +273,7 @@ export class RestProvider { ...@@ -273,7 +273,7 @@ export class RestProvider {
getCofiguration() { getCofiguration() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.http.post('https://' + SERVERS.get() + '/api/chat/configuracion', { this.http.post('https://' + SERVERS.get() + '/chat/api/configuracion', {
"idEmpresa": 7, "idEmpresa": 7,
"idSeccion": 1 "idSeccion": 1
}, { }, {
......
This diff is collapsed.
webpackJsonp([10],{549:function(n,l,e){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var u=e(0),a=(e(1),e(25),function(){function n(n,l){this.navCtrl=n,this.navParams=l}return n.prototype.ionViewDidLoad=function(){console.log("ionViewDidLoad SignupPage")},n}()),d=function(){return function(){}}(),o=e(187),t=e(188),i=e(189),r=e(190),s=e(191),m=e(192),c=e(193),p=e(194),f=e(195),g=e(78),v=e(3),b=e(7),R=e(199),F=e(41),h=e(13),M=e(26),C=e(405),y=e(79),L=e(44),P=e(196),_=e(30),E=e(5),N=e(14),w=e(34),D=e(16),z=u["ɵcrt"]({encapsulation:2,styles:[],data:{}});function B(n){return u["ɵvid"](0,[(n()(),u["ɵted"](-1,null,["\n"])),(n()(),u["ɵeld"](1,0,null,null,10,"ion-header",[],null,null,null,null,null)),u["ɵdid"](2,16384,null,0,g.a,[v.a,u.ElementRef,u.Renderer,[2,b.a]],null,null),(n()(),u["ɵted"](-1,null,["\n\n "])),(n()(),u["ɵeld"](4,0,null,null,6,"ion-navbar",[["class","toolbar"]],[[8,"hidden",0],[2,"statusbar-padding",null]],null,null,R.b,R.a)),u["ɵdid"](5,49152,null,0,F.a,[h.a,[2,b.a],[2,M.a],v.a,u.ElementRef,u.Renderer],null,null),(n()(),u["ɵted"](-1,3,["\n "])),(n()(),u["ɵeld"](7,0,null,3,2,"ion-title",[],null,null,null,C.b,C.a)),u["ɵdid"](8,49152,null,0,y.a,[v.a,u.ElementRef,u.Renderer,[2,L.a],[2,F.a]],null,null),(n()(),u["ɵted"](-1,0,["signup"])),(n()(),u["ɵted"](-1,3,["\n "])),(n()(),u["ɵted"](-1,null,["\n\n"])),(n()(),u["ɵted"](-1,null,["\n\n\n"])),(n()(),u["ɵeld"](13,0,null,null,2,"ion-content",[["padding",""]],[[2,"statusbar-padding",null],[2,"has-refresher",null]],null,null,P.b,P.a)),u["ɵdid"](14,4374528,null,0,_.a,[v.a,E.a,N.a,u.ElementRef,u.Renderer,h.a,w.a,u.NgZone,[2,b.a],[2,M.a]],null,null),(n()(),u["ɵted"](-1,1,["\n\n"])),(n()(),u["ɵted"](-1,null,["\n"]))],null,function(n,l){n(l,4,0,u["ɵnov"](l,5)._hidden,u["ɵnov"](l,5)._sbPadding),n(l,13,0,u["ɵnov"](l,14).statusbarPadding,u["ɵnov"](l,14)._hasRefresher)})}var O=u["ɵccf"]("page-signup",a,function(n){return u["ɵvid"](0,[(n()(),u["ɵeld"](0,0,null,null,1,"page-signup",[],null,null,null,B,z)),u["ɵdid"](1,49152,null,0,a,[M.a,D.a],null,null)],null,null)},{},{},[]),S=e(15),V=e(17),j=e(118),k=e(51);e.d(l,"SignupPageModuleNgFactory",function(){return A});var A=u["ɵcmf"](d,[],function(n){return u["ɵmod"]([u["ɵmpd"](512,u.ComponentFactoryResolver,u["ɵCodegenComponentFactoryResolver"],[[8,[o.a,t.a,i.a,r.a,s.a,m.a,c.a,p.a,f.a,O]],[3,u.ComponentFactoryResolver],u.NgModuleRef]),u["ɵmpd"](4608,S.NgLocalization,S.NgLocaleLocalization,[u.LOCALE_ID,[2,S["ɵa"]]]),u["ɵmpd"](4608,V["ɵi"],V["ɵi"],[]),u["ɵmpd"](4608,V.FormBuilder,V.FormBuilder,[]),u["ɵmpd"](512,S.CommonModule,S.CommonModule,[]),u["ɵmpd"](512,V["ɵba"],V["ɵba"],[]),u["ɵmpd"](512,V.FormsModule,V.FormsModule,[]),u["ɵmpd"](512,V.ReactiveFormsModule,V.ReactiveFormsModule,[]),u["ɵmpd"](512,j.a,j.a,[]),u["ɵmpd"](512,j.b,j.b,[]),u["ɵmpd"](512,d,d,[]),u["ɵmpd"](256,k.a,a,[])])})}}); webpackJsonp([10],{547:function(n,l,e){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var u=e(0),a=(e(1),e(25),function(){function n(n,l){this.navCtrl=n,this.navParams=l}return n.prototype.ionViewDidLoad=function(){console.log("ionViewDidLoad SignupPage")},n}()),d=function(){return function(){}}(),o=e(187),t=e(188),i=e(189),r=e(190),s=e(191),m=e(192),c=e(193),p=e(194),f=e(195),g=e(78),v=e(3),b=e(7),R=e(199),F=e(41),h=e(13),M=e(26),C=e(405),y=e(79),L=e(44),P=e(196),_=e(30),E=e(5),N=e(14),w=e(34),D=e(16),z=u["ɵcrt"]({encapsulation:2,styles:[],data:{}});function B(n){return u["ɵvid"](0,[(n()(),u["ɵted"](-1,null,["\n"])),(n()(),u["ɵeld"](1,0,null,null,10,"ion-header",[],null,null,null,null,null)),u["ɵdid"](2,16384,null,0,g.a,[v.a,u.ElementRef,u.Renderer,[2,b.a]],null,null),(n()(),u["ɵted"](-1,null,["\n\n "])),(n()(),u["ɵeld"](4,0,null,null,6,"ion-navbar",[["class","toolbar"]],[[8,"hidden",0],[2,"statusbar-padding",null]],null,null,R.b,R.a)),u["ɵdid"](5,49152,null,0,F.a,[h.a,[2,b.a],[2,M.a],v.a,u.ElementRef,u.Renderer],null,null),(n()(),u["ɵted"](-1,3,["\n "])),(n()(),u["ɵeld"](7,0,null,3,2,"ion-title",[],null,null,null,C.b,C.a)),u["ɵdid"](8,49152,null,0,y.a,[v.a,u.ElementRef,u.Renderer,[2,L.a],[2,F.a]],null,null),(n()(),u["ɵted"](-1,0,["signup"])),(n()(),u["ɵted"](-1,3,["\n "])),(n()(),u["ɵted"](-1,null,["\n\n"])),(n()(),u["ɵted"](-1,null,["\n\n\n"])),(n()(),u["ɵeld"](13,0,null,null,2,"ion-content",[["padding",""]],[[2,"statusbar-padding",null],[2,"has-refresher",null]],null,null,P.b,P.a)),u["ɵdid"](14,4374528,null,0,_.a,[v.a,E.a,N.a,u.ElementRef,u.Renderer,h.a,w.a,u.NgZone,[2,b.a],[2,M.a]],null,null),(n()(),u["ɵted"](-1,1,["\n\n"])),(n()(),u["ɵted"](-1,null,["\n"]))],null,function(n,l){n(l,4,0,u["ɵnov"](l,5)._hidden,u["ɵnov"](l,5)._sbPadding),n(l,13,0,u["ɵnov"](l,14).statusbarPadding,u["ɵnov"](l,14)._hasRefresher)})}var O=u["ɵccf"]("page-signup",a,function(n){return u["ɵvid"](0,[(n()(),u["ɵeld"](0,0,null,null,1,"page-signup",[],null,null,null,B,z)),u["ɵdid"](1,49152,null,0,a,[M.a,D.a],null,null)],null,null)},{},{},[]),S=e(15),V=e(17),j=e(118),k=e(51);e.d(l,"SignupPageModuleNgFactory",function(){return A});var A=u["ɵcmf"](d,[],function(n){return u["ɵmod"]([u["ɵmpd"](512,u.ComponentFactoryResolver,u["ɵCodegenComponentFactoryResolver"],[[8,[o.a,t.a,i.a,r.a,s.a,m.a,c.a,p.a,f.a,O]],[3,u.ComponentFactoryResolver],u.NgModuleRef]),u["ɵmpd"](4608,S.NgLocalization,S.NgLocaleLocalization,[u.LOCALE_ID,[2,S["ɵa"]]]),u["ɵmpd"](4608,V["ɵi"],V["ɵi"],[]),u["ɵmpd"](4608,V.FormBuilder,V.FormBuilder,[]),u["ɵmpd"](512,S.CommonModule,S.CommonModule,[]),u["ɵmpd"](512,V["ɵba"],V["ɵba"],[]),u["ɵmpd"](512,V.FormsModule,V.FormsModule,[]),u["ɵmpd"](512,V.ReactiveFormsModule,V.ReactiveFormsModule,[]),u["ɵmpd"](512,j.a,j.a,[]),u["ɵmpd"](512,j.b,j.b,[]),u["ɵmpd"](512,d,d,[]),u["ɵmpd"](256,k.a,a,[])])})}});
\ No newline at end of file \ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment