You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
Page({
|
|
|
|
onLoad:function(options){
|
|
|
|
console.log(options);
|
|
|
|
let book = JSON.parse(options.bookstr);
|
|
|
|
console.log(book);
|
|
|
|
var that=this
|
|
|
|
that.setData({
|
|
|
|
bookid:book.bookid,
|
|
|
|
bookname:book.bookname,
|
|
|
|
bookauthor: book.bookauthor,
|
|
|
|
booksort: book.booksort,
|
|
|
|
booknum: book.booknum,
|
|
|
|
bookimage: book.bookimage
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
console.log(this.data.bookid)
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
borrowsubmit: function (e) {
|
|
|
|
wx.showModal({
|
|
|
|
title: '借阅成功',
|
|
|
|
confirmColor: "rgba(253, 153, 65, 1)",
|
|
|
|
success: function (res) {
|
|
|
|
if (res.confirm) {
|
|
|
|
wx.switchTab({
|
|
|
|
url: '../shouye/shouye',
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|