Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
appcocha2019ios
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Juan Pablo
appcocha2019ios
Commits
88dab287
Commit
88dab287
authored
Jun 19, 2019
by
metalvarez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
soporte para multiples consulados
parent
70582335
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
71 deletions
+78
-71
src/pages/usefulinfo/usefulinfo.html
src/pages/usefulinfo/usefulinfo.html
+46
-55
src/pages/usefulinfo/usefulinfo.ts
src/pages/usefulinfo/usefulinfo.ts
+32
-16
No files found.
src/pages/usefulinfo/usefulinfo.html
View file @
88dab287
...
@@ -116,61 +116,52 @@
...
@@ -116,61 +116,52 @@
</ion-row>
</ion-row>
<ion-row
>
<div
*ngFor=
"let consulado of consulados"
>
<p
class=
"title1"
>
{{nombre}}
</p>
<ion-row
>
</ion-row>
<p
class=
"title1"
>
{{consulado.nombre}}
</p>
</ion-row>
<ion-row
class=
"border oddcolor"
>
<ion-row
class=
"border oddcolor"
>
<ion-col
col-1
col-xl-1
class=
"iconfix"
>
<!-- {{phone | json} -->
<img
src=
"assets/imgs/Marqueta/telephone-handle-silhouette.png"
>
<ion-col
col-1
col-xl-1
class=
"iconfix"
>
</ion-col>
<img
src=
"assets/imgs/Marqueta/telephone-handle-silhouette.png"
>
</ion-col>
<ion-col
col-5
col-xl-5
class=
"textclr"
>
<ion-col
col-5
col-xl-5
class=
"textclr"
>
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 consulado.telephone"
>
<ion-grid
*ngFor=
"let phone of telephone"
>
<ion-row
class=
"ionlbl"
>
<ion-row
class=
"ionlbl"
>
{{phone.numero}}
{{phone.numero}}
</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
class=
"iconfix"
>
<ion-row
class=
"border evencolor"
>
<img
src=
"assets/imgs/Marqueta/maps-and-flags.png"
>
</ion-col>
<ion-col
col-1
col-xl-1
class=
"iconfix"
>
<ion-col
col-5
col-xl-5
class=
"textclr"
>
<img
src=
"assets/imgs/Marqueta/maps-and-flags.png"
>
Direccion consulado
</ion-col>
</ion-col>
<ion-col
col-6
col-xl-6
class=
"ionlbl"
>
<ion-col
col-5
col-xl-5
class=
"textclr"
>
{{consulado.direccion}}
Direccion consulado
</ion-col>
</ion-col>
</ion-row>
<ion-col
col-6
col-xl-6
class=
"ionlbl"
>
<ion-row
class=
"border oddcolor"
>
{{direccion}}
<ion-col
col-1
col-xl-1
class=
"iconfix"
>
</ion-col>
<img
src=
"assets/imgs/Marqueta/close-envelope.png"
>
</ion-col>
</ion-row>
<ion-col
col-5
col-xl-5
class=
"textclr"
>
correo electrónico
<ion-row
class=
"border oddcolor"
>
</ion-col>
<ion-col
col-6
col-xl-6
class=
"ionlbl"
>
<ion-col
col-1
col-xl-1
class=
"iconfix"
>
{{consulado.email}}
<img
src=
"assets/imgs/Marqueta/close-envelope.png"
>
</ion-col>
</ion-col>
</ion-row>
</div>
<ion-col
col-5
col-xl-5
class=
"textclr"
>
correo electrónico
</ion-col>
<ion-col
col-6
col-xl-6
class=
"ionlbl"
>
{{email}}
</ion-col>
</ion-row>
<ion-row
class=
"border evencolor"
>
<ion-row
class=
"border evencolor"
>
...
...
src/pages/usefulinfo/usefulinfo.ts
View file @
88dab287
...
@@ -44,6 +44,7 @@ export class UsefulinfoPage {
...
@@ -44,6 +44,7 @@ export class UsefulinfoPage {
countrie
:
any
;
countrie
:
any
;
ports
:
Port
[];
ports
:
Port
[];
port
:
Port
;
port
:
Port
;
consulados
:
any
=
[];
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
public
storage
:
Storage
,
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
public
storage
:
Storage
,
public
restProvider
:
RestProvider
,
private
loader
:
Loader
)
{
public
restProvider
:
RestProvider
,
private
loader
:
Loader
)
{
...
@@ -98,24 +99,39 @@ export class UsefulinfoPage {
...
@@ -98,24 +99,39 @@ export class UsefulinfoPage {
}
}
portChange
(
event
:
{
component
:
SelectSearchableComponent
,
value
:
any
})
{
portChange
(
event
:
{
component
:
SelectSearchableComponent
,
value
:
any
})
{
this
.
error
=
''
;
this
.
consulados
=
[];
this
.
countrie
=
event
.
value
.
nombre
;
this
.
error
=
''
;
for
(
var
i
=
0
;
i
<
this
.
informations
.
length
;
i
++
)
{
this
.
countrie
=
event
.
value
.
nombre
;
if
(
this
.
ports
[
i
].
nombre
===
event
.
value
.
nombre
)
{
for
(
var
i
=
0
;
i
<
this
.
informations
.
length
;
i
++
)
{
this
.
selectedcountry
=
true
;
if
(
this
.
ports
[
i
].
nombre
===
event
.
value
.
nombre
)
{
this
.
datoutils
=
this
.
ports
[
i
].
datosutiles
;
this
.
selectedcountry
=
true
;
this
.
moneda
=
this
.
datoutils
.
moneda
;
this
.
datoutils
=
this
.
ports
[
i
].
datosutiles
;
this
.
capital
=
this
.
datoutils
.
capital
;
this
.
moneda
=
this
.
datoutils
.
moneda
;
this
.
idioma
=
this
.
datoutils
.
idioma
;
this
.
capital
=
this
.
datoutils
.
capital
;
this
.
nombre
=
this
.
datoutils
.
consulados
.
nombre
;
this
.
idioma
=
this
.
datoutils
.
idioma
;
this
.
direccion
=
this
.
datoutils
.
consulados
.
direccion
;
if
(
Array
.
isArray
(
this
.
datoutils
.
consulados
))
{
this
.
email
=
this
.
datoutils
.
consulados
.
email
;
this
.
datoutils
.
consulados
.
forEach
(
consulado
=>
{
this
.
telephone
=
this
.
datoutils
.
consulados
.
telefonos
;
this
.
consulados
.
push
({
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
{
}
console
.
log
(
"
else
"
);
}
}
}
}
ionViewDidLoad
()
{
ionViewDidLoad
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment