diff --git a/dev/index.html b/dev/index.html deleted file mode 100644 index d8ccb62..0000000 --- a/dev/index.html +++ /dev/null @@ -1,21 +0,0 @@ - - - -
- - - - - -情绪监控-金融宇宙的【量子检测网络】核心任务:构建全市场情绪引力场雷达,实时监测资金流向和情绪波动
情绪解码-主力思维的【神经破译矩阵】核心任务:解构资金行为的量子密码,破译主力操盘意图和策略布局
情绪推演-未来战争的【时空推演舱】核心任务:基于情绪数据推演未来走势,预测市场转折点和机会窗口
情绪套利-财富裂变的【粒子对撞机】核心任务:将情绪差转化为收益粒子流,实现情绪能量的价值转换
历软件云版静态市场一致!
\r\n特此公告!
'),(s(!0),o(l,null,r(x.value,((a,n)=>(s(),o("div",{key:n,class:"announcementItem"},[c("div",y,[u(v(a.market)+": ",1),e[0]||(e[0]=c("br",null,null,-1)),(s(!0),o(l,null,r(a.code,((a,e)=>(s(),o("span",{class:"codeItem",key:e},[0!=e?(s(),o("span",A," 、 ")):t("v-if",!0),c("span",{onClick:e=>(a=>{console.log(a),w.announcementMsg=a,console.log("chatStore.announcementMsg",w.announcementMsg),_.isFeedback=!1})(a),class:"code"},v(a),9,h)])))),128))])])))),128))])])],2112))}},[["__scopeId","data-v-af5f79fe"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/Announcement.vue"]]);export{_ as default}; diff --git a/dev/static/js/BackToHomeButton-b8c47691.js b/dev/static/js/BackToHomeButton-b8c47691.js deleted file mode 100644 index cceb2e5..0000000 --- a/dev/static/js/BackToHomeButton-b8c47691.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,b as o,c as t,e as n}from"./index-f5191a6d.js";/* empty css */var a=e({__name:"BackToHomeButton",setup(e){const a=()=>{const e=navigator.userAgent;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e))console.log("用户是移动端"),"undefined"!=typeof uni&&uni.postMessage({data:{val:{name:"JWopenView",extra:{data:{type:3}}}}});else{console.log("用户是pc端");const e="development";console.log("当前的环境为:",e),window.parent.location.href="http://121.89.234.155:8807/hljw/homepage?menu=999999991"}};return(e,s)=>(o(),t("div",{class:"backToHomeBtn",onClick:a},s[0]||(s[0]=[n("img",{src:"https://d31zlh4on95l9h.cloudfront.net/images/9cbc5b2eb2327bd04d015c19d8c3f1f9.png",alt:"返回首页",class:"backImg"},null,-1),n("div",{class:"backContent"},"返回首页",-1)])))}},[["__scopeId","data-v-c708cfbc"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/components/BackToHomeButton.vue"]]);export{a as B}; diff --git a/dev/static/js/DBQBmodel-4160adda.js b/dev/static/js/DBQBmodel-4160adda.js deleted file mode 100644 index db0e4f2..0000000 --- a/dev/static/js/DBQBmodel-4160adda.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,u as e,r as a,k as i,o as t,z as o,G as n,b as c,c as l,e as r,H as d,d as m,f as g,X as u,I as v,J as p,C as f,F as b,a9 as h}from"./index-f5191a6d.js";import{s as x}from"./setHeight-96dcefe6.js";import{B as _}from"./BackToHomeButton-b8c47691.js";/* empty css */const I=["src"],P={class:"bottom-icon"},k=["src"],B={class:"content-text"},w=["src"],y=["src"],A=["src"],C={class:"buttons-container"},D=["src"],j={key:0,class:"noPermissionDialog"},S={class:"noPermissionCloseBtn"};var E=s({__name:"DBQBmodel",setup(s){const E=e(),H=a(null),T=a(window.innerWidth),z=i((()=>T.value>1024?"/aixiaocaishen/static/images/电脑背景-b224424a.png":"/aixiaocaishen/static/images/手机背景-966a3db9.png")),O=()=>{T.value=window.innerWidth};t((()=>{x(H.value),window.addEventListener("resize",O)})),o((()=>{window.removeEventListener("resize",O)}));const L=a(!1),M=a({}),Q=async()=>{try{let s={token:localStorage.getItem("localToken"),model:1};const e=navigator.userAgent;let a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e),i="pc";a&&(i=/iPhone|iPad|iPod/i.test(e)?"ios":(/Android/i.test(e),"android"));let t={Client:i};const o=await h(t,s);200==o.code?(sessionStorage.setItem("activeTabAI","AIchat"),sessionStorage.setItem("activeIndexAI","0"),sessionStorage.setItem("fromExternalPage","true"),E.push("/homePage")):(console.log("无权限"),L.value=!0,M.value.msg=o.msg,console.log("noPermissonDialogVisible",L.value),console.log("noPermissonDialogObj",M.value))}catch(s){console.error("获取权限失败",s)}},W=()=>{L.value=!1};return(s,e)=>{const a=n("Close"),i=n("el-icon");return c(),l(b,null,[r("div",{ref_key:"pageRef",ref:H,class:"homepage",style:u({backgroundImage:`url(${z.value})`})},[d(_),m("v-if",!0),m(" 顶部图标 "),r("img",{class:"top-icon",src:g("/aixiaocaishen/static/images/大标题-b9db8110.png"),alt:"顶部图标"},null,8,I),m(" 副标题 "),r("div",P,[r("img",{class:"sub-title",src:g("/aixiaocaishen/static/images/-s-构建场景-58defcd8.png"),alt:"构建场景化交易"},null,8,k),m(" 中间文字 "),r("div",B,[r("img",{class:"content-text1",src:g("/aixiaocaishen/static/images/-s-数据可计算-87f3e72f.png"),alt:" 数据可计算"},null,8,w),r("img",{class:"content-text2",src:g("/aixiaocaishen/static/images/-s-场景可预演-fc6530f6.png"),alt:" 场景可预演"},null,8,y),r("img",{class:"content-text3",src:g("/aixiaocaishen/static/images/-s-交易可掌控-ef0d97d2.png"),alt:" 交易可掌控"},null,8,A)]),m(" 底部按钮 "),r("div",C,[r("button",{class:"btn-item",onClick:Q},[r("img",{src:g("/aixiaocaishen/static/images/-s-开启财运-db5b9247.png"),alt:"按钮图片"},null,8,D)])])])],4),L.value?(c(),l("div",j,[r("div",{class:"noPermissionContent",onClick:W},[r("div",S,[d(i,{class:"noPermissionIcon"},{default:v((()=>[d(a)])),_:1})]),p(" "+f(M.value.msg),1)])])):m("v-if",!0)],64)}}},[["__scopeId","data-v-12d5ebd0"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/DBQBmodel.vue"]]);export{E as default}; diff --git a/dev/static/js/Emotionsmodel-df24ad19.js b/dev/static/js/Emotionsmodel-df24ad19.js deleted file mode 100644 index fd9634b..0000000 --- a/dev/static/js/Emotionsmodel-df24ad19.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,u as e,r as a,k as i,o,z as t,G as n,b as l,c,e as r,H as d,d as m,f as g,I as u,J as v,C as p,F as _,a9 as b}from"./index-f5191a6d.js";import{s as f}from"./setHeight-96dcefe6.js";import{B as h}from"./BackToHomeButton-b8c47691.js";/* empty css */const P=["src"],k={class:"bottom-icon"},x={class:"content-container"},I=["src"],w=["src"],y={class:"buttons-container"},A=["src"],B={key:0,class:"noPermissionDialog"},C={class:"noPermissionCloseBtn"};var E=s({__name:"Emotionsmodel",setup(s){const E=e(),j=a(null),S=a(window.innerWidth),D=i((()=>S.value>1024?"/aixiaocaishen/static/images/_s_四维 拷贝-397d6a3c.png":"/aixiaocaishen/static/images/-s-四维-35334e8b.png")),H=()=>{S.value=window.innerWidth};o((()=>{f(j.value),window.addEventListener("resize",H)})),t((()=>{window.removeEventListener("resize",H)}));const T=a(!1),z=a({}),O=async()=>{try{let s={token:localStorage.getItem("localToken"),model:2};const e=navigator.userAgent;let a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e),i="pc";a&&(i=/iPhone|iPad|iPod/i.test(e)?"ios":(/Android/i.test(e),"android"));let o={Client:i};const t=await b(o,s);200==t.code?(sessionStorage.setItem("activeTabAI","AiEmotion"),sessionStorage.setItem("activeIndexAI","1"),sessionStorage.setItem("fromExternalPage","true"),E.push("/homePage")):(console.log("无权限"),T.value=!0,z.value.msg=t.msg,console.log("noPermissonDialogVisible",T.value),console.log("noPermissonDialogObj",z.value))}catch(s){console.error("获取权限失败",s)}},L=()=>{T.value=!1};return(s,e)=>{const a=n("Close"),i=n("el-icon");return l(),c(_,null,[r("div",{ref_key:"pageRef",ref:j,class:"homepage"},[d(h),m(" 顶部图标 "),r("img",{class:"top-icon",src:g("/aixiaocaishen/static/images/大标题-92c56762.png"),alt:"顶部图标"},null,8,P),m(" 中间图示及说明 "),r("div",k,[r("div",x,[m(" 副标题 - 只在屏幕宽度小于等于1024px时显示 "),S.value<=1024?(l(),c("img",{key:0,class:"sub-title",src:g("/aixiaocaishen/static/images/-s-标题 拷贝-026d4753.png"),alt:"四维作战体系"},null,8,I)):m("v-if",!0),m(" 内容图 - 根据屏幕宽度动态切换 "),r("img",{class:"content-icon",src:D.value,alt:"四维情绪"},null,8,w)]),m(" 按钮区域 "),r("div",y,[r("button",{class:"btn-item",onClick:O},[r("img",{src:g("/aixiaocaishen/static/images/-s-开启财运-db5b9247.png"),alt:"开启财运"},null,8,A)])])])],512),T.value?(l(),c("div",B,[r("div",{class:"noPermissionContent",onClick:L},[r("div",C,[d(i,{class:"noPermissionIcon"},{default:u((()=>[d(a)])),_:1})]),v(" "+p(z.value.msg),1)])])):m("v-if",!0)],64)}}},[["__scopeId","data-v-08e10267"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/Emotionsmodel.vue"]]);export{E as default}; diff --git a/dev/static/js/Feedback-dfb2cab1.js b/dev/static/js/Feedback-dfb2cab1.js deleted file mode 100644 index 4cd379f..0000000 --- a/dev/static/js/Feedback-dfb2cab1.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,r as a,o as l,G as s,b as c,c as t,H as o,I as i,F as n,a0 as d,d as u,e as r,f as g,A as v,J as m,C as f,Q as k,a1 as A}from"./index-f5191a6d.js";import{u as b}from"./dataList-f4ed8a5b.js";import{h as p}from"./moment-6961f857.js";import"./userPessionCode-a6b95afd.js";import"./index-1227ea3c.js";const I={class:"feedbackImgClass"},h=["src"],C=["src"],B={class:"card"},R={class:"header-item"},F={class:"header-item"},S={class:"card"},y={key:0},w={class:"feedbackHistoryItem"},E={class:"feedbackHistoryTitle"},V=["src"],L={class:"feedbackSuccess"},U=["src"],H={class:"feedbackHistoryContent"},K={class:"feedbackHistoryImg"},M={key:1},J={class:"noFeedback"},N=["src"],O=["src"],Y={class:"imgLine"},x=["src"],Q={class:"feedbackBackBtnGroup"},W={class:"feedbackBackBtnGroup"},D={class:"imgLine"},T=["src"],z={class:"feedbackBackBtnGroup"},X={class:"imgLine"},G=["src"],P={class:"feedbackBackAttention"},j={class:"feedbackBackBtnGroup"};var Z=e({__name:"Feedback",setup(e){const Z=b(),_=a(""),q="http://39.101.133.168:8828/hljw/api/aws/upload",$=a([]),ee=a(!1),ae=a(!1),le=a(!1),se=a(""),ce=async()=>{console.log(_.value),console.log($.value);const e=localStorage.getItem("localToken");if(""==_.value&&0==$.value.length)le.value=!0,se.value="请输入反馈内容或上传图片";else if(e)try{let a="",l="",s="";$.value[0]&&(a=$.value[0].url),$.value[1]&&(l=$.value[1].url),$.value[2]&&(s=$.value[2].url),console.log(a,l,s);const c=await A({token:e,content:_.value,image1:a,image2:l,image3:s});console.log(c),oe(),ae.value=!0}catch(a){le.value=!0,se.value="反馈提交异常(错误代码:"+a.response.status+"),建议尝试更换网络环境后重新提交。"}else le.value=!0,se.value="token已失效,请重新登录!"},te=a([]),oe=async()=>{try{const e=await d({token:localStorage.getItem("localToken")});console.log(e),e.data.length>0?(ee.value=!0,te.value=e.data):ee.value=!1}catch(e){console.log(e)}},ie=()=>{_.value="",$.value=[],localStorage.getItem("feedbackContent")&&localStorage.removeItem("feedbackContent"),localStorage.getItem("feedbackFileList")&&localStorage.removeItem("feedbackFileList"),ae.value=!1},ne=()=>{le.value=!1},de=a(!1),ue=()=>{console.log("字数判断"),console.log(_.value.length),_.value.length>=2e3&&(de.value=!0)},re=()=>{de.value=!1},ge=()=>{console.log("内容改变"),console.log(_.value),localStorage.setItem("feedbackContent",_.value)},ve=function(e,a){console.log("调用check方法"),console.log(a),console.log(a.length)},me=function(e,a){console.log("调用successChange方法"),console.log(a),console.log(a.response),200==a.response.code&&$.value.push(a.response.data),console.log($.value),localStorage.setItem("feedbackFileList",JSON.stringify($.value))},fe=a(""),ke=a(!1),Ae=(e,a)=>{console.log(e,a),$.value=a,console.log("调用handleRemove方法"),console.log($.value),console.log($.value.length),localStorage.setItem("feedbackFileList",JSON.stringify($.value))},be=e=>{fe.value=e.url,ke.value=!0},pe=a(!1),Ie=()=>{pe.value=!1,Z.isFeedback=!1},he=()=>{localStorage.getItem("feedbackContent")&&localStorage.removeItem("feedbackContent"),localStorage.getItem("feedbackFileList")&&localStorage.removeItem("feedbackFileList"),pe.value=!1,Z.isFeedback=!1};return l((()=>{oe(),localStorage.getItem("feedbackContent")?_.value=localStorage.getItem("feedbackContent"):_.value="",localStorage.getItem("feedbackFileList")?$.value=JSON.parse(localStorage.getItem("feedbackFileList")):$.value=[],console.log(q)})),(e,a)=>{const l=s("el-header"),d=s("el-input"),A=s("Plus"),b=s("el-icon"),Z=s("el-upload"),oe=s("el-image"),Ce=s("el-main"),Be=s("el-scrollbar"),Re=s("el-container"),Fe=s("el-dialog"),Se=s("el-button");return c(),t(n,null,[o(Re,null,{default:i((()=>[u('尊敬的用户,目前您的token余额为0,系统将无法处理您的搜索请求,您可以补充token后再进行搜索。token兑换的入口在右上角“获取token次数”,点击即可操作哦~
');const l={class:"ing",type:"ing",flag:h,content:n};t.messages.push(l),t.isLoading=!1,t.chatInput=!1,t.firstAPICall=!1,console.log("历史记录可以点击"),W("enableInput")}}catch(p){if(m){const e=t.messages.indexOf(m);e>-1&&t.messages.splice(e,1)}console.log(p,"意图识别失败"),t.messages.push({class:"ing",type:"ing",flag:!1,content:"系统正在为您努力加载中,请稍后再试"}),t.isLoading=!1,t.chatInput=!1,t.firstAPICall=!1,console.log("历史记录可以点击"),W("enableInput")}if(h){const e={language:"cn",token:localStorage.getItem("localToken"),parentId:v.value.parentId,stockId:v.value.stockId,recordId:v.value.recordId};try{const n="development",o=await i({token:"development"==n||"test"==n?"8Csj5VVX1UbIb4C3oxrnbZi0+fEeMx8pywnIlrmTm45Cb/EllzWACLto9J9+fCFsfdgBOvKvyY94FvqlvM0":"8nkj4QBV1RPIb4CzoRTnbZi0+fEeMx8pywnIlrmTxdwROKkuwWqAWu9orpkpeXVqL98DPfeonNYpHv+mucA",market:v.value.market,code:v.value.code,language:"cn",brainPrivilegeState:1,swordPrivilegeState:1,stockForecastPrivilegeState:1,spaceForecastPrivilegeState:1,aibullPrivilegeState:1,aigoldBullPrivilegeState:1,airadarPrivilegeState:1,marketList:"usa,sg,my,hk,cn,can,vi,th,in,gb"}),l=(null==(r=o.data)?void 0:r.HomePage)||null,p=(null==(a=o.data)?void 0:a.AIGoldBull)||null,h=!!l,m=!!(p&&p.DNC&&p.FCX&&p.JN&&p.KLine20&&p.QSXH),y=/\$\$(.*?)\$\$/g;let w,b,_,k;K={one:{completed:!1,result:null,error:null,isError:!1,isEnd:!1},two:{completed:!1,result:null,error:null,isError:!1,isEnd:!1},three:{completed:!1,result:null,error:null,isError:!1,isEnd:!1},four:{completed:!1,result:null,error:null,isError:!1,isEnd:!1}};C.togglePlayPause;const I=(e,n)=>e&&C.isVoiceEnabled?(F[n].url=e,console.log(`设置音频${n}的URL:`,e),new Promise((t=>{new Q.Howl({src:[e],html5:!0,format:["mp3","acc"],rate:1.2,preload:!0,onload:()=>{console.log(`音频${n}预加载完成:`,e),F[n].loaded=!0,t()},onloaderror:(e,o)=>{console.error(`音频${n}预加载失败:`,o),F[n].loaded=!0,t()}})}))):(F[n].loaded=!0,Promise.resolve()),x=()=>K.one.completed&&F.one.loaded,A=()=>{if(x()&&!K.one.executed)if(K.one.result){K.one.executed=!0,console.log("执行OneAPI代码(文本和音频同步开始):",K.one.result),F.one.url&&(t.messages[t.inputUserIndex].audioArray.push(F.one.url),t.currentUserIndex==t.inputUserIndex?(t.messages[t.inputUserIndex].audioStatus=!0,R(F.one.url,"API1-第一个")):t.messages[t.inputUserIndex].audioStatus=!1,console.log("音频队列:添加API1音频,当前队列长度:",P.value.length)),t.messages.pop(),q({sender:"ai",class:"title1",type:"title1",content:v.value.name+"全景作战报告",date:w.data.date},"",50),t.firstAPICall=!1,console.log("历史记录可以点击");const e=Z(w.data.name+"\n"+w.data.price+"\n"+w.data.date).replace(y,((e,n)=>{try{return ie.renderToString(n,{throwOnError:!1})}catch(t){return console.error("KaTeX 渲染错误:",t),e}})),n=s({sender:"ai",class:"content1",type:"content1",content:"",isTyping:!0});if(q(n,["",e],130),l){const e=JSON.parse(JSON.stringify(u(l))),n=V(e);n&&(Y.value=!0,console.log("hasValidData设置为:",Y.value));const t=`kline-${Date.now()}`;console.log("生成K线消息ID:",t),q({sender:"ai",class:"content1",type:"content1",kline:!0,chartData:n,messageId:t,hasValidData:!0,klineType:1},"",50)}if(p&&p.DNC&&p.FCX&&p.JN&&p.KLine20&&p.QSXH){const e=JSON.parse(JSON.stringify(u(p))),n=JSON.parse(JSON.stringify(u(l)));console.log("处理 K 线数据 - 开始"),console.log("AIGoldBullData",e),console.log("HomePageData",n);const t={name:n.StockInformation.Name,Kline:e};console.log("K线数据结构:",t),console.log("K线数据名称:",t.name),console.log("K线数据:",t.Kline?t.Kline:null),Y.value=!0,console.log("hasValidData设置为:",Y.value);const o=`kline-${Date.now()+1}`;console.log("生成K线消息ID:",o),q({sender:"ai",class:"content2",type:"content2",kline:!0,chartData:t,messageId:o,hasValidData:!0,klineType:2,error:K.two.error?"2":"",isEnd:"1"},"",50)}}else t.messages.push({class:"ing",type:"ing",flag:!1,content:"系统正在为您努力加载中,请稍后再试"}),t.isLoading=!1,t.chatInput=!1,W("enableInput");if(K.one.executed&&K.two.completed&&!K.two.executed)if(K.two.result){K.two.executed=!0,console.log("执行TwoAPI代码:",K.two.result),F.two.url&&(t.messages[t.inputUserIndex].audioArray.push(F.two.url),t.currentUserIndex==t.inputUserIndex?R(F.two.url,"API2-第二个"):t.messages[t.inputUserIndex].audioStatus=!1,console.log("音频队列:添加API2音频,当前队列长度:",P.value.length)),q({sender:"ai",class:"title2",type:"title2",content:""},"",50);const e=Z(b.data.hxjzpg);console.log(e,"pc2");const n=e.replace(y,((e,n)=>{try{return ie.renderToString(n,{throwOnError:!1})}catch(t){return console.error("KaTeX 渲染错误:",t),e}})),o=s({sender:"ai",class:"content3",type:"content3",content:"",isTyping:!0,error:K.three.error?"3":"",isEnd:"2"});q(o,["",n],130)}else console.log("1111111111111111111"),K.one.isEnd&&K.two.error&&!K.two.isError&&(K.two.isError=!0,t.messages.push({class:"ing",type:"ing",flag:!1,content:"系统正在为您努力加载中,请稍后再试"}),t.isLoading=!1,t.chatInput=!1,W("enableInput"));if(K.two.executed&&K.three.completed&&!K.three.executed)if(K.three.result){K.three.executed=!0,console.log("执行ThreeAPI代码:",K.three.result),F.three.url&&(t.messages[t.inputUserIndex].audioArray.push(F.three.url),t.currentUserIndex==t.inputUserIndex?R(F.three.url,"API3-第三个"):t.messages[t.inputUserIndex].audioStatus=!1,console.log("音频队列:添加API3音频,当前队列长度:",P.value.length)),q({sender:"ai",class:"title3",type:"title3",content:ye},"",50);const e='【主力行为】
',n=`${_.data.zhuli1}
${_.data.zhuli2}
${_.data.zhuli3}
`,o=(_.data.zhuli1,_.data.zhuli2,_.data.zhuli3,s({sender:"ai",class:"content3",type:"content3",content:"",isTyping:!0}));q(o,[e,n],200),q({sender:"ai",class:"title3",type:"title3",content:we},"",50);const r=_.data.kongjian.split(","),a=(r[0],r[1],r[2],r[3],_.data.shijian,_.data.nengliang,'【空间维度】
'),l=`${r[0]},${r[1]}`,i='
',u=`${r[2]},${r[3]}
`,c='【时间维度】
',d=`${_.data.shijian}
`,f='【能量维度】
',g=`${_.data.nengliang}
`,p=s({sender:"ai",class:"content3",type:"content3",content:"",isTyping:!0,error:K.four.error?"4":"",isEnd:"3"});q(p,[a,l,i,u,c,d,f,g],200)}else K.two.isEnd&&K.three.error&&!K.three.isError&&(K.three.isError=!0,t.messages.push({class:"ing",type:"ing",flag:!1,content:"系统正在为您努力加载中,请稍后再试"}),t.isLoading=!1,t.chatInput=!1,W("enableInput"));if(K.three.executed&&K.four.completed&&!K.four.executed)if(K.four.result){K.four.executed=!0,console.log("执行FourAPI代码:",K.four.result),F.four.url&&(t.messages[t.inputUserIndex].audioArray.push(F.four.url),t.currentUserIndex==t.inputUserIndex?R(F.four.url,"API4-第四个"):t.messages[t.inputUserIndex].audioStatus=!1,console.log("音频队列:添加API4音频,当前队列长度:",P.value.length)),q({sender:"ai",class:"title3",type:"title3",content:be},"",50);k.data.cftl,k.data.gfzl;const e='【触发条件】
',n=`${k.data.cftl}
`,o='【攻防指令】
',r=`${k.data.gfzl}
`,a=s({sender:"ai",class:"content3",type:"content3",content:"",isTyping:!0});q(a,[e,n,o,r],240);const l="该内容由AI生成,请注意甄别",i=s({sender:"ai",class:"mianze",type:"mianze",content:"",isTyping:!0,end:!0});q(i,["",l],210)}else K.three.isEnd&&K.four.error&&!K.four.isError&&(K.four.isError=!0,t.messages.push({class:"ing",type:"ing",flag:!1,content:"系统正在为您努力加载中,请稍后再试"}),t.isLoading=!1,t.chatInput=!1,W("enableInput"));if(K.one.completed&&K.two.completed&&K.three.completed&&K.four.completed&&K.four.executed){console.log("所有API已完成,开始收集预加载的音频URL");const e=[];console.log("预加载音频状态检查:"),console.log("audioPreloadStatus:",F),F.one.url&&(console.log("添加预加载音频URL one:",F.one.url),e.push(F.one.url)),F.two.url&&(console.log("添加预加载音频URL two:",F.two.url),e.push(F.two.url)),F.three.url&&(console.log("添加预加载音频URL three:",F.three.url),e.push(F.three.url)),F.four.url&&(console.log("添加预加载音频URL four:",F.four.url),e.push(F.four.url)),console.log("收集到的预加载音频URLs:",e),console.log("语音是否启用:",C.isVoiceEnabled),console.log("所有接口执行完成,音频已在各接口中单独播放")}},S=async()=>{var n;try{if(w=await c(e),400==w.code)throw new Error("API返回错误码400,请求失败");console.log("OneAPI成功返回:",w),K.one.completed=!0,K.one.result=w,(null==(n=null==w?void 0:w.data)?void 0:n.url)?await I(w.data.url.trim(),"one"):F.one.loaded=!0,A()}catch(t){console.error("OneAPI失败:",t),K.one.completed=!0,K.one.error=t,F.one.loaded=!0,A()}},T=async()=>{var n;try{if(b=await d(e),400==b.code)throw new Error("API返回错误码400,请求失败");console.log("TwoAPI成功返回:",b),K.two.completed=!0,K.two.result=b,(null==(n=null==b?void 0:b.data)?void 0:n.url)?await I(b.data.url.trim(),"two"):F.two.loaded=!0,A()}catch(t){console.error("TwoAPI失败:",t),K.two.completed=!0,K.two.error=t,F.two.loaded=!0,A()}},E=async()=>{var n;try{if(_=await f(e),400==_.code)throw new Error("API返回错误码400,请求失败");console.log("ThreeAPI成功返回:",_),K.three.completed=!0,K.three.result=_,(null==(n=null==_?void 0:_.data)?void 0:n.url)?await I(_.data.url.trim(),"three"):F.three.loaded=!0,A()}catch(t){console.error("ThreeAPI失败:",t),K.three.completed=!0,K.three.error=t,F.three.loaded=!0,A()}},z=async()=>{var n;try{if(k=await g(e),400==k.code)throw new Error("API返回错误码400,请求失败");console.log("FourAPI成功返回:",k),K.four.completed=!0,K.four.result=k,(null==(n=null==k?void 0:k.data)?void 0:n.url)?await I(k.data.url.trim(),"four"):F.four.loaded=!0,A()}catch(t){console.error("FourAPI失败:",t),K.four.completed=!0,K.four.error=t,F.four.loaded=!0,A()}};h&&m?(S(),T(),E(),z()):(t.messages.pop(),t.messages.push({class:"ing",type:"ing",flag:!1,content:"数据缺失,请稍后重试"}),t.isLoading=!1,t.chatInput=!1,t.firstAPICall=!1,W("enableInput"))}catch(p){console.error("请求失败:",p),t.firstAPICall=!1,Y.value=!1}finally{await t.getUserCount()}}}}),{deep:!1}),a((()=>t.dbqbClickRecord),((e,n)=>{if(console.log("new",e),!e||0===Object.keys(e).length)return;const r=o(e);console.log("dbqbClickRecord 发生变化:",r.value);try{t.currentUserIndex=null,C.stop(),P.value=[],z.value=!1,D=0,L=!1,F.one={loaded:!1,url:null},F.two={loaded:!1,url:null},F.three={loaded:!1,url:null},F.four={loaded:!1,url:null},C.soundInstance&&(C.soundInstance.stop(),C.soundInstance.unload(),C.soundInstance=null),C.nowSound=null,K.one={completed:!1,result:null,error:null,isError:!1,isEnd:!1},K.two={completed:!1,result:null,error:null,isError:!1,isEnd:!1},K.three={completed:!1,result:null,error:null,isError:!1,isEnd:!1},K.four={completed:!1,result:null,error:null,isError:!1,isEnd:!1},Y.value=!1,H.value=[],N.value=!1,t.isLoading=!1,t.chatInput=!1,W("enableInput"),setTimeout((()=>{t.dbqbClickRecord={},console.log("dbqbClickRecord 已清空")}),0)}catch(a){console.error("停止任务时发生错误:",a)}if(r.value.wokeFlowData.One&&r.value.wokeFlowData.Two&&r.value.wokeFlowData.Three&&r.value.wokeFlowData.Four)try{t.messages=[],t.messages.push({sender:"user",timestamp:r.value.createdTime,content:r.value.keyword,audioArray:[r.value.wokeFlowData.One.url,r.value.wokeFlowData.Two.url,r.value.wokeFlowData.Three.url,r.value.wokeFlowData.Four.url],audioStatus:!1}),t.messages.push({sender:"ai",class:"title1",type:"title1",content:r.value.stockName+"全景作战报告",date:r.value.wokeFlowData.One.date});const e=Z(r.value.wokeFlowData.One.name+"\n"+r.value.wokeFlowData.One.price+"\n"+r.value.wokeFlowData.One.date);t.messages.push({sender:"ai",class:"content1",type:"content1",content:e});const n=r.value.stockData.HomePage;if(n){const e=JSON.parse(JSON.stringify(u(n))),o=V(e);o&&(Y.value=!0,console.log("hasValidData设置为:",Y.value));const r=`kline-${Date.now()}`;console.log("生成K线消息ID:",r),t.messages.push({sender:"ai",class:"content1",type:"content1",kline:!0,chartData:o,messageId:r,hasValidData:!0,klineType:1}),p((()=>{console.log("nextTick开始 - 准备渲染图表"),console.log("消息列表:",t.messages);let e=-1;for(let n=0;n【主力行为】
${r.value.wokeFlowData.Three.zhuli1}
${r.value.wokeFlowData.Three.zhuli2}
${r.value.wokeFlowData.Three.zhuli3}
`;t.messages.push({sender:"ai",class:"content3",type:"content3",content:l,isTyping:!0}),t.messages.push({sender:"ai",class:"title3",type:"title3",content:we});const i=r.value.wokeFlowData.Three.kongjian.split(","),s=`【空间维度】
${i[0]},${i[1]}
${i[2]},${i[3]}
`,c=`【时间维度】
${r.value.wokeFlowData.Three.shijian}
`,d=s+c+`【能量维度】
${r.value.wokeFlowData.Three.nengliang}
`;t.messages.push({sender:"ai",class:"content3",type:"content3",content:d}),t.messages.push({sender:"ai",class:"title3",type:"title3",content:be});const f=`【触发条件】
${r.value.wokeFlowData.Four.cftl}
`,g=f+`【攻防指令】
${r.value.wokeFlowData.Four.gfzl}
`;t.messages.push({sender:"ai",class:"content3",type:"content3",content:g}),t.messages.push({sender:"ai",class:"mianze",type:"mianze",content:"该内容由AI生成,请注意甄别",end:!0})}catch(l){h.error("历史数据获取出错!"),console.error("e",l)}}),{deep:!0,immediate:!0}),a((()=>C.isVoiceEnabled),(e=>{if(e!==C.lastVoiceState)if(C.lastVoiceState=e,e){console.log("开启语音播放");(()=>{var e;C.ttsUrl&&((null==(e=C.soundInstance)?void 0:e.playing())||((e=>{if(!e)return console.warn("音频URL为空,跳过播放"),void(C.isPlaying=!1);(()=>{if(C.isNewInstance){const n=new Q.Howl({src:[e],html5:!0,format:["mp3","acc"],rate:1.2,onplay:()=>{C.isPlaying=!0,n.volume(1)},onend:()=>C.isPlaying=!1,onstop:()=>C.isPlaying=!1,onloaderror:(e,n)=>{console.error("音频加载失败:",n),h.error("音频播放失败,请检查网络连接")}});C.nowSound&&C.nowSound.stop(),C.nowSound=n,C.isNewInstance=!1,console.log("新音频")}else console.log("已经有音频");const n=C.nowSound;n.play(),C.setAudioInstance(n),Q.Howler._howls.push(n)})()})(C.ttsUrl),setTimeout((()=>{var e;(null==(e=C.soundInstance)?void 0:e.playing())||Q.Howler.unload()}),1e3)))})()}else console.log("关闭语音播放"),C.soundInstance&&(C.soundInstance.pause(),C.isPlaying=!1)}),{immediate:!0}),a((()=>E.activeTabIndex),(e=>{setTimeout((()=>{console.log("activeTabIndex变化:",e),0===e&&(console.log("切换到AI聊天页,重新渲染图表"),fe())}),1e3)}),{immediate:!0});const de=()=>{t.dbqbScrollToTop=!t.dbqbScrollToTop};function fe(){console.log("重新渲染所有K线图");const e=t.messages;for(let n=0;n