|
|
@ -340,7 +340,8 @@ $(function(){ |
|
|
|
}, |
|
|
|
}, |
|
|
|
success: function (res) { |
|
|
|
success: function (res) { |
|
|
|
let html='' |
|
|
|
let html='' |
|
|
|
res.data.data.forEach((item,index)=>{ |
|
|
|
let datalist = res.data.data.reverse() |
|
|
|
|
|
|
|
datalist.forEach((item,index)=>{ |
|
|
|
html+=`<option value ="${item.url}">${item.title}</option>` |
|
|
|
html+=`<option value ="${item.url}">${item.title}</option>` |
|
|
|
}) |
|
|
|
}) |
|
|
|
$('.select').append(html) |
|
|
|
$('.select').append(html) |
|
|
@ -368,8 +369,8 @@ function news01_render(categoryId){ |
|
|
|
let data = res.data.data; |
|
|
|
let data = res.data.data; |
|
|
|
data.forEach((item,index)=>{ |
|
|
|
data.forEach((item,index)=>{ |
|
|
|
html+=`<div class="brand__thumb category__item transition-3" data-id=${item.id}>
|
|
|
|
html+=`<div class="brand__thumb category__item transition-3" data-id=${item.id}>
|
|
|
|
<div class="imgcontainer transition-3"> |
|
|
|
<div class="imgcontainer transition-3" style="background:url(https://suzhou.njrenzhou.cn${item.thumb});background-size: cover;"> |
|
|
|
<img src="https://suzhou.njrenzhou.cn${item.thumb}" alt=""> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="contentText transition-3"> |
|
|
|
<div class="contentText transition-3"> |
|
|
|
<div class="contenttitle">${item.title}</div> |
|
|
|
<div class="contenttitle">${item.title}</div> |
|
|
|