Skip to content

Commit

Permalink
修复小说MIP从详情页进入内页时不打adShow日志的问题 (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
easonyq authored Apr 2, 2019
1 parent 1312378 commit cd88aab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/mip-shell-xiaoshuo/common/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {getCurrentWindow, getRootWindow, getParamFromString} from './util'
import state from './state'

const {isRootPage, novelInstance, originalUrl} = state(window)
const pageType = novelInstance ? novelInstance.currentPageMeta.pageType : ''

/**
* 发送webb性能日志
Expand Down Expand Up @@ -67,7 +66,7 @@ export function getSiteInfo () {
let isZongheng = zonghengPattern.test(originalUrl)
let site
isZongheng ? site = 'zongheng' : site = 'iqiyi'
return {site, pageType}
return {site, pageType: novelInstance ? novelInstance.currentPageMeta.pageType : ''}
}

/**
Expand Down Expand Up @@ -114,7 +113,7 @@ export function showAdLog () {
* @param {string} newVal 改变后的值
*/
function observer (oldVal, newVal) {
if ((newVal === true) && (pageType !== 'detail')) {
if (newVal === true) {
sendTCLog('interaction', {
type: 'o',
action: 'adShow'
Expand Down

0 comments on commit cd88aab

Please sign in to comment.