2 次代碼提交 b651ab27c2 ... 4940084740

作者 SHA1 備註 提交日期
  harry 4940084740 pagesource 修改 1 年之前
  harry 623b0d9dcd 修改 appid 1 年之前
共有 5 個文件被更改,包括 14 次插入20 次删除
  1. 1 1
      project.tt.json
  2. 10 10
      src/components/VideoSwiper/index.tsx
  3. 1 8
      src/const/index.ts
  4. 1 0
      src/http/api/index.ts
  5. 1 1
      src/shareHelper/index.ts

+ 1 - 1
project.tt.json

@@ -1,7 +1,7 @@
 {
   "miniprogramRoot": "./",
   "projectname": " longvideoImerse",
-  "appid": "testAppId",
+  "appid": "wx46fed622e98fbc6c",
   "setting": {
     "es6": false,
     "minified": false

+ 10 - 10
src/components/VideoSwiper/index.tsx

@@ -5,8 +5,8 @@ import {
     View, Image, Button
 } from '@tarojs/components'
 import Route from '@/class/Route'
-import { DETAIL_PAGESOURCE, CATEGORY_PAGESOURCE, VIEW_AUTO_TYPE } from '@/const'
-import { videoViewReport, videoPlayReport, videoActionReport, shareContactReport,shareReport, weixinFriend } from '@/logger'
+import { CATEGORY_PAGESOURCE, VIEW_AUTO_TYPE, USER_SHARE_PAGESOURCE } from '@/const'
+import { videoViewReport, videoPlayReport, videoActionReport, shareContactReport, shareReport, weixinFriend } from '@/logger'
 import { once, formatSecondsAsTime } from '@/utils'
 import { VideoInfo, PlayState } from '@/constants/commentTypes'
 import { shareTimeline } from '@/shareHelper'
@@ -560,11 +560,11 @@ function logReportVideoView(video, current, index) {
         }),
         viewId: video.viewId,
         flowPool: video.flowPool || '',
-        measureId: video.measure,
-        measureType: video.measureType,
-        pageSource: DETAIL_PAGESOURCE,
+        measureId: video.measure || '',
+        measureType: video.measureType || '',
+        pageSource: video.pageSource || USER_SHARE_PAGESOURCE,
         recommendLogVO: video.recommendLogVO || '',
-        recommendSource: video.recommendSource,
+        recommendSource: video.recommendSource || '',
         rootPageSource: '', // TODO: 分享之后加上
         rootPageTimestamp: '', // TODO: 分享之后加上
         shareDepth: '', // TODO: 分享之后加上
@@ -578,7 +578,7 @@ function logReportVideoPlay(video) {
 
     videoPlayReport({
         videoId: video.id,
-        pageSource: DETAIL_PAGESOURCE,
+        pageSource: video.pageSource || USER_SHARE_PAGESOURCE,
         rootPageSource: CATEGORY_PAGESOURCE,
         shareDepth: '', // TODO: 分享之后
         rootPageTimestamp: '', // TODO: 分享之后
@@ -602,7 +602,7 @@ function logReportVideoPlaySuccess(video) {
     videoActionReport({
         businessType: 'videoPlaySuccess',
         videoId: video.id,
-        pageSource: DETAIL_PAGESOURCE,
+        pageSource: video.pageSource || USER_SHARE_PAGESOURCE,
         rootPageSource: CATEGORY_PAGESOURCE,
         shareDepth: '', // TODO: 分享之后
         rootPageTimestamp: '', // TODO: 分享之后
@@ -626,7 +626,7 @@ function logReportVideoRealPlay(video) {
     videoActionReport({
         businessType: 'videoRealPlay',
         videoId: video.id,
-        pageSource: DETAIL_PAGESOURCE,
+        pageSource: video.pageSource || USER_SHARE_PAGESOURCE,
         rootPageSource: CATEGORY_PAGESOURCE,
         shareDepth: '', // TODO: 分享之后
         rootPageTimestamp: '', // TODO: 分享之后
@@ -650,7 +650,7 @@ function logReportVideoPlayEnd(video) {
     videoActionReport({
         businessType: 'videoPlayEnd',
         videoId: video.id,
-        pageSource: DETAIL_PAGESOURCE,
+        pageSource: video.pageSource || USER_SHARE_PAGESOURCE,
         rootPageSource: CATEGORY_PAGESOURCE,
         shareDepth: '', // TODO: 分享之后
         rootPageTimestamp: '', // TODO: 分享之后

+ 1 - 8
src/const/index.ts

@@ -4,16 +4,9 @@ export const CATEGORY_ID = 55
 
 export const CATEGORY_PAGESOURCE = 'immerse-pages/category'
 
-export const DETAIL_PAGESOURCE = 'immerse-pages/user-videos-detail'
-export const DETAIL_RECOMMEND = 'immerse-pages/detail-recommend'
-
 export const USER_SHARE_PAGESOURCE = 'immerse-pages/user-videos-share'
-export const RECOMMEND_PAGESOURCE = 'immerse-pages/user-videos-share-recommend-detail'
-
-
-export const DEFAULT_ICON = 'http://weapppiccdn.yishihui.com/wxicon/common/icon_share_collect_x.png'
+export const RECOMMEND_PAGESOURCE = 'immerse-pages/user-videos-share-recommend'
 
-export const LIKE_ICON = 'http://weapppiccdn.yishihui.com/wxicon/common/icon_share_collect_s.png'
 
 export const USER_SENCE = {
     share: '0',

+ 1 - 0
src/http/api/index.ts

@@ -3,6 +3,7 @@ import { BASE_DOMAIN, INVITE_API_DOMAIN, BASE_COMMON_DOMAIN } from './base'
 
 function env(BASE_DOMAIN) {
     const envApi = Taro.getStorageSync('env')
+    // const envApi = 'staging'eih
     return BASE_DOMAIN[envApi || 'production']
 }
 

+ 1 - 1
src/shareHelper/index.ts

@@ -1,7 +1,7 @@
 import Taro from '@tarojs/taro'
 import { stringify, S4 } from '@/utils'
 import useHotLaunch from '@/hooks/useHotLaunch'
-import { RECOMMEND_PAGESOURCE, USER_SHARE_PAGESOURCE, CATEGORY_PAGESOURCE, DETAIL_PAGESOURCE, DETAIL_RECOMMEND } from '@/const'
+import { RECOMMEND_PAGESOURCE, USER_SHARE_PAGESOURCE, CATEGORY_PAGESOURCE } from '@/const'
 import { shareReport, weixinFriend, shareClickReport } from '@/logger'
 import { APP_ID, APP_TYPE, VERSION_CODE } from '@/config'