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.
zx/shuji/shuji.js

35 lines
776 B

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,
6 years ago
booknum: book.booknum,
bookimage: book.bookimage
})
console.log(this.data.bookid)
6 years ago
},
borrowsubmit: function (e) {
wx.showModal({
title: '借阅成功',
confirmColor: "rgba(253, 153, 65, 1)",
success: function (res) {
if (res.confirm) {
wx.switchTab({
url: '../shouye/shouye',
})
}
}
})
}
})