Skip to content

Commit

Permalink
feat: 小说阅读页增加pageType字段 (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
caoru828 authored Oct 16, 2018
1 parent 4969240 commit 9f5a38c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/mip-shell-xiaoshuo/ad/strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,14 @@ export default class Strategy {
getNovelData () {
let currentWindow = this.getCurrentWindow()
const {isLastPage, currentPage, chapterName, originalUrl, isRootPage} = state(currentWindow)
const pageType = window.MIP.mipshellXiaoshuo.currentPageMeta.pageType || ''
const name = window.MIP.mipshellXiaoshuo.currentPageMeta.header.title || ''
const officeId = window.MIP.mipshellXiaoshuo.currentPageMeta.officeId || ''
const silentFollow = this.getSilentFollow(isRootPage)
// 基础novelData数据
let novelData = {
isLastPage,
pageType,
chapter: currentPage.chapter,
page: currentPage.page,
chapterName,
Expand Down

0 comments on commit 9f5a38c

Please sign in to comment.