natasha 1 年之前
父節點
當前提交
f7db6c108e
共有 1 個文件被更改,包括 19 次插入8 次删除
  1. 19 8
      src/components/common/BookPeruseCard.vue

+ 19 - 8
src/components/common/BookPeruseCard.vue

@@ -134,14 +134,25 @@ export default {
     },
     handleLink(){
         let url  = this.LoginNavIndex +'&&&1&&&2&&&3&&&' + this.previousPage
-        this.$router.push({
-            path: "/bookPeruseItem",
-            query: {
-                headerConfig: encodeURIComponent(url),
-                cardType: 'jingdu',
-                id: this.item.id
-            },
-        });
+        if(!this.$route.query.from){
+            this.$router.push({
+                path: "/bookPeruseItem",
+                query: {
+                    headerConfig: encodeURIComponent(url),
+                    cardType: 'jingdu',
+                    id: this.item.id
+                },
+            });
+        }else{
+            this.$router.push({
+                path: "/articlePeruseDetail",
+                query: {
+                    headerConfig: encodeURIComponent(url),
+                    peruseId: this.item.id
+                },
+            });
+        }
+        
     }
   },
   //生命周期 - 创建完成(可以访问当前this实例)