|
|
@@ -514,18 +514,19 @@ if(image.length>0){
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-if(goods1.length>0){
|
|
|
+if(template.length>0){
|
|
|
var array = [];
|
|
|
-
|
|
|
for (var j = 0; j < template.length; j++) {
|
|
|
if(template[j].tmplType == 'G082_50'){
|
|
|
array.push(template[j].planContSq);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
for (var i = 0; i < template.length; i++) {
|
|
|
var html = '';
|
|
|
if(template[i].tmplType == 'G082_50' && array[0] == template[i].planContSq && typeof array[0] != 'undefined') {
|
|
|
+ if(template[i].title != null && template[i].title != ''){
|
|
|
+ $("#G082_50" +template[i].planContSq).show();
|
|
|
+ }
|
|
|
html += '<div class="cont_head">\n';
|
|
|
html += ' <div>\n';
|
|
|
html += ' <h4>\n';
|
|
|
@@ -547,11 +548,7 @@ if(goods1.length>0){
|
|
|
html += ' <ul>\n';
|
|
|
$.each(goods1, function(idx, item) {
|
|
|
if (item.planContSq == template[i].planContSq) {
|
|
|
- if (item.goodsCd == null && item.goodsCd == '') {
|
|
|
- $("#G082_50" +array[0]).hide();
|
|
|
- }else{
|
|
|
- $("#G082_50" +array[0]).show();
|
|
|
- }
|
|
|
+ $("#G082_50" + item.planContSq).show();
|
|
|
html += ' <li>\n';
|
|
|
html += ' <div class="dp_listItems">\n';
|
|
|
html += ' <div class="dp_listItems_img">\n';
|
|
|
@@ -589,7 +586,7 @@ if(goods1.length>0){
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-if(goods2.length>0){
|
|
|
+if(template.length>0){
|
|
|
var array = [];
|
|
|
|
|
|
for (var j = 0; j < template.length; j++) {
|
|
|
@@ -601,6 +598,9 @@ if(goods2.length>0){
|
|
|
var html = '';
|
|
|
|
|
|
if(template[i].tmplType == 'G082_51' && array[0] == template[i].planContSq && typeof array[0] != 'undefined'){
|
|
|
+ if(template[i].title != null && template[i].title != ''){
|
|
|
+ $("#G082_51" +template[i].planContSq).show();
|
|
|
+ }
|
|
|
html += '<div class="cont_head">\n';
|
|
|
html += ' <div>\n';
|
|
|
html += ' <h4>\n';
|
|
|
@@ -622,11 +622,7 @@ if(goods2.length>0){
|
|
|
html += ' <div class="swiper-wrapper">\n';
|
|
|
$.each(goods2, function(idx, item) {
|
|
|
if (item.planContSq == template[i].planContSq) {
|
|
|
- if (item.goodsCd == null && item.goodsCd == '') {
|
|
|
- $("#G082_51" +array[0]).hide();
|
|
|
- }else{
|
|
|
- $("#G082_51" +array[0]).show();
|
|
|
- }
|
|
|
+ $("#G082_51" + item.planContSq).show();
|
|
|
html += ' <div class="swiper-slide">\n';
|
|
|
html += ' <div class="item_prod">\n';
|
|
|
html += ' <div class="item_state">\n';
|
|
|
@@ -667,7 +663,7 @@ if(goods2.length>0){
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-if(goods4.length>0){
|
|
|
+if(template.length>0){
|
|
|
var array = [];
|
|
|
|
|
|
for (var j = 0; j < template.length; j++) {
|
|
|
@@ -678,6 +674,9 @@ if(goods4.length>0){
|
|
|
for (var i = 0; i < template.length; i++) {
|
|
|
var html = '';
|
|
|
if(template[i].tmplType == 'G082_52' && array[0] == template[i].planContSq && typeof array[0] != 'undefined'){
|
|
|
+ if(template[i].title != null && template[i].title != ''){
|
|
|
+ $("#G082_52" +template[i].planContSq).show();
|
|
|
+ }
|
|
|
html += '<div class="cont_head">\n';
|
|
|
html += '<div>\n';
|
|
|
html += ' <h4>\n';
|
|
|
@@ -699,11 +698,7 @@ if(goods4.length>0){
|
|
|
html += ' <div class="swiper-wrapper">\n';
|
|
|
$.each(goods4, function(idx, item) {
|
|
|
if (item.planContSq == template[i].planContSq) {
|
|
|
- if (item.goodsCd == null && item.goodsCd == '') {
|
|
|
- $("#G082_52" +array[0]).hide();
|
|
|
- }else{
|
|
|
- $("#G082_52" +array[0]).show();
|
|
|
- }
|
|
|
+ $("#G082_52" + item.planContSq).show();
|
|
|
html += ' <div class="swiper-slide">\n';
|
|
|
html += ' <div class="item_prod">\n';
|
|
|
html += ' <div class="item_state">\n';
|