Commit e27cce6e by 郑国强

css

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