Commit 1b55e33c by 郑国强

update

parent 382986ca
body { body {
...@@ -36,7 +36,7 @@ header { ...@@ -36,7 +36,7 @@ header {
color: #fff; color: #fff;
} }
.nav_user:hover { .nav_user:hover {
color: rgb(49, 68, 94); /* color: rgb(49, 68, 94); */
} }
.nav_main { .nav_main {
......
.search_logo, .search_logo,
...@@ -34,9 +34,9 @@ ...@@ -34,9 +34,9 @@
margin-top: 10px; margin-top: 10px;
width: 845px; width: 845px;
height: 66px; height: 66px;
border-radius: 20px; /* border-radius: 20px;
border-bottom-left-radius: 0; border-bottom-left-radius: 0;
border-top-left-radius: 0; border-top-left-radius: 0; */
font-size: 30px; font-size: 30px;
line-height: 66px; line-height: 66px;
padding: 10px; padding: 10px;
...@@ -50,9 +50,11 @@ ...@@ -50,9 +50,11 @@
position: absolute; position: absolute;
left: 85%; left: 85%;
top: 77%; top: 77%;
width: 154px; width: 100px;
height: 66px; 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-image: url(../image/search_logo.png);
background-repeat: no-repeat; background-repeat: no-repeat;
background-color: #4072b8; background-color: #4072b8;
......
class navigation { class navigation {
...@@ -77,7 +77,7 @@ checkMenu(e,bool){ ...@@ -77,7 +77,7 @@ checkMenu(e,bool){
let axiosget = axios.create({ let axiosget = axios.create({
baseURL: 'http://nhtdfz.natappfree.cc/test//sendborrowapplication', baseURL: 'http://nhtdfz.natappfree.cc/test//sendborrowapplication',
timeout: 3000, timeout: 3000,
method:'get' method:'post'
}); });
// new navigation(obj); // new navigation(obj);
let obj = [ let obj = [
...@@ -122,7 +122,7 @@ new navigation(obj); ...@@ -122,7 +122,7 @@ new navigation(obj);
function getDate(){ function getDate(){
let time = new Date(); 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 { ...@@ -170,8 +170,8 @@ class searchResult {
let index = $("[class*='detail_btn']").index(e.target); let index = $("[class*='detail_btn']").index(e.target);
let borrowInfor={ let borrowInfor={
username:'张三', //用户名 username:'zhangshuai2021005731', //用户名
bookid:'', bookid:'1',
// bookname:'', //书名 // bookname:'', //书名
borrow_date:'',//借阅日期 borrow_date:'',//借阅日期
time:''//借阅时间 time:''//借阅时间
...@@ -193,7 +193,8 @@ class searchResult { ...@@ -193,7 +193,8 @@ class searchResult {
let number=borrowInfor.time.match(duration)[0]; let number=borrowInfor.time.match(duration)[0];
if(number>0&&number<30){ if(number>0&&number<30){
borrowInfor.time = number; borrowInfor.time = number;
// console.log(borrowInfor.time);
// console.log(10);
}else{ }else{
alert('请输入有效借阅时长'); alert('请输入有效借阅时长');
return; return;
...@@ -201,16 +202,20 @@ class searchResult { ...@@ -201,16 +202,20 @@ class searchResult {
} }
borrowInfor.borrow_date=getDate(); borrowInfor.borrow_date=getDate();
borrowInfor.bookid=this.obj[index].id; borrowInfor.bookid=this.obj[index].id;
borrowInfor.bookid="1";
console.log(borrowInfor)
// console.log(borrowInfor.bookid)
axiosget({ axiosget({
// menthod:'get',
menthod:'get',
data:borrowInfor data:borrowInfor
}).then(response=>{ }).then(response=>{
alert('申请成功!请等待管理员同意后取书') console.log(response);
alert(response.data.message)
},reason=>{ },reason=>{
alert("拒绝");
alert(reason.data.message)
}) })
}) })
...@@ -374,6 +379,7 @@ let axiospost = axios.create({ ...@@ -374,6 +379,7 @@ let axiospost = axios.create({
result.remove(); result.remove();
} }
let obj2 = response.data; let obj2 = response.data;
console.log(obj2);
result = new searchResult(obj2); result = new searchResult(obj2);
},reason=>{ },reason=>{
......
<!DOCTYPE html> <!DOCTYPE html>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<nav class="nav"> <nav class="nav">
<div class="nav_left"> <div class="nav_left">
<img class='little-logo' src="image/little-logo.png" alt="little-logo"> <img class='little-logo' src="image/little-logo.png" alt="little-logo">
<span class="nav_user"> 欢迎进入,云顶书库 </span> <span class="nav_user"> 欢迎进入,xxx </span>
</div> </div>
...@@ -48,24 +48,24 @@ ...@@ -48,24 +48,24 @@
<span>联系电话:0106868088</span> <span>联系电话:0106868088</span>
<ul> <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> </ul>
</div> </div>
<div class="footer-item"> <div class="footer-item">
<span>联系电话:0106868088</span> <span>官方邮箱:0s_beyond_clouds@163.com</span>
<ul> <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> </ul>
</div> </div>
<div class="footer-item"> <div class="footer-item">
<span>联系电话:0106868088</span> <span>Copyright ◎2019云开源社区All Rights Reserved · 晋ICP备 18010660号-2 </span>
<ul> <ul>
<li><a href="">营业执照</a></li> <li><a href="">营业执照</a></li>
<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