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