Skip to content

Commit

Permalink
修改移动端ajax获取数据出错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
longbeidou committed Aug 20, 2018
1 parent fb25e36 commit c0c7f15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/views/wx/material/_pintuan_js.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
var fragment = document.createDocumentFragment();
var li;
for (var i = 0, count = data.length; i < count; i++) {
if (typeof(data[i].orig_price) != 'undefined' && typeof(data[i].jdd_price) != 'undefined') {
urlParaArr = data[i].click_url.split('?')
if (urlParaArr[1] == null) {
urlPara = '';
Expand Down Expand Up @@ -115,6 +116,7 @@ function format(num) {
str += '</div></div></div></div></a>'
li.innerHTML = str;
fragment.appendChild(li);
}
}
return fragment;
};
Expand Down

0 comments on commit c0c7f15

Please sign in to comment.