Commit 1b55e33c by 郑国强

update

parent 382986ca
body {
body {
......@@ -36,7 +36,7 @@ header {
color: #fff;
}
.nav_user:hover {
color: rgb(49, 68, 94);
/* color: rgb(49, 68, 94); */
}
.nav_main {
......
.search_logo,
.search_logo,
......@@ -34,9 +34,9 @@
margin-top: 10px;
width: 845px;
height: 66px;
border-radius: 20px;
/* border-radius: 20px;
border-bottom-left-radius: 0;
border-top-left-radius: 0;
border-top-left-radius: 0; */
font-size: 30px;
line-height: 66px;
padding: 10px;
......@@ -50,9 +50,11 @@
position: absolute;
left: 85%;
top: 77%;
width: 154px;
width: 100px;
height: 66px;
border-radius: 20px;
border-radius: 15px;
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
background-image: url(../image/search_logo.png);
background-repeat: no-repeat;
background-color: #4072b8;
......
class navigation {
class navigation {
......@@ -77,7 +77,7 @@ checkMenu(e,bool){
let axiosget = axios.create({
baseURL: 'http://nhtdfz.natappfree.cc/test//sendborrowapplication',
timeout: 3000,
method:'get'
method:'post'
});
// new navigation(obj);
let obj = [
......@@ -122,7 +122,7 @@ new navigation(obj);
function getDate(){
let time = new Date();
return `${time.getFullYear()}-${time.getMonth()}-${time.getDate()} ${time.getHours()}:${time.getMinutes()}:${time.getSeconds()}`
return `${time.getFullYear()}-${time.getMonth()}-${time.getDate()} ${time.getHours()}:${time.getMinutes()}:${time.getSeconds()}`
}
......@@ -170,8 +170,8 @@ class searchResult {
let index = $("[class*='detail_btn']").index(e.target);
let borrowInfor={
username:'张三', //用户名
bookid:'',
username:'zhangshuai2021005731', //用户名
bookid:'1',
// bookname:'', //书名
borrow_date:'',//借阅日期
time:''//借阅时间
......@@ -193,7 +193,8 @@ class searchResult {
let number=borrowInfor.time.match(duration)[0];
if(number>0&&number<30){
borrowInfor.time = number;
// console.log(borrowInfor.time);
// console.log(10);
}else{
alert('请输入有效借阅时长');
return;
......@@ -201,16 +202,20 @@ class searchResult {
}
borrowInfor.borrow_date=getDate();
borrowInfor.bookid=this.obj[index].id;
borrowInfor.bookid="1";
console.log(borrowInfor)
// console.log(borrowInfor.bookid)
axiosget({
menthod:'get',
// menthod:'get',
data:borrowInfor
}).then(response=>{
alert('申请成功!请等待管理员同意后取书')
console.log(response);
alert(response.data.message)
},reason=>{
alert("拒绝");
alert(reason.data.message)
})
})
......@@ -374,6 +379,7 @@ let axiospost = axios.create({
result.remove();
}
let obj2 = response.data;
console.log(obj2);
result = new searchResult(obj2);
},reason=>{
......
<!DOCTYPE html>
<!DOCTYPE html>
......@@ -17,7 +17,7 @@
<nav class="nav">
<div class="nav_left">
<img class='little-logo' src="image/little-logo.png" alt="little-logo">
<span class="nav_user"> 欢迎进入,云顶书库 </span>
<span class="nav_user"> 欢迎进入,xxx </span>
</div>
......@@ -48,24 +48,24 @@
<span>联系电话:0106868088</span>
<ul>
<li><a href="">云顶书院官网</a></li>
<li><a href="">云顶书院官网</a></li>
<li><a href="">云顶</a></li>
<li><a href="">云顶书院</a></li>
<li><a href="">云顶书院</a></li>
<li><a href="">关于我们</a></li>
<li><a href="">联系我们</a></li>
<li><a href="">版权声明</a></li>
<li><a href="">投诉举报</a></li>
</ul>
</div>
<div class="footer-item">
<span>联系电话:0106868088</span>
<span>官方邮箱:0s_beyond_clouds@163.com</span>
<ul>
<li><a href="">云顶书院官网</a></li>
<li><a href="">云顶书院官网</a></li>
<li><a href="">云顶</a></li>
<li><a href="">云顶书院</a></li>
<li><a href="">云顶书院</a></li>
<li><a href="">代码托管平台</a></li>
<li><a href="">加入我们</a></li>
<li><a href="">商务合作</a></li>
<li><a href="">用户协议</a></li>
<li><a href="">意见反馈</a></li>
</ul>
</div>
<div class="footer-item">
<span>联系电话:0106868088</span>
<span>Copyright ◎2019云开源社区All Rights Reserved · 晋ICP备 18010660号-2 </span>
<ul>
<li><a href="">营业执照</a></li>
<li><a href="">网络文化经营许可证</a></li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment