...
|
...
|
@@ -145,52 +145,68 @@ $(document).ready(function() { |
|
|
console.log(res);
|
|
|
})
|
|
|
//学长学姐分享
|
|
|
var url7 = "/warrantyThree/warrantyThreeList"
|
|
|
header5 = {
|
|
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
|
}
|
|
|
ajax(url7, "GET", header5, function(res) {
|
|
|
ajax("/warrantyThree/warrantyThreeList", "GET", header5, function(res) {
|
|
|
|
|
|
}, function(res) {
|
|
|
console.log(res);
|
|
|
for (let i in res.data) {
|
|
|
console.log(res.data[i]);
|
|
|
let img = `<img src='${res.data[i].img}' style="width: 100%; ">`
|
|
|
$("#head-img").append(img)
|
|
|
|
|
|
$("#little-name").html(res.data[i].name)
|
|
|
$("#remark").html(res.data[i].remark)
|
|
|
$("#sketch").html(res.data[i].sketch)
|
|
|
$("#h-name").html(res.data[i].name)
|
|
|
$("#h-remark").html(res.data[i].remark)
|
|
|
$("#header-content").html(res.data[i].content)
|
|
|
|
|
|
let title = `
|
|
|
<div class="training-block-one">
|
|
|
<div class="inner-box">
|
|
|
<div class="content-box">
|
|
|
<figure><img src="img/portfolio/white.png" alt=""></figure>
|
|
|
<div class="text" style="top: 0px;">
|
|
|
<div style="display: flex;place-items: center;padding-left: 5%; ">
|
|
|
<div id="head-img" style="width:30%"><img src='${res.data[i].img}' style="width: 100%; "></div>
|
|
|
<div style='display:flex;flex-direction: column;padding-left: 8%;text-align: left;'>
|
|
|
<h3 id="little-name" style="color: #323232;">${res.data[i].name}</h3>
|
|
|
<p id="remark" style="color: #5a5a5a;">${res.data[i].remark}</p>
|
|
|
let tit = `
|
|
|
<div class="swiper-slide swiper-slide-center none-effect">
|
|
|
<div class="share_all">
|
|
|
<div class="share_top">
|
|
|
<div class="share_img">
|
|
|
<img src="${res.data[i].img}" style="width: 100%;">
|
|
|
</div>
|
|
|
<div class="share_name">
|
|
|
<p>${res.data[i].name}</p>
|
|
|
<div>${res.data[i].remark}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<h4 id="sketch" style="color: #5A5A5A;">${res.data[i].sketch}</h4>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="overlay-box">
|
|
|
<div class="text" style="display: flex;">
|
|
|
<h4 id="h-name" style="padding-right: 10px;">${res.data[i].name}</h4>
|
|
|
<h4 id="h-remark">${res.data[i].remark}</h4>
|
|
|
<div class="share_title">${res.data[i].sketch}</div>
|
|
|
</div>
|
|
|
<p id="header-content">${res.data[i].content}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>`
|
|
|
$(".owl-stage").append(title)
|
|
|
</div>`
|
|
|
$(".swiper-wrapper").append(tit)
|
|
|
|
|
|
// let img = `<img src='${res.data[i].img}' style="width: 100%; ">`
|
|
|
// $("#head-img").append(img)
|
|
|
|
|
|
// $("#little-name").html(res.data[i].name)
|
|
|
// $("#remark").html(res.data[i].remark)
|
|
|
// $("#sketch").html(res.data[i].sketch)
|
|
|
// $("#h-name").html(res.data[i].name)
|
|
|
// $("#h-remark").html(res.data[i].remark)
|
|
|
// $("#header-content").html(res.data[i].content)
|
|
|
|
|
|
// let title = `
|
|
|
// <div class="training-block-one">
|
|
|
// <div class="inner-box">
|
|
|
// <div class="content-box">
|
|
|
// <figure><img src="img/portfolio/white.png" alt=""></figure>
|
|
|
// <div class="text" style="top: 0px;">
|
|
|
// <div style="display: flex;place-items: center;padding-left: 5%; ">
|
|
|
// <div id="head-img" style="width:30%"><img src='${res.data[i].img}' style="width: 100%; "></div>
|
|
|
// <div style='display:flex;flex-direction: column;padding-left: 8%;text-align: left;'>
|
|
|
// <h3 id="little-name" style="color: #323232;">${res.data[i].name}</h3>
|
|
|
// <p id="remark" style="color: #5a5a5a;">${res.data[i].remark}</p>
|
|
|
// </div>
|
|
|
// </div>
|
|
|
// <h4 id="sketch" style="color: #5A5A5A;">${res.data[i].sketch}</h4>
|
|
|
// </div>
|
|
|
// </div>
|
|
|
// <div class="overlay-box">
|
|
|
// <div class="text" style="display: flex;">
|
|
|
// <h4 id="h-name" style="padding-right: 10px;">${res.data[i].name}</h4>
|
|
|
// <h4 id="h-remark">${res.data[i].remark}</h4>
|
|
|
// </div>
|
|
|
// <p id="header-content">${res.data[i].content}</p>
|
|
|
// </div>
|
|
|
// </div>
|
|
|
// </div>`
|
|
|
// $(".owl-stage").append(title)
|
|
|
|
|
|
|
|
|
|
...
|
...
|
|