Explorar el Código

fix 插屏日志

erekook hace 11 meses
padre
commit
bf3e22c360

+ 4 - 4
components/full-screen/full-screen.js

@@ -48,13 +48,13 @@ Component({
         adUnitId: adId
       })
       interstitialAd.onLoad(() => {
-        console.log('视频页插屏广告onLoad')
+        console.log('full-screen插屏广告onLoad')
       })
       interstitialAd.onError((err) => {
-        console.log('视频页插屏广告onError', err)
+        console.log('full-screen插屏广告onError', err)
       })
       interstitialAd.onClose(() => {
-        console.log('视频页插屏广告onClose')
+        console.log('full-screen插屏广告onClose')
       })
     },
 
@@ -62,7 +62,7 @@ Component({
     interstitalPlayFn() {
       if (interstitialAd) {
         interstitialAd.show().catch((err) => {
-          console.error(err)
+          console.error('full-screen显示报错', err)
         })
       }
     },

+ 4 - 4
pages/bookshelf/bookshelf.js

@@ -85,13 +85,13 @@ Page({
             adUnitId: adId
         })
         interstitialAd.onLoad(() => {
-            console.log('视频页插屏广告onLoad')
+            console.log('书架页插屏广告onLoad')
         })
         interstitialAd.onError((err) => {
-            console.log('视频页插屏广告onError', err)
+            console.log('书架页插屏广告onError', err)
         })
         interstitialAd.onClose(() => {
-            console.log('视频页插屏广告onClose')
+            console.log('书架页插屏广告onClose')
         })
     },
 
@@ -99,7 +99,7 @@ Page({
     interstitalPlayFn() {
         if (interstitialAd) {
             interstitialAd.show().catch((err) => {
-                console.error(err)
+                console.error('书架页插屏显示错误', err)
             })
         }
     },

+ 7 - 7
pages/category/category.js

@@ -83,13 +83,13 @@ Page({
             adUnitId: adId
         })
         interstitialAd.onLoad(() => {
-            console.log('视频页插屏广告onLoad')
+            console.log('分类页插屏广告onLoad')
         })
         interstitialAd.onError((err) => {
-            console.log('视频页插屏广告onError', err)
+            console.log('分类页插屏广告onError', err)
         })
         interstitialAd.onClose(() => {
-            console.log('视频页插屏广告onClose')
+            console.log('分类页插屏广告onClose')
         })
     },
 
@@ -97,7 +97,7 @@ Page({
     interstitalPlayFn() {
         if (interstitialAd) {
             interstitialAd.show().catch((err) => {
-                console.error(err)
+                console.error('分类页插屏显示错误', err)
             })
         }
     },
@@ -127,7 +127,7 @@ Page({
             page: 1,
             hasMore: true
         });
-        SendEvent('click_classify_type', {"gender": gender, "uuid": app.globalData.uuid});
+        SendEvent('click_classify_type', { "gender": gender, "uuid": app.globalData.uuid });
         if (this.data.isLoggedIn) {
             await this.loadCategories();
         }
@@ -169,7 +169,7 @@ Page({
             page: 1,
             hasMore: true
         });
-        SendEvent('click_classify_name', {"category": category, "uuid": app.globalData.uuid});
+        SendEvent('click_classify_name', { "category": category, "uuid": app.globalData.uuid });
         this.loadBookList(category);
     },
 
@@ -233,7 +233,7 @@ Page({
             id,
             wxbookid
         } = e.currentTarget.dataset;
-        SendEvent('click_classfy_novel', {"novel_id": id, "wx_book_id": wxbookid, "uuid": app.globalData.uuid})
+        SendEvent('click_classfy_novel', { "novel_id": id, "wx_book_id": wxbookid, "uuid": app.globalData.uuid })
         goToBookDetail({
             bookId: id,
             wxBookId: wxbookid

+ 11 - 11
pages/index/index.js

@@ -10,7 +10,7 @@ import {
 import {
     goToBookDetail, SendEvent
 } from '../../utils/util'
-import {apple} from '../../config/config'
+import { apple } from '../../config/config'
 
 const app = getApp()
 let interstitialAd = null
@@ -121,13 +121,13 @@ Page({
             adUnitId: adId
         })
         interstitialAd.onLoad(() => {
-            console.log('视频页插屏广告onLoad')
+            console.log('书城页插屏广告onLoad')
         })
         interstitialAd.onError((err) => {
-            console.log('视频页插屏广告onError', err)
+            console.log('书城页插屏广告onError', err)
         })
         interstitialAd.onClose(() => {
-            console.log('视频页插屏广告onClose')
+            console.log('书城页插屏广告onClose')
         })
     },
 
@@ -135,7 +135,7 @@ Page({
     interstitalPlayFn() {
         if (interstitialAd) {
             interstitialAd.show().catch((err) => {
-                console.error(err)
+                console.error('书城页插屏显示错误', err)
             })
         }
     },
@@ -334,7 +334,7 @@ Page({
             gender
         });
         SendEvent('click_bookmall_classify', {
-            "gender": gender,"uuid": app.globalData.uuid
+            "gender": gender, "uuid": app.globalData.uuid
         });
         // 重新加载数据
         this.loadAllData();
@@ -372,33 +372,33 @@ Page({
         switch (feature) {
             case 'recent':
                 // 修改为跳转到书架页面的阅读历史标签
-                SendEvent('click_shelf_tab', {'uuid': app.globalData.uuid})
+                SendEvent('click_shelf_tab', { 'uuid': app.globalData.uuid })
                 wx.switchTab({
                     url: '/pages/bookshelf/bookshelf'
                 });
                 break;
             case 'user':
                 // 修改为跳转到我的页面
-                SendEvent('click_mine_tab', {'uuid': app.globalData.uuid})
+                SendEvent('click_mine_tab', { 'uuid': app.globalData.uuid })
                 wx.switchTab({
                     url: '/pages/mine/mine'
                 });
                 break;
             case 'category':
                 // 修改为跳转到分类页面
-                SendEvent('click_classify_tab', {'uuid': app.globalData.uuid})
+                SendEvent('click_classify_tab', { 'uuid': app.globalData.uuid })
                 wx.switchTab({
                     url: '/pages/category/category'
                 });
                 break;
             case 'hot':
-                SendEvent('click_bookmall_classify', {'uuid': app.globalData.uuid})
+                SendEvent('click_bookmall_classify', { 'uuid': app.globalData.uuid })
                 wx.navigateTo({
                     url: '/pages/book/list?type=hot'
                 });
                 break;
             case 'recommend':
-                SendEvent('click_bookmall_classify', {'uuid': app.globalData.uuid})
+                SendEvent('click_bookmall_classify', { 'uuid': app.globalData.uuid })
                 wx.navigateTo({
                     url: '/pages/book/list?type=recommend'
                 });

+ 6 - 6
pages/mine/mine.js

@@ -3,7 +3,7 @@ import {
     apple
 } from '../../config/config'
 
-import {SendEvent} from '../../utils/util'
+import { SendEvent } from '../../utils/util'
 
 let interstitialAd = null
 
@@ -68,13 +68,13 @@ Page({
             adUnitId: adId
         })
         interstitialAd.onLoad(() => {
-            console.log('视频页插屏广告onLoad')
+            console.log('我的页插屏广告onLoad')
         })
         interstitialAd.onError((err) => {
-            console.log('视频页插屏广告onError', err)
+            console.log('我的页插屏广告onError', err)
         })
         interstitialAd.onClose(() => {
-            console.log('视频页插屏广告onClose')
+            console.log('我的页插屏广告onClose')
         })
     },
 
@@ -82,7 +82,7 @@ Page({
     interstitalPlayFn() {
         if (interstitialAd) {
             interstitialAd.show().catch((err) => {
-                console.error(err)
+                console.error('我的页插屏显错误', err)
             })
         }
     },
@@ -92,7 +92,7 @@ Page({
     // },
 
     goToReadingHistory() {
-        SendEvent('mine_reading_history', {"uuid": app.globalData.uuid});
+        SendEvent('mine_reading_history', { "uuid": app.globalData.uuid });
         wx.switchTab({
             url: '/pages/bookshelf/bookshelf'
         });

+ 4 - 4
pages/video/detail.js

@@ -701,13 +701,13 @@ Page({
             adUnitId: apple.ads.insertAdId
         })
         interstitialAd.onLoad(() => {
-            console.log('详情视频页插屏广告 load success')
+            console.log('视频详情页插屏广告 load success')
         })
         interstitialAd.onError((err) => {
-            console.log('详情视频页插屏广告onError', err)
+            console.log('视频详情页插屏广告onError', err)
         })
         interstitialAd.onClose(() => {
-            console.log('详情视频页插屏广告onClose')
+            console.log('视频详情页插屏广告onClose')
             this.makeVideoPlay()
         })
     },
@@ -729,7 +729,7 @@ Page({
                         this.makeVideoPlay()
                     }, 1000)
                 }
-                console.error('详情页插屏显示错误', err)
+                console.error('视频详情页插屏显示错误', err)
             })
         }
     },

+ 5 - 5
pages/video/video.js

@@ -51,7 +51,7 @@ Page({
     },
 
     onLoad(options) {
-        console.log('打开视频页面--------------------------')
+        console.log('打开视频列表页面--------------------------')
         wx.setStorageSync('jump', parseInt(options.jump)) // 是否跳转阅读器
         if (!app.globalData.uuid) {
             this.getUUID().then(uuid => {
@@ -232,13 +232,13 @@ Page({
             adUnitId: adId
         })
         interstitialAd.onLoad(() => {
-            console.log('视频页插屏广告onLoad')
+            console.log('视频列表页插屏广告onLoad')
         })
         interstitialAd.onError((err) => {
-            console.log('视频页插屏广告onError', err)
+            console.log('视频列表页插屏广告onError', err)
         })
         interstitialAd.onClose(() => {
-            console.log('视频页插屏广告onClose')
+            console.log('视频列表页插屏广告onClose')
         })
     },
 
@@ -246,7 +246,7 @@ Page({
     interstitalPlayFn() {
         if (interstitialAd) {
             interstitialAd.show().catch((err) => {
-                console.error(err)
+                console.error('视频列表页插屏显示错误', err)
             })
         }
     },