book-min/miniprogram/pages/bookshelf/reader.ts

18 lines
314 B
TypeScript

import request from '../../utils/request';
Page({
data: {
bookId: '',
bookUrl: '',
title: ''
},
onLoad(options) {
const { id, bookUrl, title } = options;
this.setData({
bookId: id,
bookUrl: decodeURIComponent(bookUrl),
title: decodeURIComponent(title)
});
}
});