Commit e27cce6e by 郑国强

css

parent 134429b3
class navigation { class navigation {
...@@ -168,24 +168,24 @@ class searchResult { ...@@ -168,24 +168,24 @@ class searchResult {
let index = $("[class*='detail_borrow']").index(e.target); let index = $("[class*='detail_borrow']").index(e.target);
let borrowInfor={ let borrowInfor={
username:'', username:'', //用户名
bookname:'', bookname:'', //书名
borrow_date:'', borrow_date:'',//借阅日期
Borrowing_time:'', Borrowing_time:'',//借阅事件
userId:''
} }
let fliter = /[\D]/; let fliter = /[\D]/;
let duration = /[\d]{1,2}/; let duration = /[\d]{1,2}/;
borrowInfor.bookName=this.obj[index].bookName borrowInfor.bookname=this.obj[index].bookName
borrowInfor.date=$('.detail_duration')[index].value; borrowInfor.Borrowing_time=$('.detail_duration')[index].value;
if(fliter.test(borrowInfor.date)==='null') { if(fliter.test(borrowInfor.Borrowing_time)==='null') {
return alert('请输入正确借阅天数') return alert('请输入正确借阅天数')
} else if (borrowInfor.date.match(duration)[0]){ } else if (borrowInfor.Borrowing_time.match(duration)[0]){
borrowInfor.date = borrowInfor.date.match(duration)[0]; borrowInfor.Borrowing_time = borrowInfor.Borrowing_time.match(duration)[0];
} }
borrowInfor.time=getDate(); borrowInfor.borrow_date=getDate();
borrowInfor.userId='不知道'; borrowInfor.userId='不知道';
this.obj[index]. this.obj[index].
axiospost({ axiospost({
......
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