|
@@ -424,23 +424,22 @@
|
424
|
424
|
ons.getScriptPage().onInit = function () {
|
425
|
425
|
this.querySelector('ons-toolbar div.center').textContent = this.data.title;
|
426
|
426
|
|
427
|
|
- var info = ``,
|
|
427
|
+ var data = 'Tipo de Artesania: '+ this.data.esp +'<br>',
|
428
|
428
|
mun = this.data.mun,
|
429
|
429
|
tel = this.data.tel,
|
430
|
|
- email = this.data.email,
|
431
|
|
- esp = this.data.esp;
|
|
430
|
+ email = this.data.email;
|
|
431
|
+ console.log("AQUI ES");
|
432
|
432
|
|
433
|
|
- if(mun.trim() != '') {
|
434
|
|
- info = info + `Municipio: ` + mun + `<br>`;
|
|
433
|
+ if(mun.trim() != ""){
|
|
434
|
+ data+='Municipio: '+ mun +'<br>';
|
435
|
435
|
}
|
436
|
|
- if(tel.trim() != '') {
|
437
|
|
- info = info + `Tel\u00e9fono: <a href="tel:+1` + tel + `">` + tel + `</a><br>`;
|
|
436
|
+
|
|
437
|
+ if(email.trim() != "" & email.toUpperCase().trim() != "NO TIENE"){
|
|
438
|
+ data+='Correo Electr\u00f3nico: <a class=\'button\' href=\'mailto: '+ email +'\'><h2 align=\'center\'><p style="color:blue"><u>'+email +'</u></p></h2></a><br>';
|
438
|
439
|
}
|
439
|
|
- if(email.trim() != '') {
|
440
|
|
- info = info + `Correo Electr\u00f3nico: ` + email + `<br>`;
|
441
|
|
- }
|
442
|
|
- if(esp.trim() != '') {
|
443
|
|
- info = info + `Trabaja con: ` + esp + `<br>`;
|
|
440
|
+
|
|
441
|
+ if(tel.trim() != "" ){
|
|
442
|
+ data+='Tel\u00e9fono: <a class=\'button\' href=\'tel: '+ tel +'\'><h2 align=\'center\'><p style="color:blue"><u>'+ tel +'</u></p></h2></a><br>';
|
444
|
443
|
}
|
445
|
444
|
|
446
|
445
|
document.getElementById("all").innerHTML = `${info}`;
|
|
@@ -537,7 +536,7 @@
|
537
|
536
|
<script>
|
538
|
537
|
for (i = 0; i < Madera.length;i++){
|
539
|
538
|
var artesano = ons.createElement(`<ons-list-item class = "artists"
|
540
|
|
- onclick="myNavigator.pushPage('artesano.html', { data: {title: '${Madera[i].Nombre}', mun: '${Madera[i].Municipio}', tel: '${Madera[i]["Telefono1"]}', email: '${Madera[i]["E-mail1"]}', esp: '${Madera[i].Especificaciones1}' } })" tappable>
|
|
539
|
+ onclick="myNavigator.pushPage('artesano.html', { data: {title: '${Madera[i].Nombre}', mun: '${Madera[i].Municipio}', tel: '${Madera[i]["Telefono1"]}', email: '${Madera[i]["E-mail1"]}', redes: '${Madera[i]["E-Commerce1"]}', esp: '${Madera[i].Especificaciones1}' } })" tappable>
|
541
|
540
|
<div>${Madera[i].Nombre}</div>
|
542
|
541
|
</ons-list-item>`);
|
543
|
542
|
// var artesano = ons.createElement(`
|