From 977b13da9e05462aa821d0c2fbafd66f8f44e04f Mon Sep 17 00:00:00 2001 From: ZhangYong Date: Thu, 30 Oct 2025 16:25:06 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=84=8F=E5=9B=BE?= =?UTF-8?q?=E8=AF=86=E5=88=AB=E5=90=8Ek=E7=BA=BF=E5=9B=BE=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/deepExploration/MainForceActions.vue | 198 ++++++++++++++--------------- 1 file changed, 96 insertions(+), 102 deletions(-) diff --git a/pages/deepExploration/MainForceActions.vue b/pages/deepExploration/MainForceActions.vue index 3838622..97fd330 100644 --- a/pages/deepExploration/MainForceActions.vue +++ b/pages/deepExploration/MainForceActions.vue @@ -93,11 +93,19 @@ import { getUserInfo } from "@/api/member" + import { + useUserStore + } from '@/stores/modules/userInfo.js' const deepExplorationStore = useDeepExplorationStore() + const userInfo = getUserInfo() + //历史数据 const historyData = ref({}) + //登录弹窗提示ref + const loginPrompt = ref(null) + // 响应式变量定义 const type = ref('deepExploration') const iSMT = ref(0) @@ -182,6 +190,13 @@ //获取模型数据 const handleModels = async () => { try { + + if (userInfo.isVisitor) { + console.log('是游客'); + loginPrompt.value.show() + return + } + console.log('搜了吗'); // markdownContent.value = '\n## 📊 主力追踪分析:\n\n### 🕵️ 主力行为\n\t1. 📊 该股庄家中长期筹码成本价格为 360.249,短期资金成本价格为 412.577。该股筹码分散,当日筹码成本价格为 444.330。\n\t2. 🔍 近日没有出现主力集中吸筹。\n\t3. 📈 近期主力持仓比例大于散户持仓比例。 当日主力持仓增加。 当日散户持仓减少。\n\n### 📊 空间维度:\n\t- 📉 预测低一值: 443.092 \n - 📈 预测高一值: 466.458\n\t- 📉 预测低二值: 447.354\n\t- 📈 预测高二值: 462.514\n\tAI智能均线空头排列,当前卖盘小于买盘\n\n### 综合作战\n\t\t\t当前股票处于安全区,牵牛绳为红色,出现蓝色推进K线。\n\t\t\t该股整体趋势相对较强,个股正处于推进上涨的关键阶段。若当前持有该股票,建议继续持有,进行持续跟踪。若当前无该股票,建议持续跟踪,等待适当时机再进行介入。\n\n---\n*该内容由AI生成,仅供参考,投资有风险,请注意甄别。*\n ' // htmlContent.value = marked.parse(markdownContent.value); loading.value = true; @@ -190,94 +205,85 @@ handleDefault() } else { if (currentIndex.value == 0) { - console.log('搜索', searchName.value); - const result = await getModel1First({ - content: searchName.value, - language: "cn", - marketList: "hk,cn,usa,my,sg,vi,in,gb", - model: currentIndex.value + 1 - }) - console.log('result', result); - if (result.code == 200) { - stockCode.value = result.data.code - // stockName.value = result.data.name - recordId.value = result.data.recordId - parentId.value = result.data.parentId - stockId.value = result.data.stockId - language.value = result.data.language - market.value = result.data.market - - - const res = await getModel1Second({ - language: language.value, - recordId: recordId.value, - parentId: parentId.value, - stockId: stockId.value, - token: 'pCtw6AYK0EHAaIexoFHsbZjtsfEAIhcmwkCFm6uKko8VPfMvyDiODL9v9c0veic9fIpQbvT8zN4sH/Si6Q' + console.log('搜索', searchName.value); + const result = await getModel1First({ + content: searchName.value, + language: "cn", + marketList: "hk,cn,usa,my,sg,vi,in,gb", + model: currentIndex.value + 1 }) - if (res.code == 200) { - const rawMarkdown = res.data.markdown; - const adaptedMarkdown = rawMarkdown.replace(/^### /gm, ''); // 全局替换行首的### - markdownContent.value = adaptedMarkdown; - // markdownContent.value = res.data.markdown + console.log('result', result); + if (result.code == 200) { + stockCode.value = result.data.code + // stockName.value = result.data.name + recordId.value = result.data.recordId + parentId.value = result.data.parentId + stockId.value = result.data.stockId + language.value = result.data.language + market.value = result.data.market + + + const res = await getModel1Second({ + language: language.value, + recordId: recordId.value, + parentId: parentId.value, + stockId: stockId.value, + token: 'pCtw6AYK0EHAaIexoFHsbZjtsfEAIhcmwkCFm6uKko8VPfMvyDiODL9v9c0veic9fIpQbvT8zN4sH/Si6Q' + }) + if (res.code == 200) { + const rawMarkdown = res.data.markdown; + const adaptedMarkdown = rawMarkdown.replace(/^### /gm, ''); // 全局替换行首的### + markdownContent.value = adaptedMarkdown; + // markdownContent.value = res.data.markdown + htmlContent.value = marked.parse(markdownContent.value); + await getServerData() + } + console.log('res', res); + } else if (result.code == 400) { + markdownContent.value = result.message; htmlContent.value = marked.parse(markdownContent.value); + } else { + return } - console.log('res', res); - - await getServerData() - - - } else if (result.code == 400) { - markdownContent.value = result.message; - htmlContent.value = marked.parse(markdownContent.value); - } else { - return - } } else if (currentIndex.value == 1) { - console.log('搜索', searchName.value); - const result = await getModel2First({ - content: searchName.value, - language: "cn", - marketList: "hk,cn,usa,my,sg,vi,in,gb", - model: currentIndex.value + 1 - }) - console.log('result', result); - if (result.code == 200) { - stockCode.value = result.data.code - // stockName.value = result.data.name - recordId.value = result.data.recordId - parentId.value = result.data.parentId - stockId.value = result.data.stockId - language.value = result.data.language - market.value = result.data.market - - - const res = await getModel2Second({ - language: language.value, - recordId: recordId.value, - parentId: parentId.value, - stockId: stockId.value, - token: 'pCtw6AYK0EHAaIexoFHsbZjtsfEAIhcmwkCFm6uKko8VPfMvyDiODL9v9c0veic9fIpQbvT8zN4sH/Si6Q' + console.log('搜索', searchName.value); + const result = await getModel2First({ + content: searchName.value, + language: "cn", + marketList: "hk,cn,usa,my,sg,vi,in,gb", + model: currentIndex.value + 1 }) - if (res.code == 200) { - const rawMarkdown = res.data.markdown; - const adaptedMarkdown = rawMarkdown.replace(/^### /gm, ''); // 全局替换行首的### - markdownContent.value = adaptedMarkdown; - // markdownContent.value = res.data.markdown + console.log('result', result); + if (result.code == 200) { + stockCode.value = result.data.code + recordId.value = result.data.recordId + parentId.value = result.data.parentId + stockId.value = result.data.stockId + language.value = result.data.language + market.value = result.data.market + const res = await getModel2Second({ + language: language.value, + recordId: recordId.value, + parentId: parentId.value, + stockId: stockId.value, + token: 'pCtw6AYK0EHAaIexoFHsbZjtsfEAIhcmwkCFm6uKko8VPfMvyDiODL9v9c0veic9fIpQbvT8zN4sH/Si6Q' + }) + if (res.code == 200) { + const rawMarkdown = res.data.markdown; + const adaptedMarkdown = rawMarkdown.replace(/^### /gm, ''); // 全局替换行首的### + markdownContent.value = adaptedMarkdown; + // markdownContent.value = res.data.markdown + htmlContent.value = marked.parse(markdownContent.value); + await getServerData() + } + console.log('res', res); + } else if (result.code == 400) { + markdownContent.value = result.message; htmlContent.value = marked.parse(markdownContent.value); + } else { + return } - console.log('res', res); - - await getServerData() - - - } else if (result.code == 400) { - markdownContent.value = result.message; - htmlContent.value = marked.parse(markdownContent.value); - } else { - return - } - }else if(currentIndex.value == 2){ + } else if (currentIndex.value == 2) { console.log('搜索', searchName.value); const result = await getModel3First({ content: searchName.value, @@ -294,8 +300,8 @@ stockId.value = result.data.stockId language.value = result.data.language market.value = result.data.market - - + + const res = await getModel3Second({ language: language.value, recordId: recordId.value, @@ -309,19 +315,16 @@ markdownContent.value = adaptedMarkdown; // markdownContent.value = res.data.markdown htmlContent.value = marked.parse(markdownContent.value); + await getServerData() } console.log('res', res); - - await getServerData() - - } else if (result.code == 400) { markdownContent.value = result.message; htmlContent.value = marked.parse(markdownContent.value); } else { return } - }else if(currentIndex.value == 3){ + } else if (currentIndex.value == 3) { console.log('搜索', searchName.value); const result = await getModel4First({ content: searchName.value, @@ -338,8 +341,6 @@ stockId.value = result.data.stockId language.value = result.data.language market.value = result.data.market - - const res = await getModel4Second({ language: language.value, recordId: recordId.value, @@ -353,27 +354,19 @@ markdownContent.value = adaptedMarkdown; // markdownContent.value = res.data.markdown htmlContent.value = marked.parse(markdownContent.value); + await getServerData() } console.log('res', res); - - await getServerData() - - } else if (result.code == 400) { markdownContent.value = result.message; htmlContent.value = marked.parse(markdownContent.value); } else { return } - }else{ + } else { return } - - - } - - } catch (e) { error.value = e.message || '加载失败,请重试'; } finally { @@ -406,7 +399,7 @@ const getServerData = async () => { const result = await getData({ market: market.value || '', - code: searchName.value || '', + code: stockCode.value || '', language: "cn", brainPrivilegeState: 1, marketList: "usa.sg.my.hk.cn.can.vi.th.in.gb" @@ -732,13 +725,14 @@ } .right { - margin-left: 60rpx; + margin-left: 50rpx; color: #6a6a6a; font-family: "PingFang SC"; font-size: 13px; font-style: normal; font-weight: 400; line-height: 15px; + white-space: nowrap; } } From 2890020539499cd874705a0a9c584c928155aa64 Mon Sep 17 00:00:00 2001 From: maziyang <2049865907@qq.com> Date: Thu, 30 Oct 2025 16:27:10 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9C=AA=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E7=9A=84=E5=BC=B9=E7=AA=97=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/customerServicePlatform/csPlatformIndex.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/customerServicePlatform/csPlatformIndex.vue b/pages/customerServicePlatform/csPlatformIndex.vue index d0cfd00..033225a 100644 --- a/pages/customerServicePlatform/csPlatformIndex.vue +++ b/pages/customerServicePlatform/csPlatformIndex.vue @@ -1,4 +1,5 @@