|
|
@@ -0,0 +1,50 @@
|
|
|
+const novelPlugin = requirePlugin('novel-plugin')
|
|
|
+import { getNovelDetail, getVideoDetail } from '../../api/api'
|
|
|
+Component({
|
|
|
+ properties: {
|
|
|
+ novelManagerId: {
|
|
|
+ type: Number,
|
|
|
+ value: -1,
|
|
|
+ },
|
|
|
+ chapterId: {
|
|
|
+ type: String,
|
|
|
+ value: '',
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ data: {
|
|
|
+ posterUrl: {
|
|
|
+ type: String,
|
|
|
+ value: ''
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ ready() {
|
|
|
+ const novelManager = novelPlugin.getNovelManager(this.properties.novelManagerId)
|
|
|
+ if (getApp().globalData.isShowDialog) {
|
|
|
+ setTimeout(() => {
|
|
|
+ getApp().globalData.isShowDialog = false
|
|
|
+ novelManager.navigateBack()
|
|
|
+ }, 3000)
|
|
|
+ }
|
|
|
+
|
|
|
+ // getVideoDetail(this.properties.bookId).then(res => {
|
|
|
+ // console.log('res',res, 111111111111111111111111111122222222222222222222222)
|
|
|
+ // this.setData({
|
|
|
+ // posterUrl: res.cover
|
|
|
+ // })
|
|
|
+ // })
|
|
|
+ },
|
|
|
+
|
|
|
+ methods: {
|
|
|
+ // 海报点击事件
|
|
|
+ handlePosterTap() {
|
|
|
+ const novelManager = novelPlugin.getNovelManager(this.properties.novelManagerId)
|
|
|
+ novelManager.setFullScreenComponentStatus({
|
|
|
+ show: false,
|
|
|
+ })
|
|
|
+ novelManager.navigateBack()
|
|
|
+ console.log('点击海报')
|
|
|
+ }
|
|
|
+ },
|
|
|
+})
|