作者 杨乐
1 个管道 的构建 通过 耗费 5 秒

提交

... ... @@ -117,24 +117,26 @@
<footer>
<div class="wrap-footer" style="background-color: #323232;">
<div class="container">
<div class="row">
<div class="col-footer col-md-3">
<img src="img/portfolio/B2.png">
<p class="footer-title" style="color: #fff;padding-top: 10%;font-size: 0.8em;">成功职场第一步,从Start-Line开始</p>
<div class="row" style="display: flex;justify-content: space-between;">
<div class="col-footer col-md-3" style="display: flex;flex-direction: column;place-content: center;">
<img src="img/portfolio/B2.png" width="50%">
<p class="footer-title" style="color: #fff;padding-top: 10%;font-size: 0.8em; text-transform:capitalize">成功职场第一步,从Start-Line开始</p>
</div>
<div class="col-footer col-md-3 widget_recent_entries">
<h2 class="footer-title">网站导航</h2>
<h2 class="footer-title">网站首页</h2>
<h2 class="footer-title">实习项目</h2>
<div class="col-footer col-md-3 widget_recent_entries" style="display: flex;flex-direction: column;place-items: center;place-content: center;">
<a class="footer-title" href="index.html" style="color:#66CA94">网站导航</a>
<a class="footer-title" href="index.html">网站首页</a>
<a class="footer-title" href="participated.html">实习项目</a>
</div>
<div class="col-footer col-md-3">
<h2 class="footer-title">关于我们</h2>
<h2 class="footer-title">网站首页</h2>
<h2 class="footer-title">实习项目</h2>
<div class="col-footer col-md-3" style="display: flex;flex-direction: column;place-items: center;place-content: center;">
<a class="footer-title" href="index.html" style="color:#66CA94">关于我们</a>
<a class="footer-title" href="index.html">关于Start-Line</a>
<a class="footer-title" href="participated.html">联系我们</a>
</div>
<div class="col-footer col-md-3">
<h2 class="footer-title">关注Start-Line</h2>
<img src="img/portfolio/EWM.png" style="width: 50%;">
<div class="col-footer col-md-3" style="display: flex;flex-direction: column;place-items: center;place-content: center;" id="sevenimg4">
<h2 class="footer-title" style="color: #66CA94;text-transform:capitalize">关注Start-Line</h2>
<div id='ewm-footer' style="text-align: center;">
</div>
<!-- <img src="img/portfolio/EWM.png" style="width: 50%;"> -->
</div>
</div>
</div>
... ...
... ... @@ -14,8 +14,20 @@ $(document).ready(function() {
</a>`
$("#login-btn").html(loginTit2)
}
//浏览更多首页
var url = "/warrantyFour/warrantyFourList"; // 接口
//首页
var url3 = "/warranty/warrantyList";
var header3 = {
"Content-Type": "application/x-www-form-urlencoded"
}
ajax(url3, "GET", header3, function(res) {
console.log('1', res);
}, function(res) {
console.log(res);
let EWM = `<img src="${res.data.sevenimg4}" width="100%">`
$('#ewm-footer').html(EWM)
})
//浏览更多首页
var url = "/warrantyFour/warrantyFourList";
var header = {
"Content-Type": "application/x-www-form-urlencoded",
"token": localStorage.getItem('token'),
... ...
... ... @@ -47,14 +47,7 @@
<div class="header-loginBtn">退出登录</div>
</a>
<a class="header-right-btn" onclick="setPersonal()">
<!-- <h1 class="header-h1-btn" style="background-color: #66CA94;position: absolute;width: 40px;height: 40px; border-radius: 50%;">&nbsp;</h1>
<div class="header-xian">
<div class="header-xian1">&nbsp;</div>
<div class="header-xian2">&nbsp;</div>
</div> -->
<img src="./img/portfolio/circle.png" style="width: 50px;height: 50px;">
</a>
</div>
</div>
... ... @@ -63,7 +56,7 @@
<div class="header-text hidden-xs" style="padding: 0 70px;">
<div class="col-md-12 text-center" style='display:flex;justify-content: space-between;'>
<div class="col-md-12 text-center" style='display:flex;justify-content: space-between;margin-top: 80px;'>
<div style="flex: 3;">
<div style="display: flex;padding-bottom: 20px;">
<h2>你好,</h2>
... ... @@ -139,34 +132,30 @@
<footer>
<div class="wrap-footer" style="background-color: #323232;">
<div class="container">
<div class="row">
<div class="col-footer col-md-3">
<img src="img/portfolio/B2.png">
<p class="footer-title" style="color: #fff;padding-top: 10%;font-size: 0.8em;">成功职场第一步,从Start-Line开始</p>
<div class="row" style="display: flex;justify-content: space-between;">
<div class="col-footer col-md-3" style="display: flex;flex-direction: column;place-content: center;">
<img src="img/portfolio/B2.png" width="50%">
<p class="footer-title" style="color: #fff;padding-top: 10%;font-size: 0.8em; text-transform:capitalize">成功职场第一步,从Start-Line开始</p>
</div>
<div class="col-footer col-md-3 widget_recent_entries">
<h2 class="footer-title">网站导航</h2>
<h2 class="footer-title">网站首页</h2>
<h2 class="footer-title">实习项目</h2>
<div class="col-footer col-md-3 widget_recent_entries" style="display: flex;flex-direction: column;place-items: center;place-content: center;">
<a class="footer-title" href="index.html" style="color:#66CA94">网站导航</a>
<a class="footer-title" href="index.html">网站首页</a>
<a class="footer-title" href="participated.html">实习项目</a>
</div>
<div class="col-footer col-md-3">
<h2 class="footer-title">关于我们</h2>
<h2 class="footer-title">网站首页</h2>
<h2 class="footer-title">实习项目</h2>
<div class="col-footer col-md-3" style="display: flex;flex-direction: column;place-items: center;place-content: center;">
<a class="footer-title" href="index.html" style="color:#66CA94">关于我们</a>
<a class="footer-title" href="index.html">关于Start-Line</a>
<a class="footer-title" href="participated.html">联系我们</a>
</div>
<div class="col-footer col-md-3">
<h2 class="footer-title">关注Start-Line</h2>
<img src="img/portfolio/EWM.png" style="width: 50%;">
<div class="col-footer col-md-3" style="display: flex;flex-direction: column;place-items: center;place-content: center;" id="sevenimg4">
<h2 class="footer-title" style="color: #66CA94;text-transform:capitalize">关注Start-Line</h2>
<div id='ewm-footer' style="text-align: center;">
</div>
<!-- <img src="img/portfolio/EWM.png" style="width: 50%;"> -->
</div>
</div>
</div>
</div>
</footer>
<!-- jQuery -->
... ...
... ... @@ -7,6 +7,8 @@ $(document).ready(function() {
}
ajax(url, "GET", header, function(res) {
console.log(res);
}, function(res) {
console.log(res);
if (res.data === null) {
let a = ' 0 '
$("#finish-num").html(a)
... ... @@ -26,87 +28,45 @@ $(document).ready(function() {
</div>`
$('#completeProject').append(title)
})
}, function(res) {
console.log(res);
})
// $.ajax({
// type: 'GET',
// url: 'http://192.168.1.241:9004/userProgram/userProgramById',
// headers: {
// "Content-Type": "application/json",
// "token": localStorage.getItem('token'),
// },
// success: function(res) {
// console.log(res);
// if (res.data === null) {
// let a = ' 0 '
// $("#finish-num").html(a)
// } else {
// $("#finish-num").html(res.data.length)
// }
// $.each(res.data, function(key, value) {
// let title = `<div class="col-lg-32 col-sm-60" style="display: flex;place-content: center;background-color: #fff;">
// <a href="#" class="portfolio-box3" style="display: flex;">
// <img src="${value.img2}" alt="" style="width:25%;margin-right: 5%;">
// <div style="display: flex; flex-direction: column;">
// <h5 style="color: #323232;">${value.field}</h5>
// <p style="padding-top: 10%;color: #5a5a5a;">${value.futitle}</p>
// </div>
// </a>
// </div>`
// $('#completeProject').append(title)
// })
// }
// })
//查看个人信息赋值名字
//查看个人信息赋值名字
var url1 = '/login/userInfo'
ajax(url1, "GET", header, function(res) {
console.log(res);
}, function(res) {
console.log(res);
console.log(res.data.surname + res.data.userName);
$("#header-name").html(res.data.surname + res.data.userName)
$("#title-name").html(res.data.surname + res.data.userName)
})
// $.ajax({
// type: 'GET',
// url: 'http://192.168.1.241:9004/login/userInfo',
// headers: {
// "Content-Type": "application/json",
// "token": localStorage.getItem('token'),
// },
// success: function(res) {
// console.log(res);
// console.log(res.data.surname + res.data.userName);
// $("#header-name").html(res.data.surname + res.data.userName)
// $("#title-name").html(res.data.surname + res.data.userName)
// }
// })
//首页
var url3 = "/warranty/warrantyList";
var header3 = {
"Content-Type": "application/x-www-form-urlencoded"
}
ajax(url3, "GET", header3, function(res) {
console.log('1', res);
}, function(res) {
console.log(res);
let EWM = `<img src="${res.data.sevenimg4}" width="100%">`
$('#ewm-footer').html(EWM)
})
})
//获取用户VIP信息判断是否是VIP
function setPersonal() {
var url2 = '/login/userInfo'
var header = {
"Content-Type": "application/json",
"token": localStorage.getItem('token'),
}
ajax(url2, "GET", header, function(res) {
console.log(res);
}, function(res) {
console.log(res);
if (res.data.status1 == 1) {
window.location.href = 'personalCenter.html'
} else {
window.location.href = 'personalCenter2.html'
}
})
$.ajax({
type: 'GET',
url: 'http://192.168.1.241:9004/login/userInfo',
headers: {
"Content-Type": "application/json",
"token": localStorage.getItem('token'),
},
// success: function(res) {
// console.log(res);
// if (res.data.status1 == 1) {
// window.location.href = 'personalCenter.html'
// } else {
// window.location.href = 'personalCenter2.html'
// }
// }
})
}
\ No newline at end of file
... ...
... ... @@ -2465,4 +2465,10 @@
margin: 20px 0;
color: #323232;
cursor: pointer;
}
.wenti-btn1 {
margin: 20px 0;
color: #66ca94;
cursor: pointer;
}
\ No newline at end of file
... ...
... ... @@ -1125,6 +1125,7 @@ footer ul.social-buttons li a i {
text-transform: uppercase;
font-size: 14px;
color: #fff;
margin: 10px 0;
}
.footer-tags a {
... ...
... ... @@ -346,11 +346,9 @@
</div>
<!-- <img src="img/portfolio/EWM.png" style="width: 50%;"> -->
</div>
</div>
</div>
</div>
</footer>
<script type="text/javascript">
//图片滚动JS代码
... ...
... ... @@ -17,6 +17,7 @@ var header3 = {
$(document).ready(function() {
var token = localStorage.getItem('token')
//判断右上角是否登录
if (token == null) {
let loginTit1 = `
<a href='login.html'>
... ... @@ -61,7 +62,7 @@ $(document).ready(function() {
$('#twoimg2').html(img2)
let img3 = `<img src="${res.data.fourimg3}" alt=" " style="width: 100%;height: 100%;">`
$('#fourimg3').html(img3)
let EWM = `<img src="${res.data.sevenimg4}" width="50%">`
let EWM = `<img src="${res.data.sevenimg4}" width="100%">`
$('#ewm-footer').html(EWM)
})
... ... @@ -201,37 +202,20 @@ $(document).ready(function() {
var url3 = "/warrantyFive/warrantyFiveList";
ajax(url3, "GET", header1, function(res) {
console.log(res);
console.log(res);
}, function(res) {
console.log(res);
$.each(res.data, function(key, value) {
console.log(value.question);
let title = `
}, function(res) {
console.log(res);
$.each(res.data, function(key, value) {
console.log(value.question);
let title = `
<div>
<div class='wenti-btn' id="question2" onClick="showAnswer(${value.id})" data-id='${key}'>${value.question}</div>
<p id="answer1" style="color:#323232"></p>
<p id="answer1" data-id='${key}' style="color:#323232"></p>
</div>`
$('#clickQuestion').append(title)
})
$('#clickQuestion').append(title)
})
// $.ajax({
// type: 'GET',
// url: 'http://192.168.1.241:9004/warrantyFive/warrantyFiveList',
// headers: {
// "Content-Type": "application/x-www-form-urlencoded",
// "token": localStorage.getItem('token'),
// },
// success: function(res) {
// console.log(res);
// $.each(res.data, function(key, value) {
// console.log(value.question);
// let title = `<div style="margin: 20px 0;color: #323232;" id="question2" onClick="showAnswer(${value.id})">${value.question}</div>`
// $('#clickQuestion').append(title)
// })
// }
// })
})
});
... ... @@ -244,50 +228,25 @@ function showAnswer(id) {
}
// 调用公共ajax
ajax(url4, "GET", header1, params1, function(res) {
console.log(res);
// $('#answer1').html(res.data)
// $(self).addClass("wenti-btn").siblings().removeClass("wenti-btn");
// var getele = $(self).attr("data-id");
// $("#"+getele).removeClass("hide").siblings().addClass("hide");
var i = 0;
console.log(i);
if (i % 2 == 0) {
document.getElementById('question2').style.color = '#66ca94'
$('#answer1').html(res.data)
} else {
document.getElementsById('question2').style.color = '#323232'
}
}, function(res) {
console.log(res);
console.log(res);
// $('#answer1').html(res.data)
// $(self).addClass("wenti-btn").siblings().removeClass("wenti-btn");
// var getele = $(self).attr("data-id");
// $("#"+getele).removeClass("hide").siblings().addClass("hide");
})
// $.ajax({
// type: 'GET',
// url: 'http://192.168.1.241:9004/warrantyFive/warrantyFiveAnswer',
// headers: {
// "Content-Type": "application/x-www-form-urlencoded",
// "token": localStorage.getItem('token'),
// },
// data: {
// id: id
// },
// success: function(res) {
// console.log(res);
// var i = 0;
// console.log(i);
// if (i % 2 == 0) {
// document.getElementById('question2').style.color = '#66ca94'
// $('#answer1').html(res.data)
// var i = 0;
// console.log(i);
// if (i % 2 == 0) {
// document.getElementById('question2').style.color = '#66ca94'
// $('#answer1').html(res.data)
// i = 1
// } else {
// } else {
// document.getElementsById('question2').style.color = '#323232'
// }
}, function(res) {
console.log(res);
// document.getElementsById('question2').style.color = '#323232'
// }
// }
// })
})
}
//进入项目页
function setProfileId(id) {
... ...
... ... @@ -148,34 +148,30 @@
<footer>
<div class="wrap-footer" style="background-color: #323232;">
<div class="container">
<div class="row">
<div class="col-footer col-md-3">
<img src="img/portfolio/B2.png">
<p class="footer-title" style="color: #fff;padding-top: 10%;font-size: 0.8em;">成功职场第一步,从Start-Line开始</p>
<div class="row" style="display: flex;justify-content: space-between;">
<div class="col-footer col-md-3" style="display: flex;flex-direction: column;place-content: center;">
<img src="img/portfolio/B2.png" width="50%">
<p class="footer-title" style="color: #fff;padding-top: 10%;font-size: 0.8em; text-transform:capitalize">成功职场第一步,从Start-Line开始</p>
</div>
<div class="col-footer col-md-3 widget_recent_entries">
<h2 class="footer-title">网站导航</h2>
<h2 class="footer-title">网站首页</h2>
<h2 class="footer-title">实习项目</h2>
<div class="col-footer col-md-3 widget_recent_entries" style="display: flex;flex-direction: column;place-items: center;place-content: center;">
<a class="footer-title" href="index.html" style="color:#66CA94">网站导航</a>
<a class="footer-title" href="index.html">网站首页</a>
<a class="footer-title" href="participated.html">实习项目</a>
</div>
<div class="col-footer col-md-3">
<h2 class="footer-title">关于我们</h2>
<h2 class="footer-title">网站首页</h2>
<h2 class="footer-title">实习项目</h2>
<div class="col-footer col-md-3" style="display: flex;flex-direction: column;place-items: center;place-content: center;">
<a class="footer-title" href="index.html" style="color:#66CA94">关于我们</a>
<a class="footer-title" href="index.html">关于Start-Line</a>
<a class="footer-title" href="participated.html">联系我们</a>
</div>
<div class="col-footer col-md-3">
<h2 class="footer-title">关注Start-Line</h2>
<img src="img/portfolio/EWM.png" style="width: 50%;">
<div class="col-footer col-md-3" style="display: flex;flex-direction: column;place-items: center;place-content: center;" id="sevenimg4">
<h2 class="footer-title" style="color: #66CA94;text-transform:capitalize">关注Start-Line</h2>
<div id='ewm-footer' style="text-align: center;">
</div>
<!-- <img src="img/portfolio/EWM.png" style="width: 50%;"> -->
</div>
</div>
</div>
</div>
</footer>
<!-- jQuery -->
... ...
$(document).ready(function() {
//首页
var url = "/warranty/warrantyList"; // 接口
var url = "/warranty/warrantyList";
var header = {
"Content-Type": "application/x-www-form-urlencoded",
"token": localStorage.getItem('token'),
... ... @@ -9,39 +9,27 @@ $(document).ready(function() {
// 调用公共ajax
ajax(url, "GET", header, function(res) {
console.log(res);
}, function(res) {
// console.log(res);
$('#threefield1').html(res.data.threefield1)
$('#threefield2').html(res.data.threefield2)
}, function(res) {
console.log(res);
let EWM = `<img src="${res.data.sevenimg4}" width="100%">`
$('#ewm-footer').html(EWM)
})
// $.ajax({
// type: 'GET',
// url: "http://192.168.1.241:9004/warranty/warrantyList",
// headers: {
// "Content-Type": "application/x-www-form-urlencoded",
// "token": localStorage.getItem('token'),
// },
// success: function(res) {
// console.log('1', res);
// $('#threefield1').html(res.data.threefield1)
// $('#threefield2').html(res.data.threefield2)
// }
// })
//企业实习项目
var url1 = "/warrantyTwo/warrantyTwoList"; // 接口
var url1 = "/warrantyTwo/warrantyTwoList";
var header1 = {
"Content-Type": "application/json",
"token": localStorage.getItem('token'),
}
var params = JSON.stringify({
current: 1,
size: 4
})
// 调用公共ajax
current: 1,
size: 4
})
ajax(url1, "POST", header1, params, function(res) {
console.log(res);
$.each(res.data.records, function(key, value) {
console.log(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%'>
... ... @@ -79,150 +67,48 @@ $(document).ready(function() {
}, function(res) {
console.log(res);
})
// $.ajax({
// type: 'POST',
// url: 'http://192.168.1.241:9004/warrantyTwo/warrantyTwoList',
// headers: {
// "Content-Type": "application/json",
// "token": localStorage.getItem('token'),
// },
// data: JSON.stringify({
// current: 1,
// size: 4
// }),
// success: function(res) {
// 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.futitle}</div>
// </div>
// </div>
// </div>
//已完成项目
var url2 = "/userProgram/userProgramById";
// <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.futitle}</div>
// </div>
// </div>
// </div>
// </div>
// </article>
// </div>`
// $('#enterpriseProject').append(title)
// })
// }
// })
//已完成项目
var url2 = "/userProgram/userProgramById"; // 接口
// 调用公共ajax
ajax(url2, "GET", header1, function(res) {
console.log(res);
}, function(res) {
// console.log(res);
if (res.data === null) {
let a = ' 0 '
$("#finish-num").html(a)
} else {
$("#finish-num").html(res.data.length)
}
}, function(res) {
console.log(res);
})
// $.ajax({
// type: 'GET',
// url: 'http://192.168.1.241:9004/userProgram/userProgramById',
// headers: {
// "Content-Type": "application/json",
// "token": localStorage.getItem('token'),
// },
// success: function(res) {
// console.log(res);
// console.log(res.data);
// if (res.data === null) {
// let a = ' 0 '
// $("#finish-num").html(a)
// } else {
// $("#finish-num").html(res.data.length)
// }
// }
// })
//查看已推荐的项目
var url3 = "/warrantyTwo/warrantyTwos"; // 接口
var url3 = "/warrantyTwo/warrantyTwos";
// 调用公共ajax
ajax(url3, "POST", header1, params, function(res) {
console.log(res);
$("#recommend-num").html(res.data.records.length)
}, function(res) {
console.log(res);
})
// $.ajax({
// type: 'POST',
// url: 'http://192.168.1.241:9004/warrantyTwo/warrantyTwos',
// headers: {
// "Content-Type": "application/json",
// "token": localStorage.getItem('token'),
// },
// data: JSON.stringify({
// current: 1,
// size: 4
// }),
// success: function(res) {
// console.log(res.data.records.length);
// $("#recommend-num").html(res.data.records.length)
// }
// })
//查看个人信息赋值名字
console.log(res);
$("#recommend-num").html(res.data.records.length)
}, function(res) {
console.log(res);
})
//查看个人信息赋值名字
var url4 = "/login/userInfo"; // 接口
// 调用公共ajax
ajax(url4, "GET", header1, params, function(res) {
ajax(url4, "GET", header1, function(res) {
console.log(res);
}, function(res) {
// console.log(res);
$("#header-name").html(res.data.surname + res.data.userName)
$("#title-name").html(res.data.surname + res.data.userName)
}, function(res) {
console.log(res);
})
// $.ajax({
// type: 'GET',
// url: 'http://192.168.1.241:9004/login/userInfo',
// headers: {
// "Content-Type": "application/json",
// "token": localStorage.getItem('token'),
// },
// success: function(res) {
// console.log(res);
// console.log(res.data.surname + res.data.userName);
// $("#header-name").html(res.data.surname + res.data.userName)
// $("#title-name").html(res.data.surname + res.data.userName)
// }
// })
//查看参与的项目
var url5 = "/userProgram/userPrograms"; // 接口
// 调用公共ajax
ajax(url5, "GET", header, function(res) {
console.log(res);
$.each(res.data, function(key, value) {
let title = `
console.log(res);
}, function(res) {
console.log(res);
$.each(res.data, function(key, value) {
let title = `
<div class="col-lg-32 col-sm-60" style="display: flex;place-content: center;background-color: #fff;">
<a onclick='learnCenter()' class="portfolio-box3" style="display: flex;" >
<img src="${value.img2}" alt="" style="width:25%;margin-right: 5%;">
... ... @@ -232,37 +118,9 @@ $(document).ready(function() {
</div>
</a>
</div>`
$("#canyu-project").append(title)
})
}, function(res) {
console.log(res);
$("#canyu-project").append(title)
})
// $.ajax({
// type: 'GET',
// url: 'http://192.168.1.241:9004/userProgram/userPrograms',
// headers: {
// "Content-Type": "application/x-www-form-urlencoded",
// "token": localStorage.getItem('token'),
// },
// success: function(res) {
// console.log(res);
// $.each(res.data, function(key, value) {
// let title = `
// <div class="col-lg-32 col-sm-60" style="display: flex;place-content: center;background-color: #fff;">
// <a onclick='learnCenter()' class="portfolio-box3" style="display: flex;" >
// <img src="${value.img2}" alt="" style="width:25%;margin-right: 5%;">
// <div style="display: flex; flex-direction: column;">
// <h5 style="color: #323232;padding: 30px 30px 40px;">${value.futitle}</h5>
// <p style="color: #5a5a5a;">${value.field}</p>
// </div>
// </a>
// </div>`
// $("#canyu-project").append(title)
// })
// }
// })
})
});
... ...
... ... @@ -54,7 +54,7 @@
</nav>
<div class="header-text hidden-xs" style="padding: 0 70px;">
<div class="col-md-12 text-center" style='display:flex;justify-content: space-between;'>
<div class="col-md-12 text-center" style='display:flex;justify-content: space-between;margin-top: 80px;'>
<div style="flex: 3;">
<div style="display: flex;padding-bottom: 20px;">
<h2>你好,</h2>
... ... @@ -131,34 +131,30 @@
<footer>
<div class="wrap-footer" style="background-color: #323232;">
<div class="container">
<div class="row">
<div class="col-footer col-md-3">
<img src="img/portfolio/B2.png">
<p class="footer-title" style="color: #fff;padding-top: 10%;font-size: 0.8em;">成功职场第一步,从Start-Line开始</p>
<div class="row" style="display: flex;justify-content: space-between;">
<div class="col-footer col-md-3" style="display: flex;flex-direction: column;place-content: center;">
<img src="img/portfolio/B2.png" width="50%">
<p class="footer-title" style="color: #fff;padding-top: 10%;font-size: 0.8em; text-transform:capitalize">成功职场第一步,从Start-Line开始</p>
</div>
<div class="col-footer col-md-3 widget_recent_entries">
<h2 class="footer-title">网站导航</h2>
<h2 class="footer-title">网站首页</h2>
<h2 class="footer-title">实习项目</h2>
<div class="col-footer col-md-3 widget_recent_entries" style="display: flex;flex-direction: column;place-items: center;place-content: center;">
<a class="footer-title" href="index.html" style="color:#66CA94">网站导航</a>
<a class="footer-title" href="index.html">网站首页</a>
<a class="footer-title" href="participated.html">实习项目</a>
</div>
<div class="col-footer col-md-3">
<h2 class="footer-title">关于我们</h2>
<h2 class="footer-title">网站首页</h2>
<h2 class="footer-title">实习项目</h2>
<div class="col-footer col-md-3" style="display: flex;flex-direction: column;place-items: center;place-content: center;">
<a class="footer-title" href="index.html" style="color:#66CA94">关于我们</a>
<a class="footer-title" href="index.html">关于Start-Line</a>
<a class="footer-title" href="participated.html">联系我们</a>
</div>
<div class="col-footer col-md-3">
<h2 class="footer-title">关注Start-Line</h2>
<img src="img/portfolio/EWM.png" style="width: 50%;">
<div class="col-footer col-md-3" style="display: flex;flex-direction: column;place-items: center;place-content: center;" id="sevenimg4">
<h2 class="footer-title" style="color: #66CA94;text-transform:capitalize">关注Start-Line</h2>
<div id='ewm-footer' style="text-align: center;">
</div>
<!-- <img src="img/portfolio/EWM.png" style="width: 50%;"> -->
</div>
</div>
</div>
</div>
</footer>
<!-- jQuery -->
... ...
... ... @@ -14,106 +14,60 @@ $(document).ready(function() {
console.log(res);
$("#recommend-num").html(res.data.records.length)
$.each(res.data.records, function(key, value) {
let title = `<div class="col-lg-32 col-sm-60" style="display: flex;place-content: center;background-color: #fff;">
<a href="#" class="portfolio-box3" style="display: flex;">
<img src="${value.img2}" alt="" style="width:25%;margin-right: 5%;">
<div style="display: flex; flex-direction: column;">
<h5 style="color: #323232;">${value.field}</h5>
<p style="padding-top: 10%;color: #5a5a5a;">${value.futitle}</p>
</div>
</a>
</div>`
let title = `
<div class="col-lg-32 col-sm-60" style="display: flex;place-content: center;background-color: #fff;">
<a href="#" class="portfolio-box3" style="display: flex;">
<img src="${value.img2}" alt="" style="width:25%;margin-right: 5%;">
<div style="display: flex; flex-direction: column;">
<h5 style="color: #323232;">${value.field}</h5>
<p style="padding-top: 10%;color: #5a5a5a;">${value.futitle}</p>
</div>
</a>
</div>`
$('#allProject').append(title)
})
}, function(res) {
console.log(res);
})
// $.ajax({
// type: 'POST',
// url: 'http://192.168.1.241:9004/warrantyTwo/warrantyTwos',
// headers: {
// "Content-Type": "application/json",
// "token": localStorage.getItem('token'),
// },
// data: JSON.stringify({
// current: 1,
// size: 4
// }),
// success: function(res) {
// console.log(res);
// $("#recommend-num").html(res.data.records.length)
// $.each(res.data.records, function(key, value) {
// let title = `<div class="col-lg-32 col-sm-60" style="display: flex;place-content: center;background-color: #fff;">
// <a href="#" class="portfolio-box3" style="display: flex;">
// <img src="${value.img2}" alt="" style="width:25%;margin-right: 5%;">
// <div style="display: flex; flex-direction: column;">
// <h5 style="color: #323232;">${value.field}</h5>
// <p style="padding-top: 10%;color: #5a5a5a;">${value.futitle}</p>
// </div>
// </a>
// </div>`
// $('#allProject').append(title)
// })
// }
// })
//查看个人信息赋值名字
var url2 = "/login/userInfo"; // 接口
// 调用公共ajax
ajax(url2, "GET", header, function(res) {
console.log(res);
$("#header-name").html(res.data.surname + res.data.userName)
$("#title-name").html(res.data.surname + res.data.userName)
}, function(res) {
console.log(res);
$("#header-name").html(res.data.surname + res.data.userName)
$("#title-name").html(res.data.surname + res.data.userName)
})
// $.ajax({
// type: 'GET',
// url: 'http://192.168.1.241:9004/login/userInfo',
// headers: {
// "Content-Type": "application/json",
// "token": localStorage.getItem('token'),
// },
// success: function(res) {
// console.log(res);
// console.log(res.data.surname + res.data.userName);
// $("#header-name").html(res.data.surname + res.data.userName)
// $("#title-name").html(res.data.surname + res.data.userName)
// }
// })
//首页
var url3 = "/warranty/warrantyList";
var header3 = {
"Content-Type": "application/x-www-form-urlencoded"
}
ajax(url3, "GET", header3, function(res) {
console.log('1', res);
}, function(res) {
console.log(res);
let EWM = `<img src="${res.data.sevenimg4}" width="100%">`
$('#ewm-footer').html(EWM)
})
})
//获取用户VIP信息判断是否是VIP
function setPersonal() {
var url = "/login/userInfo"; // 接口
var header = {
"Content-Type": "application/json",
"token": localStorage.getItem('token'),
}
// 调用公共ajax
"Content-Type": "application/json",
"token": localStorage.getItem('token'),
}
// 调用公共ajax
ajax(url, "GET", header, function(res) {
console.log(res);
if (res.data.status1 == 1) {
window.location.href = 'personalCenter.html'
} else {
window.location.href = 'personalCenter2.html'
}
}, function(res) {
console.log(res);
})
// $.ajax({
// type: 'GET',
// url: 'http://192.168.1.241:9004/login/userInfo',
// headers: {
// "Content-Type": "application/json",
// "token": localStorage.getItem('token'),
// },
// success: function(res) {
// console.log(res);
// if (res.data.status1 == 1) {
// window.location.href = 'personalCenter.html'
// } else {
// window.location.href = 'personalCenter2.html'
// }
// }
// })
console.log(res);
}, function(res) {
console.log(res);
if (res.data.status1 == 1) {
window.location.href = 'personalCenter.html'
} else {
window.location.href = 'personalCenter2.html'
}
})
}
\ No newline at end of file
... ...