Browse Source

feat 去掉插件全屏组件

erekook 11 months ago
parent
commit
a10014dcad
3 changed files with 10 additions and 18 deletions
  1. 6 6
      app.js
  2. 1 9
      app.json
  3. 3 3
      pages/video/video.js

+ 6 - 6
app.js

@@ -75,9 +75,9 @@ App({
                         this.globalData.unionId = res.unionId;
                         console.log('登录成功', this.globalData)
                         SendEvent('login', {
-                            "userCode":res.userCode,
-                            "openId":res.openId,
-                            "unionId":res.unionId
+                            "userCode": res.userCode,
+                            "openId": res.openId,
+                            "unionId": res.unionId
                         })
                         resolve(res);
                     }).catch(err => {
@@ -145,9 +145,9 @@ async function onNovelPluginLoad(data) {
     getApp().globalData.novelManager = novelManager
     rewardVideoLoad()
 
-    novelManager.setFullScreenComponentStatus({
-        show: true,
-    });
+    // novelManager.setFullScreenComponentStatus({
+    //     show: true,
+    // });
 
     let pluginInfo = novelManager.getPluginInfo();
     let innerBookId = pluginInfo.query?.innerBookId;

+ 1 - 9
app.json

@@ -19,18 +19,10 @@
     "navigationBarTitleText": "WeChat",
     "navigationBarTextStyle": "black"
   },
-  "usingComponents": {
-    "full-screen": "/components/full-screen/full-screen"
-  },
   "plugins": {
     "novel-plugin": {
       "version": "latest",
-      "provider": "wx293c4b6097a8a4d0",
-      "genericsImplementation": {
-        "novel": {
-          "full-screen": "/components/full-screen/full-screen"
-        }
-      }
+      "provider": "wx293c4b6097a8a4d0"
     }
   },
   "tabBar": {

+ 3 - 3
pages/video/video.js

@@ -220,9 +220,9 @@ Page({
 
     onTabItemTap(item) {
         console.log(item.index)
-        // setTimeout(() => {
-        //     this.interstitalPlayFn()
-        // }, 1000)
+        setTimeout(() => {
+            this.interstitalPlayFn()
+        }, 1000)
     },
 
     // 插屏广告加载