erekook 10 месяцев назад
Родитель
Сommit
d970bd669e
3 измененных файлов с 6 добавлено и 5 удалено
  1. 4 3
      pages/collect-video/video.js
  2. 1 1
      pages/video/video.js
  3. 1 1
      project.private.config.json

+ 4 - 3
pages/collect-video/video.js

@@ -396,7 +396,7 @@ Page({
    */
   formatVideoAdList(arr) {
     // 原生广告间隔,激励广告间隔
-    let templateGap = 5,
+    let templateGap = 8,
       rewardGap = 0;
     // console.log(this.data.globalConfig);
     // if (this.data.globalConfig.isHomeTemplateAd === 1) {
@@ -462,6 +462,7 @@ Page({
   // 点击合集
   clickCollect(e) {
     const { id, info, index } = e.currentTarget.dataset;
+    const _this = this;
     this.setData({
       collectId: id,
       tagId: info.tagId,
@@ -472,9 +473,9 @@ Page({
     });
     console.log(id, info, index, "合集详情");
     wx.redirectTo({
-      url: "/pages/collect-video/video?collectId=${id}",
+      url: `/pages/collect-video/video?collectId=${id}`,
       fail(err) {
-        this.getCollectVideoDetail();
+        _this.getCollectVideoDetail();
       },
     });
   },

+ 1 - 1
pages/video/video.js

@@ -149,7 +149,7 @@ Page({
           }, 500);
         } else {
           wx.navigateTo({
-            url: "/pages/collect-video/video?collectId" + collectId,
+            url: "/pages/collect-video/video?collectId=" + collectId,
           });
         }
       }

+ 1 - 1
project.private.config.json

@@ -27,7 +27,7 @@
           "name": "合集视频",
           "pathName": "pages/video/video",
           "query": "collectId=18&type=tuiguang",
-          "scene": 1008,
+          "scene": 1000,
           "launchMode": "default",
           "groupInfo": {
             "groupIdx": 0,