From 874ce19afb208b51a13d2635e094bba18021354e Mon Sep 17 00:00:00 2001
From: wangyi <3432649580@qq.com>
Date: Thu, 30 Oct 2025 15:50:02 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E5=9B=BD=E6=97=97=E5=9B=BE=E7=89=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/deepExploration_header.vue | 50 ++++++++++++++++++++++++++++-------
pages/deepMate/deepMate.vue | 36 ++++++++++++++++++++++---
2 files changed, 72 insertions(+), 14 deletions(-)
diff --git a/components/deepExploration_header.vue b/components/deepExploration_header.vue
index 7ebb3fd..94ea260 100644
--- a/components/deepExploration_header.vue
+++ b/components/deepExploration_header.vue
@@ -66,8 +66,11 @@
>
🇺🇸
+ >
{{ item.stockName }}
@@ -159,6 +162,29 @@ const onDrawerBackClick = () => {
}, 180);
};
+// 历史记录国家图像
+function stockImage(Market) {
+ switch (Market) {
+ case "usa":
+ return "../../static/marketSituation-image/country-flag/us.png";
+ case "can":
+ return "../../static/marketSituation-image/country-flag/can.png";
+ case "vi":
+ return "../../static/marketSituation-image/country-flag/vi.png";
+ case "th":
+ return "../../static/marketSituation-image/country-flag/th.png";
+ case "my":
+ return "../../static/marketSituation-image/country-flag/my.png";
+ case "sg":
+ return "../../static/marketSituation-image/country-flag/sg.png";
+ case "hk":
+ return "../../static/marketSituation-image/country-flag/hk.png";
+ case "cn":
+ return "../../static/marketSituation-image/country-flag/cn.png";
+ }
+}
+
+
// 历史记录详情
async function itemClick(item) {
const res = await RecordInfoApi({
@@ -167,19 +193,17 @@ async function itemClick(item) {
model: 5,
});
if (res.code == 200) {
-
const message = res.data;
const deepExplorationStore = useDeepExplorationStore();
deepExplorationStore.setDeepExplorationInfo(message);
- console.log('点击了历史数据',deepExplorationStore.deepExplorationInfo);
+ console.log("点击了历史数据", deepExplorationStore.deepExplorationInfo);
onDrawerBackClick();
- setTimeout(() => {
- uni.navigateTo({
- url: '/pages/deepExploration/MainForceActions'
- });
- }, 200);
+ setTimeout(() => {
+ uni.navigateTo({
+ url: "/pages/deepExploration/MainForceActions",
+ });
+ }, 200);
}
-
}
const historyList = ref([]);
@@ -464,6 +488,12 @@ onMounted(() => {});
height: 50rpx;
}
+
+.icon-stock {
+ width: 36rpx;
+ height: 36rpx;
+}
+
.flag-circle {
width: 50rpx;
height: 50rpx;
diff --git a/pages/deepMate/deepMate.vue b/pages/deepMate/deepMate.vue
index 922fc8c..d887782 100644
--- a/pages/deepMate/deepMate.vue
+++ b/pages/deepMate/deepMate.vue
@@ -276,8 +276,11 @@
>
🇺🇸
+ >
{{ item.stockName }}
@@ -348,8 +351,6 @@ const drawerOffsetY = ref(0);
const searchHistory = ref([]);
const historyList = ref([]);
-
-
// 处理页面加载时的路由参数
onLoad((options) => {
console.log("deepMate页面接收到参数:", options);
@@ -948,6 +949,28 @@ const onBackTopClick = () => {
scrollToTop();
};
+// 历史记录国家图像
+function stockImage(Market) {
+ switch (Market) {
+ case "usa":
+ return "../../static/marketSituation-image/country-flag/us.png";
+ case "can":
+ return "../../static/marketSituation-image/country-flag/can.png";
+ case "vi":
+ return "../../static/marketSituation-image/country-flag/vi.png";
+ case "th":
+ return "../../static/marketSituation-image/country-flag/th.png";
+ case "my":
+ return "../../static/marketSituation-image/country-flag/my.png";
+ case "sg":
+ return "../../static/marketSituation-image/country-flag/sg.png";
+ case "hk":
+ return "../../static/marketSituation-image/country-flag/hk.png";
+ case "cn":
+ return "../../static/marketSituation-image/country-flag/cn.png";
+ }
+}
+
// 历史记录详情
async function itemClick(item) {
const res = await postHistoryDetail({
@@ -1642,6 +1665,11 @@ async function itemClick(item) {
margin-right: 12rpx;
}
+.icon-stock {
+ width: 36rpx;
+ height: 36rpx;
+}
+
.flag-circle {
width: 36rpx;
height: 36rpx;