瀏覽代碼

htgj 搜索的处理

db 2 年之前
父節點
當前提交
e113f25257
共有 3 個文件被更改,包括 17 次插入7 次删除
  1. 1 0
      src/views/htgj/report.vue
  2. 15 6
      src/views/htgj/search.vue
  3. 1 1
      src/views/htgj/strategyDetail.vue

+ 1 - 0
src/views/htgj/report.vue

@@ -216,6 +216,7 @@ const { reportInfo } = toRefs(state);
     }
     }
   }
   }
   .content-top {
   .content-top {
+    margin-top: 115px;
     .report-title {
     .report-title {
       font-size: 34px;
       font-size: 34px;
       font-weight: bold;
       font-weight: bold;

+ 15 - 6
src/views/htgj/search.vue

@@ -197,12 +197,21 @@ const onClickTabs = () => {
 
 
 /* 去往详情 */
 /* 去往详情 */
 const goDetail = (item) => {
 const goDetail = (item) => {
-  router.push({
-    path: "detail",
-    query: {
-      id: item.ArticleId,
-    },
-  });
+  if (item.IsNeedJump) {
+    router.push({
+      path: "/htgj/strategyDetail",
+      query: {
+        id: item.ArticleId,
+      },
+    });
+  } else {
+    router.push({
+      path: "/htgj/detail",
+      query: {
+        id: item.ArticleId,
+      },
+    });
+  }
 };
 };
 
 
 watch(
 watch(

+ 1 - 1
src/views/htgj/strategyDetail.vue

@@ -12,7 +12,7 @@ const state = reactive({
   reportInfo: {},
   reportInfo: {},
 });
 });
 const rerportId = ref(null);
 const rerportId = ref(null);
-const haveData = ref();
+const haveData = ref(1);
 const showTips = ref(false);
 const showTips = ref(false);
 
 
 //点击回到搜索页面
 //点击回到搜索页面