作者 李铮

“”

正在显示 1 个修改的文件 包含 11 行增加4 行删除
@@ -125,11 +125,11 @@ @@ -125,11 +125,11 @@
125 var html = "" 125 var html = ""
126 var htmls = "" 126 var htmls = ""
127 for (var n in data.goods) { 127 for (var n in data.goods) {
128 -  
129 - for(var j in data.goods[n].tag){ 128 +
  129 + for (var j in data.goods[n].tag) {
130 htmls += `<span> 130 htmls += `<span>
131 <img src="${data.goods[n].tag[j].url}">${data.goods[n].tag[j].text}</span>` 131 <img src="${data.goods[n].tag[j].url}">${data.goods[n].tag[j].text}</span>`
132 - 132 +
133 } 133 }
134 html += `<li data-good_id="${data.goods[n].good_id}"> 134 html += `<li data-good_id="${data.goods[n].good_id}">
135 <a href="#" > 135 <a href="#" >
@@ -148,10 +148,17 @@ @@ -148,10 +148,17 @@
148 <p class="price">¥${data.goods[n].real_price}</p> 148 <p class="price">¥${data.goods[n].real_price}</p>
149 </div> 149 </div>
150 </li>` 150 </li>`
151 - htmls = "" 151 + htmls = ""
152 } 152 }
153 console.log(htmls) 153 console.log(htmls)
154 $(".remg").html(html) 154 $(".remg").html(html)
  155 + // 相关服务
  156 + var htmlTwo = ""
  157 + for(let n in data.related_service){
  158 +
  159 + }
  160 + // $(".capart2 .camg .center")
  161 +
155 } else if (res.code == 0) { 162 } else if (res.code == 0) {
156 let loading = weui.loading(res.msg) 163 let loading = weui.loading(res.msg)
157 setTimeout(function () { 164 setTimeout(function () {