From 6bf742b19037b59da70f2bc4119c9c0c68430870 Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Sat, 19 Jul 2025 18:22:38 +0800
Subject: [PATCH] 1
---
src/components/tabHead.vue | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/src/components/tabHead.vue b/src/components/tabHead.vue
index d7c2401..c80aeb5 100644
--- a/src/components/tabHead.vue
+++ b/src/components/tabHead.vue
@@ -44,7 +44,7 @@
@load="onLoad"
v-if="(lists && lists.length > 0) || !finished"
>
- <van-cell v-for="item in lists" :key="item.id">
+ <van-cell v-for="item in lists" :key="item.id" @click="toDetails(item)">
<div class="search_item">
<div class="search_item_left">
<div class="search_item_left_name">{{ item.name }}</div>
@@ -167,7 +167,23 @@
// 提交搜索
this.init();
this.onLoad();
- }
+ },
+ // 点击进入详情
+ toDetails(item) {
+ const obj = {
+ pid: item.code || "",
+ type: item.stock_type || ""
+ };
+ window.localStorage.setItem("kLine", JSON.stringify(obj));
+
+ this.$router.push({
+ path: "/kline",
+ query: {
+ code: item.code,
+ type: item.stock_type
+ }
+ });
+ },
}
};
</script>
--
Gitblit v1.9.3