From 16ba613a8230b83cfdecd5d36bd3b376d7213113 Mon Sep 17 00:00:00 2001
From: renzhijun <3051619471@qq.com>
Date: Wed, 4 Feb 2026 11:07:11 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E8=82=A1=E6=90=9C=E7=B4=A2=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/geGuCenter/detail.vue | 103 ++++++++++++++++++-
pages/geGuCenter/geGuCenter.vue | 172 ++++++++++++++++++++++++++++----
pages/ztfx/ztfx.vue | 31 +++---
3 files changed, 269 insertions(+), 37 deletions(-)
diff --git a/pages/geGuCenter/detail.vue b/pages/geGuCenter/detail.vue
index f303561..4de1538 100644
--- a/pages/geGuCenter/detail.vue
+++ b/pages/geGuCenter/detail.vue
@@ -5,9 +5,15 @@
+ placeholder-style="color:#eeeeee" confirm-type="search" @input="clickSearch()" />
+
+
+
+
+ {{item.stock_code}} {{item.stock_name}}
+
+
-
@@ -60,7 +66,9 @@
inject
} from 'vue'
import {
- marketHeatmap
+ marketHeatmap,
+ searchStockInfo,
+ stockBasicInfo
} from '@/request/api'
export default {
@@ -71,6 +79,12 @@
allStockData: [],
filteredData: [],
currentDate: '', // 最终要赋值的日期
+ searchResultTop:'', //搜索结果
+ contentTop: '',
+ keywords: '', //搜索关键字
+ searchShow:false, //是否展示搜索结果
+ searchResultList:[], //搜索结果
+ selectSearchStockInfo:null, //选中的搜索股票信息
topLists: [{
title: '超大盘股',
value: '(>1000亿)',
@@ -89,10 +103,66 @@
},
onLoad(e) {
this.currentDate = e.currentDate
+ this.searchResultTop = this.navH + (20 + 70) / 750 * inject('windowWidth')
this.contentTop = this.navH + (20 + 70 + 25) / 750 * inject('windowWidth')
this.marketHeatmap()
},
methods: {
+ /**
+ * 点击搜索
+ */
+ clickSearch() {
+ if(this.keywords) {
+ this.getSearchStockInfoListData()
+ }else
+ this.selectSearchStockInfo = null
+ },
+ /**
+ * 点击搜索结果背景
+ */
+ clickSearchResultBg()
+ {
+ this.searchShow = false
+ },
+ /**
+ * 点击搜索结果列表项
+ */
+ clickSearchResultListItem(item) {
+ this.selectSearchStockInfo = item
+ this.searchShow = false
+ this.getStockBasicInfoData()
+ //this.getQuoteDetailsData()
+ },
+ /**
+ * 根据输入内容获取搜索列表项
+ */
+ getSearchStockInfoListData() {
+ let param = {q:this.keywords,limit:10}
+ searchStockInfo(param).then(res=>{
+ this.searchResultList = res.data
+ this.searchShow = this.searchResultList.length>0
+ }).catch(error=>{
+
+ })
+ },
+ /**
+ * 获取股票基本信息
+ */
+ getStockBasicInfoData() {
+ let code = this.stockCode
+ if (this.selectSearchStockInfo) {
+ code = this.selectSearchStockInfo.stock_code
+ }
+ // stockBasicInfo(code).then(res=>{
+ // this.stockBasicInfo = res.data
+ // this.navTitle = res.data.SECNAME+'('+res.data.SECCODE+')'
+ // }).catch(error=>{
+
+ // })
+ uni.navigateTo({
+ url: '/pagesStock/stockCenterDetails/stockCenterDetails?code=' + code
+ })
+ },
handleTypeClick(index) {
this.list2Index = index;
// 先请求数据,再筛选
@@ -130,8 +200,10 @@
},
marketHeatmap() {
let param = {
- limit: 500,
- date: this.currentDate
+ limit: 500
+ }
+ if (this.currentDate && this.currentDate !== 'undefined' && this.currentDate.trim() !== '') {
+ param.date = this.currentDate;
}
marketHeatmap(param).then(res => {
// 存储原始数据
@@ -218,4 +290,25 @@
background-color: white;
border-radius: 10rpx;
}
+ .searchResultList {
+ background-color: #00000080;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ padding: 0 25rpx;
+ .list
+ {
+ background-color: white;
+ border-radius: 10rpx;
+ .item
+ {
+ padding: 0 42rpx;
+ line-height: 60rpx;
+ font-size: 22rpx;
+ font-weight: 500;
+ color: #333;
+ }
+ }
+ z-index: 20;
+ }
\ No newline at end of file
diff --git a/pages/geGuCenter/geGuCenter.vue b/pages/geGuCenter/geGuCenter.vue
index c6db2b2..af63f4c 100644
--- a/pages/geGuCenter/geGuCenter.vue
+++ b/pages/geGuCenter/geGuCenter.vue
@@ -5,9 +5,15 @@
+ placeholder-style="color:#eeeeee" confirm-type="search" @input="clickSearch()" />
+
+
+
+
+ {{item.stock_code}} {{item.stock_name}}
+
+
-
@@ -74,12 +80,12 @@
mode="widthFix">
异动监控
-
全部
-
+ -->
{{currentDate}}
@@ -88,9 +94,9 @@
-
- 折线图占位
+ 折线图占位 -->
@@ -107,8 +113,9 @@
- {{item.concept_name}}
+ {{truncateText(item.concept_name, 5)}}
+
\ No newline at end of file
diff --git a/pages/ztfx/ztfx.vue b/pages/ztfx/ztfx.vue
index 3264f23..3853fbf 100644
--- a/pages/ztfx/ztfx.vue
+++ b/pages/ztfx/ztfx.vue
@@ -8,7 +8,7 @@
AI总结
- 市场情绪温和,主线题材:存储芯片
+
@@ -94,7 +94,7 @@
-
板块关联图内容区域
-->
-
+
+
-
+
-
+
@@ -355,8 +355,13 @@
level: '无热度'
} // ≤20%
],
+ // bkTypes: [
+ // '板块关联图',
+ // '板块分布',
+ // '热门概念词云'
+ // ],
bkTypes: [
- '板块关联图',
+
'板块分布',
'热门概念词云'
],
@@ -446,7 +451,7 @@
this.fetchData()
// 页面就绪后,若默认选中的是板块分布,初始化饼图
//if (this.activeType === 0) {
- this.initGraphChart(); // 初始化关系图
+ //this.initPieChart(); // 初始化关系图
//} else if (this.activeType === 1) {
// 初始化饼图
//}
@@ -467,10 +472,12 @@
switch (index) {
case 0:
- this.$refs.graphChartRef && this.initGraphChart(); // 增加存在性判断
+ //this.$refs.graphChartRef && this.initGraphChart(); // 增加存在性判断
+ this.$refs.chartRef && this.initPieChart(); // 增加存在性判断
break;
case 1:
- this.$refs.chartRef && this.initPieChart(); // 增加存在性判断
+ //this.$refs.chartRef && this.initPieChart(); // 增加存在性判断
+ this.initWordCloud();
break;
case 2:
this.initWordCloud();