Explorar el Código

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

hankzhang hace 10 meses
padre
commit
8bd0f13f3c
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      pages/collect-video/video.js

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

@@ -462,6 +462,7 @@ Page({
   // 点击合集
   // 点击合集
   clickCollect(e) {
   clickCollect(e) {
     const { id, info, index } = e.currentTarget.dataset;
     const { id, info, index } = e.currentTarget.dataset;
+    const _this = this;
     this.setData({
     this.setData({
       collectId: id,
       collectId: id,
       tagId: info.tagId,
       tagId: info.tagId,
@@ -472,9 +473,9 @@ Page({
     });
     });
     console.log(id, info, index, "合集详情");
     console.log(id, info, index, "合集详情");
     wx.redirectTo({
     wx.redirectTo({
-      url: "/pages/collect-video/video?collectId=${id}",
+      url: `/pages/collect-video/video?collectId=${id}`,
       fail(err) {
       fail(err) {
-        this.getCollectVideoDetail();
+        _this.getCollectVideoDetail();
       },
       },
     });
     });
   },
   },