Przeglądaj źródła

Merge branch 'v2.1' of http://git.mokasz.com/maomao/mini_read_space_front into v2.1

hankzhang 10 miesięcy temu
rodzic
commit
8bd0f13f3c
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      pages/collect-video/video.js

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

@@ -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();
       },
     });
   },