...
|
...
|
@@ -33,34 +33,17 @@ $(document).ready(function() { |
|
|
"token": localStorage.getItem('token'),
|
|
|
}
|
|
|
ajax(url, "GET", header, function(res) {
|
|
|
console.log(res);
|
|
|
}, function(res) {
|
|
|
console.log(res);
|
|
|
$('#title-one').html(res.data.title)
|
|
|
$('#subtitle').html(res.data.subtitle)
|
|
|
})
|
|
|
// $.ajax({
|
|
|
// type: 'GET',
|
|
|
// url: "http://192.168.1.241:9004/warrantyFour/warrantyFourList",
|
|
|
// headers: {
|
|
|
// "Content-Type": "application/x-www-form-urlencoded",
|
|
|
// "token": localStorage.getItem('token'),
|
|
|
// },
|
|
|
// success: function(res) {
|
|
|
// console.log('1', res);
|
|
|
// // let a = htmlDecode(res.data.title)
|
|
|
// // console.log(a);
|
|
|
// $('#title').html(res.data.title)
|
|
|
// $('#subtitle').html(res.data.subtitle)
|
|
|
|
|
|
// }
|
|
|
// })
|
|
|
console.log(res);
|
|
|
}, function(res) {
|
|
|
console.log(res);
|
|
|
$('#title-one').html(res.data.title)
|
|
|
$('#subtitle').html(res.data.subtitle)
|
|
|
})
|
|
|
var url1 = "/warrantyTwo/warrantyTwoList"; // 接口
|
|
|
var header1 = {
|
|
|
"Content-Type": "application/json",
|
|
|
"token": localStorage.getItem('token'),
|
|
|
}
|
|
|
// 调用公共ajax
|
|
|
"Content-Type": "application/json",
|
|
|
"token": localStorage.getItem('token'),
|
|
|
}
|
|
|
var params = JSON.stringify({
|
|
|
current: 1,
|
|
|
size: 4
|
...
|
...
|
@@ -69,37 +52,37 @@ $(document).ready(function() { |
|
|
console.log(res);
|
|
|
$.each(res.data.records, function(key, value) {
|
|
|
console.log(value)
|
|
|
let title = `<div class="col-xs-6 col-lg-33 portfolio-post contentClick" style="margin-bottom: 2%;height:35%" id=${value.id} onClick="setProfileId(${value.id})">
|
|
|
<article class="portfolio-post-item" style='height:100%'>
|
|
|
<div style="position: relative;height:100%">
|
|
|
<div style="position: relative;" style='height:100%'>
|
|
|
<img src="${value.img}" alt="" style='height:100%'>
|
|
|
</div>
|
|
|
<div style="position: absolute;bottom: 4%;right: 2%;line-height: 1;display: flex;width: 40%;place-items:center">
|
|
|
<div style="position: relative;margin-right: 2%;width: 25%;">
|
|
|
<img src="${value.img1}">
|
|
|
</div>
|
|
|
<div style="position: relative;">
|
|
|
<div style="font-size: 1.4em;color: #fff;padding-bottom:5%">${value.title}</div>
|
|
|
<div style="font-size: 1.4em;color: #fff; ">${value.yyTitle}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="portfolio-content-wrapper ">
|
|
|
<div class="portfolio-content ">
|
|
|
<h3 class="portfolio-title "><a>${value.content}</a></h3>
|
|
|
<div style="display: flex;text-align: left;place-items: center;padding-top: 6%; ">
|
|
|
<img src="${value.img1} " style="width: 10%;height: 1%; ">
|
|
|
<div style="display: flex;flex-direction: column;padding-left: 2%; ">
|
|
|
<div class="portfolio-cat" style='padding-bottom:5%'>${value.title}</div>
|
|
|
<div class="portfolio-cat">${value.yyTitle}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</article>
|
|
|
</div>`
|
|
|
let title = ` <div class="col-xs-6 col-lg-33 portfolio-post contentClick" id=${value.id} onClick="setProfileId(${value.id})">
|
|
|
<article class="portfolio-post-item" style='height:100%'>
|
|
|
<div style="position: relative;height:100%">
|
|
|
<div style="position: relative;" style='height:100%'>
|
|
|
<img src="${value.img}" alt="" style='height:100%'class='noticeimg-head'>
|
|
|
</div>
|
|
|
<div class='par-headImg-all' >
|
|
|
<div class='par-headImg1'>
|
|
|
<img src="${value.img1}" >
|
|
|
</div>
|
|
|
<div class='par-headTitle'>
|
|
|
<div class='par-headTitle1'>${value.title}</div>
|
|
|
<div class='par-headTitle2'>${value.yyTitle}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="portfolio-content-wrapper">
|
|
|
<div class="portfolio-content ">
|
|
|
<h3 class="portfolio-title "><a>${value.content}</a></h3>
|
|
|
<div style="display: flex;text-align: left;place-items: center;padding-top: 6%; ">
|
|
|
<img src="${value.img1} " style="width: 10%;height: 1%; ">
|
|
|
<div style="display: flex;flex-direction: column;padding-left: 2%; ">
|
|
|
<div class="portfolio-cat" style='padding-bottom:5%'>${value.title}</div>
|
|
|
<div class="portfolio-cat">${value.yyTitle}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</article>
|
|
|
</div>`
|
|
|
$('#enterpriseProject').append(title)
|
|
|
})
|
|
|
|
...
|
...
|
@@ -113,10 +96,9 @@ $(document).ready(function() { |
|
|
function setPersonal() {
|
|
|
var url2 = "/login/userInfo"; // 接口
|
|
|
var header2 = {
|
|
|
"Content-Type": "application/json",
|
|
|
"token": localStorage.getItem('token'),
|
|
|
}
|
|
|
// 调用公共ajax
|
|
|
"Content-Type": "application/json",
|
|
|
"token": localStorage.getItem('token'),
|
|
|
}
|
|
|
ajax(url2, "GET", header2, function(res) {
|
|
|
|
|
|
}, function(res) {
|
...
|
...
|
|