18 lines
314 B
TypeScript
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)
|
||
|
});
|
||
|
}
|
||
|
});
|