|
@@ -757,7 +757,7 @@ $(function () {
|
|
|
sContnet += "<p style='width:100%'>"
|
|
|
sContnet += arrdep
|
|
|
sContnet += "</p>"
|
|
|
- if (arrtype == "" || arrtype == undefined) {
|
|
|
+ if ((arrtype == "" || arrtype == undefined)||arrtype==null) {
|
|
|
sContnet += ''
|
|
|
} else {
|
|
|
if (arrspecial == '中学') {
|
|
@@ -778,13 +778,13 @@ $(function () {
|
|
|
}
|
|
|
sContnet += "</li>"
|
|
|
}
|
|
|
- if (arrtag == "" || arrtag == undefined) {
|
|
|
+ if ((arrtag == "" || arrtag == undefined)||arrtag==null) {
|
|
|
sContnet += ''
|
|
|
} else {
|
|
|
sContnet += "<li class='flex_orange'>"
|
|
|
sContnet += "<div class='three_tag'>"
|
|
|
sContnet += arrtag
|
|
|
- if (arrtag2 == undefined) {
|
|
|
+ if ((arrtag2 == undefined||arrtag2=="")||arrtag2==null) {
|
|
|
sContnet += "</div>"
|
|
|
} else {
|
|
|
sContnet += "</div>"
|
|
@@ -792,7 +792,7 @@ $(function () {
|
|
|
sContnet += arrtag2
|
|
|
sContnet += "</div>"
|
|
|
}
|
|
|
- if (arrtag3 == undefined) {
|
|
|
+ if ((arrtag3 == undefined||arrtag3=="")||arrtag3==null) {
|
|
|
sContnet += "</li>"
|
|
|
} else {
|
|
|
sContnet += "<div class='three_tag'>"
|
|
@@ -802,11 +802,9 @@ $(function () {
|
|
|
}
|
|
|
sContnet += "<li>"
|
|
|
}
|
|
|
- if (arrcontent == "") {
|
|
|
+ if ((arrcontent == undefined||arrcontent==null)||arrcontent == "") {
|
|
|
sContnet += ''
|
|
|
- } else if (arrcontent == undefined) {
|
|
|
- sContnet += ''
|
|
|
- } else {
|
|
|
+ }else{
|
|
|
sContnet += "<a class='a_blue'>"
|
|
|
sContnet += "<p class='content_p' style='overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;'>"
|
|
|
sContnet += arrcontent
|
|
@@ -814,11 +812,9 @@ $(function () {
|
|
|
sContnet += "</a>"
|
|
|
}
|
|
|
sContnet += "</li>"
|
|
|
- if (arrimg == "") {
|
|
|
+ if ((arrimg == undefined||arrimg==null)||arrimg == "") {
|
|
|
sContnet += ''
|
|
|
- } else if (arrimg == undefined) {
|
|
|
- sContnet += ''
|
|
|
- } else {
|
|
|
+ }else{
|
|
|
sContnet += "<li class='img_box'>"
|
|
|
sContnet += "<img data-src='"+PATH+arrimg+"' class='two_img' src='" +PATH+arrimg + "'>"
|
|
|
sContnet += "</li>"
|
|
@@ -827,7 +823,7 @@ $(function () {
|
|
|
sContnet += "<p><span class='flex_address'>地址:</span>"
|
|
|
sContnet += arraddre
|
|
|
sContnet += "</p>"
|
|
|
- if (arrtime == "" || arrtime == undefined) {
|
|
|
+ if ((arrtime == "" || arrtime == undefined)||arrtime==null) {
|
|
|
sContnet += ''
|
|
|
} else if(arrsptype == '查阅场所'){
|
|
|
sContnet += "<p><span class='flex_address'>查询时间:</span>"
|
|
@@ -846,7 +842,7 @@ $(function () {
|
|
|
sContnet += arrtime
|
|
|
sContnet += "</p>"
|
|
|
}
|
|
|
- if (arrtel == '' || arrtel == undefined){
|
|
|
+ if ((arrtel == "" || arrtel == undefined)||arrtel==null){
|
|
|
sContnet += ''
|
|
|
} else {
|
|
|
var discriptone_tel =arrtel.split(';')[0];
|
|
@@ -956,7 +952,7 @@ $(function () {
|
|
|
discript += "<p style='width:100%'>"
|
|
|
discript += getClick[i].dep
|
|
|
discript += "</p>"
|
|
|
- if (getClick[i].type == "" || getClick[i].type == undefined) {
|
|
|
+ if ((getClick[i].type == "" || getClick[i].type == undefined)||getClick[i].type==null) {
|
|
|
discript += ''
|
|
|
} else {
|
|
|
if (getClick[i].specialtype == '中学') {
|
|
@@ -977,7 +973,7 @@ $(function () {
|
|
|
}
|
|
|
discript += "</li>"
|
|
|
}
|
|
|
- if (getClick[i].tag == undefined || getClick[i].tag == "") {
|
|
|
+ if ((getClick[i].tag == undefined || getClick[i].tag == "")||getClick[i].tag==null) {
|
|
|
discript += ""
|
|
|
} else {
|
|
|
discript += "<li class='flex_orange'>"
|
|
@@ -1000,11 +996,9 @@ $(function () {
|
|
|
}
|
|
|
}
|
|
|
discript += "<li>"
|
|
|
- if (getClick[i].content == "") {
|
|
|
- discript += ''
|
|
|
- } else if (getClick[i].content == undefined) {
|
|
|
+ if ((getClick[i].content == undefined||getClick[i].content==null)||getClick[i].content == "") {
|
|
|
discript += ''
|
|
|
- } else{
|
|
|
+ }else{
|
|
|
discript += "<a class='a_blue'>"
|
|
|
discript += "<p class='content_p'>"
|
|
|
discript += getClick[i].content
|
|
@@ -1013,11 +1007,9 @@ $(function () {
|
|
|
}
|
|
|
discript += "</li>"
|
|
|
discript += "<li class='img_box'>"
|
|
|
- if (getClick[i].img == "") {
|
|
|
+ if ((getClick[i].img == undefined||getClick[i].img==null)||getClick[i].img == "") {
|
|
|
discript += ''
|
|
|
- } else if (getClick[i].img == undefined) {
|
|
|
- discript += ''
|
|
|
- } else {
|
|
|
+ }else{
|
|
|
discript += "<img data-src='"+PATH+getClick[i].img+"' class='two_img' src='" +PATH+getClick[i].img + "'>"
|
|
|
}
|
|
|
discript += "</li>"
|
|
@@ -1025,7 +1017,7 @@ $(function () {
|
|
|
discript += "<p><span class='flex_address'>地址:</span>"
|
|
|
discript += getClick[i].address
|
|
|
discript += "</p>"
|
|
|
- if (getClick[i].time == "" || getClick[i].time == undefined) {
|
|
|
+ if ((getClick[i].time == "" || getClick[i].time == undefined)||getClick[i].time==null) {
|
|
|
discript += ""
|
|
|
} else if(getClick[i].sptype == '查阅场所'){
|
|
|
discript += "<p><span class='flex_address'>查询时间:</span>"
|
|
@@ -1044,7 +1036,7 @@ $(function () {
|
|
|
discript += getClick[i].time
|
|
|
discript += "</p>"
|
|
|
}
|
|
|
- if (getClick[i].tel == '' || getClick[i].tel == undefined){
|
|
|
+ if ((getClick[i].tel == '' || getClick[i].tel == undefined)||getClick[i].tel==null){
|
|
|
discript += ''
|
|
|
} else {
|
|
|
var discriptone_tel = getClick[i].tel.split(';')[0];
|
|
@@ -1132,7 +1124,7 @@ $(function () {
|
|
|
discript += "<p style='width:100%'>"
|
|
|
discript += arrey[i].dep
|
|
|
discript += "</p>"
|
|
|
- if (arrey[i].type == "" || arrey[i].type == undefined) {
|
|
|
+ if ((arrey[i].type == "" || arrey[i].type == undefined)||arrey[i].type==null) {
|
|
|
discript += ''
|
|
|
} else {
|
|
|
if (arrey[i].specialtype == '中学') {
|
|
@@ -1153,21 +1145,21 @@ $(function () {
|
|
|
}
|
|
|
discript += "</li>"
|
|
|
}
|
|
|
- if (arrey[i].tag == undefined || arrey[i].tag == "") {
|
|
|
+ if ((arrey[i].tag == undefined || arrey[i].tag == "")||arrey[i].tag==null) {
|
|
|
discript += ""
|
|
|
} else {
|
|
|
discript += "<li class='flex_orange'>"
|
|
|
discript += "<div class='three_tag'>"
|
|
|
discript += arrey[i].tag
|
|
|
discript += "</div>"
|
|
|
- if (arrey[i].tag2 == undefined || arrey[i].tag2 == "") {
|
|
|
+ if ((arrey[i].tag2 == undefined || arrey[i].tag2 == "")||arrey[i].tag2==null) {
|
|
|
discript += ""
|
|
|
} else {
|
|
|
discript += "<div class='three_tag'>"
|
|
|
discript += arrey[i].tag2
|
|
|
discript += "</div>"
|
|
|
}
|
|
|
- if (arrey[i].tag3 == undefined || arrey[i].tag3 == "") {
|
|
|
+ if ((arrey[i].tag3 == undefined || arrey[i].tag3 == "")||arrey[i].tag3==null) {
|
|
|
discript += ""
|
|
|
} else {
|
|
|
discript += "<div class='three_tag'>"
|
|
@@ -1176,11 +1168,9 @@ $(function () {
|
|
|
}
|
|
|
}
|
|
|
discript += "<li>"
|
|
|
- if (arrey[i].content == "") {
|
|
|
+ if (arrey[i].content == ""||(arrey[i].content == undefined||arrey[i].content==null)) {
|
|
|
discript += ''
|
|
|
- } else if (arrey[i].content == undefined) {
|
|
|
- discript += ''
|
|
|
- } else{
|
|
|
+ }else{
|
|
|
discript += "<a class='a_blue'>"
|
|
|
discript += "<p class='content_p'>"
|
|
|
discript += arrey[i].content
|
|
@@ -1189,11 +1179,9 @@ $(function () {
|
|
|
}
|
|
|
discript += "</li>"
|
|
|
discript += "<li class='img_box'>"
|
|
|
- if (arrey[i].img == "") {
|
|
|
+ if (arrey[i].img == ""||((arrey[i].img == undefined)||arrey[i].img==null)) {
|
|
|
discript += ''
|
|
|
- } else if (arrey[i].img == undefined) {
|
|
|
- discript += ''
|
|
|
- } else {
|
|
|
+ }else{
|
|
|
discript += "<img data-src='"+PATH+arrey[i].img+"' class='two_img' src='" +PATH+arrey[i].img + "'>"
|
|
|
}
|
|
|
discript += "</li>"
|
|
@@ -1201,7 +1189,7 @@ $(function () {
|
|
|
discript += "<p><span class='flex_address'>地址:</span>"
|
|
|
discript += arrey[i].address
|
|
|
discript += "</p>"
|
|
|
- if (arrey[i].time == "" || arrey[i].time == undefined) {
|
|
|
+ if ((arrey[i].time == "" || arrey[i].time == undefined)||arrey[i].time==null) {
|
|
|
discript += ""
|
|
|
} else if(arrey[i].sptype == '查阅场所'){
|
|
|
discript += "<p><span class='flex_address'>查询时间:</span>"
|
|
@@ -1220,7 +1208,7 @@ $(function () {
|
|
|
discript += arrey[i].time
|
|
|
discript += "</p>"
|
|
|
}
|
|
|
- if (arrey[i].tel == '' || arrey[i].tel == undefined){
|
|
|
+ if ((arrey[i].tel == '' || arrey[i].tel == undefined)||arrey[i].tel==null){
|
|
|
discript += ''
|
|
|
} else {
|
|
|
var discriptone_tel = arrey[i].tel.split(';')[0];
|
|
@@ -1352,7 +1340,7 @@ $(function () {
|
|
|
discript += "<p style='width:100%'>"
|
|
|
discript += getClick[i].dep
|
|
|
discript += "</p>"
|
|
|
- if (getClick[i].type == "" || getClick[i].type == undefined) {
|
|
|
+ if ((getClick[i].type == "" || getClick[i].type == undefined)||getClick[i].type==null) {
|
|
|
discript += ''
|
|
|
} else {
|
|
|
if (getClick[i].specialtype == '中学') {
|
|
@@ -1373,7 +1361,7 @@ $(function () {
|
|
|
}
|
|
|
discript += "</li>"
|
|
|
}
|
|
|
- if (getClick[i].tag == undefined || getClick[i].tag == "") {
|
|
|
+ if ((getClick[i].tag == undefined || getClick[i].tag == "")||getClick[i].tag==null) {
|
|
|
discript += ""
|
|
|
} else {
|
|
|
discript += "<li class='flex_orange'>"
|
|
@@ -1396,11 +1384,9 @@ $(function () {
|
|
|
}
|
|
|
}
|
|
|
discript += "<li>"
|
|
|
- if (getClick[i].content == "") {
|
|
|
- discript += ''
|
|
|
- } else if (getClick[i].content == undefined) {
|
|
|
+ if (getClick[i].content == ""||(getClick[i].content == undefined||getClick[i].content==null)) {
|
|
|
discript += ''
|
|
|
- } else{
|
|
|
+ }else{
|
|
|
discript += "<a class='a_blue'>"
|
|
|
discript += "<p class='content_p'>"
|
|
|
discript += getClick[i].content
|
|
@@ -1409,11 +1395,9 @@ $(function () {
|
|
|
}
|
|
|
discript += "</li>"
|
|
|
discript += "<li class='img_box'>"
|
|
|
- if (getClick[i].img == "") {
|
|
|
+ if (getClick[i].img == ""||(getClick[i].img == undefined||getClick[i].img==null)) {
|
|
|
discript += ''
|
|
|
- } else if (getClick[i].img == undefined) {
|
|
|
- discript += ''
|
|
|
- } else {
|
|
|
+ }else{
|
|
|
discript += "<img data-src='"+PATH+getClick[i].img+"' class='two_img' src='" +PATH+getClick[i].img + "'>"
|
|
|
}
|
|
|
discript += "</li>"
|
|
@@ -1421,7 +1405,7 @@ $(function () {
|
|
|
discript += "<p><span class='flex_address'>地址:</span>"
|
|
|
discript += getClick[i].address
|
|
|
discript += "</p>"
|
|
|
- if (getClick[i].time == "" || getClick[i].time == undefined) {
|
|
|
+ if ((getClick[i].time == "" || getClick[i].time == undefined)||getClick[i].time==null) {
|
|
|
discript += ""
|
|
|
} else if(getClick[i].sptype == '查阅场所'){
|
|
|
discript += "<p><span class='flex_address'>查询时间:</span>"
|
|
@@ -1440,7 +1424,7 @@ $(function () {
|
|
|
discript += getClick[i].time
|
|
|
discript += "</p>"
|
|
|
}
|
|
|
- if (getClick[i].tel == '' || getClick[i].tel == undefined){
|
|
|
+ if ((getClick[i].tel == '' || getClick[i].tel == undefined)||getClick[i].tel==null){
|
|
|
discript += ''
|
|
|
} else {
|
|
|
var discriptone_tel = getClick[i].tel.split(';')[0];
|