24 lines
472 B
TypeScript
24 lines
472 B
TypeScript
import request from '../../../utils/request';
|
|
|
|
Page({
|
|
data: {
|
|
bookId: '',
|
|
bookUrl: '',
|
|
title: ''
|
|
},
|
|
|
|
onLoad(options) {
|
|
const { id, bookUrl, title } = options;
|
|
console.log('Reader页面接收到的参数:', {
|
|
id,
|
|
bookUrl: decodeURIComponent(bookUrl),
|
|
title: decodeURIComponent(title)
|
|
});
|
|
|
|
this.setData({
|
|
bookId: id,
|
|
bookUrl: decodeURIComponent(bookUrl),
|
|
title: decodeURIComponent(title)
|
|
});
|
|
}
|
|
});
|