1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-095ba67e"],{"111c":function(t,e,i){"use strict";i("23b1")},"19d5":function(t,e,i){"use strict";i("ae96")},"23b1":function(t,e,i){},"2e45":function(t,e,i){t.exports=i.p+"static/img/character1.992e7559.png"},"2f2c":function(t,e,i){"use strict";i.r(e);i("99af"),i("caad");var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pocAi"},[t._m(0),e("div",{directives:[{name:"show",rawName:"v-show",value:t.showFileArea,expression:"showFileArea"}],ref:"documentAreaRef",staticClass:"pa_documentArea"},[e("div",{ref:"dialogRef",staticClass:"pa_da_dialog",style:t.fullFileDialog?"width:100vw;height:100vh;border-radius:0;left:0;top:0":"left:".concat(t.dialogPosition.x,"px;top:").concat(t.dialogPosition.y,"px"),on:{mouseenter:function(e){return t.dialogMouse(0)},mouseleave:function(e){return t.dialogMouse(1)}}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.showDialogBtn||t.alwaysShowDialogBtn,expression:"showDialogBtn || alwaysShowDialogBtn"}],ref:"dialogHeadRef",staticClass:"pa_da_d_head",on:{touchstart:t.startMove}},[e("div",{staticClass:"pa_da_d_h_left"},[e("span",{domProps:{textContent:t._s(t.showFile.fileName?t.showFile.fileName:"查看文件")}})]),e("div",{staticClass:"pa_da_d_h_right"},[t.fullFileDialog?e("span",{on:{click:function(e){return e.stopPropagation(),t.fullFileDialogFn()}}},[e("svg",{staticClass:"icon",attrs:{t:"1725429227791",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5560",width:"200",height:"200"}},[e("path",{attrs:{d:"M354.133333 682.666667H256v-42.666667h170.666667v170.666667H384v-98.133334L243.2 853.333333l-29.866667-29.866666L354.133333 682.666667z m358.4 0l140.8 140.8-29.866666 29.866666-140.8-140.8V810.666667h-42.666667v-170.666667h170.666667v42.666667h-98.133334zM354.133333 384L213.333333 243.2l29.866667-29.866667L384 354.133333V256h42.666667v170.666667H256V384h98.133333z m358.4 0H810.666667v42.666667h-170.666667V256h42.666667v98.133333L823.466667 213.333333l29.866666 29.866667L712.533333 384z","p-id":"5561"}})])]):e("span",{on:{click:function(e){return e.stopPropagation(),t.fullFileDialogFn()}}},[e("svg",{staticClass:"icon",attrs:{t:"1725429213369",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5406",width:"200",height:"200"}},[e("path",{attrs:{d:"M285.866667 810.666667H384v42.666666H213.333333v-170.666666h42.666667v98.133333l128-128 29.866667 29.866667-128 128z m494.933333 0l-128-128 29.866667-29.866667 128 128V682.666667h42.666666v170.666666h-170.666666v-42.666666h98.133333zM285.866667 256l128 128-29.866667 29.866667-128-128V384H213.333333V213.333333h170.666667v42.666667H285.866667z m494.933333 0H682.666667V213.333333h170.666666v170.666667h-42.666666V285.866667l-128 128-29.866667-29.866667 128-128z","p-id":"5407"}})])]),e("span",{on:{click:function(e){e.stopPropagation(),t.showFileArea=!t.showFileArea}}},[e("svg",{attrs:{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.8669 5.77596C15.0444 5.59845 15.0444 5.31064 14.8669 5.13313C14.6894 4.95562 14.4016 4.95562 14.2241 5.13313L9.99996 9.35729L5.77595 5.13326C5.59844 4.95575 5.31064 4.95575 5.13313 5.13326C4.95562 5.31077 4.95562 5.59857 5.13313 5.77608L9.35714 10.0001L5.1333 14.224C4.95579 14.4015 4.95579 14.6893 5.1333 14.8668C5.31081 15.0443 5.59861 15.0443 5.77612 14.8668L9.99996 10.6429L14.2239 14.8669C14.4014 15.0444 14.6892 15.0444 14.8667 14.8669C15.0443 14.6894 15.0443 14.4016 14.8667 14.2241L10.6428 10.0001L14.8669 5.77596Z"}})])])])]),e("div",{staticClass:"pa_da_d_content"},[2!=t.showFile.type||["pdf","txt"].includes(t.showFile.suffix)?t._e():e("vword",{staticClass:"fullStyle",staticStyle:{width:"100%",height:"100%",overflow:"hidden"},attrs:{pdfUrl:"https://view.officeapps.live.com/op/view.aspx?src="+t.showFile.url}}),2==t.showFile.type&&["pdf"].includes(t.showFile.suffix)?e("vpdf",{staticClass:"fullStyle",staticStyle:{width:"100%",height:"100%",overflow:"hidden"},attrs:{pdfUrl:t.showFile.url}}):t._e(),2==t.showFile.type&&["txt"].includes(t.showFile.suffix)?e("txtView",{staticStyle:{width:"100%",height:"100%"},attrs:{url:t.showFile.url}}):t._e(),1==t.showFile.type?e("div",{staticClass:"pa_da_Image"},[e("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{fit:"cover",src:t.showFile.url,"preview-src-list":[t.showFile.url]}})],1):t._e(),3==t.showFile.type?e("div",{staticClass:"pa_da_Video"},[e("video-player",{staticStyle:{width:"100%","max-height":"100%",display:"flex","justify-content":"center","align-items":"center",overflow:"auto"},attrs:{playsinline:!0,options:t.showFile.videoOption}})],1):t._e()],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.showDialogBtn||t.alwaysShowDialogBtn,expression:"showDialogBtn || alwaysShowDialogBtn"}],staticClass:"pa_da_d_bottom"},[e("div"),e("div",[e("div",{staticClass:"pa_da_d_b_r_contentList"},[e("span",{on:{click:function(e){e.stopPropagation(),t.showDialogFileList=!t.showDialogFileList}}},[e("img",{attrs:{src:i("e5e2")}}),t._v(" 内容列表 ")]),t.showDialogFileList?e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:function(){return t.showDialogFileList=!1},expression:"()=>showDialogFileList = false"}],staticClass:"pa_da_d_b_r_cl_fileList"},t._l(t.fileList,(function(i,n){return e("div",{key:n,class:t.showFile.url===i.fileUrl?"pa_da_d_b_r_cl_fl_active":"",on:{click:function(e){return e.stopPropagation(),t.showFileFn(i)}}},[e("span",[t._v(t._s(i.fileName))])])})),0):t._e()])])])])]),e("div",{staticClass:"pa_chatArea"},[e("div",{staticClass:"pa_ca_back",on:{click:function(e){return e.stopPropagation(),t.back()}}},[t._v("返回")]),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"pa_ca_chat"},[e("div",{ref:"chatListRef",staticClass:"pa_ca_c_list"},t._l(t.chatList,(function(n,o){return e("div",{key:o},[n.content?e("div",{staticClass:"userChat"},[e("div",{staticClass:"uc_left"},[e("div",{staticClass:"chatName"},[t._v("科科")]),e("div",{staticClass:"chatMessage"},[e("span",{domProps:{textContent:t._s(n.content)}}),e("div",{staticClass:"cm_btnArea"},[e("span",{on:{click:function(e){return e.stopPropagation(),t.copy(n.content)}}},[e("svg",{attrs:{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.76904 1.3171C2.76904 0.588877 3.35938 -0.00146484 4.08761 -0.00146484H10.6804C11.4087 -0.00146484 11.999 0.588876 11.999 1.3171V7.90992C11.999 8.63814 11.4087 9.22849 10.6804 9.22849H4.08761C3.35938 9.22849 2.76904 8.63814 2.76904 7.90992V1.3171ZM4.08761 0.987458C3.90555 0.987458 3.75797 1.13504 3.75797 1.3171V7.90992C3.75797 8.09198 3.90555 8.23956 4.08761 8.23956H10.6804C10.8625 8.23956 11.0101 8.09198 11.0101 7.90992V1.3171C11.0101 1.13504 10.8625 0.987458 10.6804 0.987458H4.08761Z",fill:"#333333"}}),e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.31856 3.75748C1.13651 3.75748 0.988923 3.90506 0.988923 4.08712V10.6799C0.988923 10.862 1.13651 11.0096 1.31856 11.0096H7.91139C8.09344 11.0096 8.24103 10.862 8.24103 10.6799V9.85584C8.24103 9.58275 8.46241 9.36138 8.73549 9.36138C9.00857 9.36138 9.22995 9.58275 9.22995 9.85584V10.6799C9.22995 11.4082 8.63961 11.9985 7.91139 11.9985H1.31856C0.590342 11.9985 0 11.4082 0 10.6799V4.08712C0 3.3589 0.590341 2.76855 1.31856 2.76855H2.14267C2.41575 2.76855 2.63713 2.98993 2.63713 3.26302C2.63713 3.5361 2.41575 3.75748 2.14267 3.75748H1.31856Z",fill:"#333333"}})])])])])]),e("div",{staticClass:"uc_right"},[e("el-avatar",{staticClass:"chatAvatar",attrs:{src:i("e8e8")}})],1)]):t._e(),e("div",{staticClass:"aiChat"},[e("div",{staticClass:"ac_left"},[e("el-avatar",{staticClass:"chatAvatar",attrs:{src:i("2e45")}})],1),e("div",{staticClass:"ac_right"},[t._m(1,!0),e("div",{directives:[{name:"loading",rawName:"v-loading",value:n.loading,expression:"item.loading"}],staticClass:"chatMessage",style:n.loading?"border:none":""},[e("span",{domProps:{innerHTML:t._s(n.aiContent)}}),e("div",{staticClass:"cm_btnArea"},[e("span",{on:{click:function(e){return e.stopPropagation(),t.copy(n.aiContent)}}},[e("svg",{attrs:{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.76904 1.3171C2.76904 0.588877 3.35938 -0.00146484 4.08761 -0.00146484H10.6804C11.4087 -0.00146484 11.999 0.588876 11.999 1.3171V7.90992C11.999 8.63814 11.4087 9.22849 10.6804 9.22849H4.08761C3.35938 9.22849 2.76904 8.63814 2.76904 7.90992V1.3171ZM4.08761 0.987458C3.90555 0.987458 3.75797 1.13504 3.75797 1.3171V7.90992C3.75797 8.09198 3.90555 8.23956 4.08761 8.23956H10.6804C10.8625 8.23956 11.0101 8.09198 11.0101 7.90992V1.3171C11.0101 1.13504 10.8625 0.987458 10.6804 0.987458H4.08761Z",fill:"#333333"}}),e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.31856 3.75748C1.13651 3.75748 0.988923 3.90506 0.988923 4.08712V10.6799C0.988923 10.862 1.13651 11.0096 1.31856 11.0096H7.91139C8.09344 11.0096 8.24103 10.862 8.24103 10.6799V9.85584C8.24103 9.58275 8.46241 9.36138 8.73549 9.36138C9.00857 9.36138 9.22995 9.58275 9.22995 9.85584V10.6799C9.22995 11.4082 8.63961 11.9985 7.91139 11.9985H1.31856C0.590342 11.9985 0 11.4082 0 10.6799V4.08712C0 3.3589 0.590341 2.76855 1.31856 2.76855H2.14267C2.41575 2.76855 2.63713 2.98993 2.63713 3.26302C2.63713 3.5361 2.41575 3.75748 2.14267 3.75748H1.31856Z",fill:"#333333"}})])])])]),e("div",{staticClass:"ac_r_btnArea"},[e("span",{on:{click:function(e){return e.stopPropagation(),t.checkFile()}}},[t._v("查看文件")])])])])])})),0),e("div",{staticClass:"pa_ca_c_bottom"},[e("div",{staticClass:"pa_ca_c_b_inputArea"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.chatValue,expression:"chatValue"}],ref:"textAreaRef",attrs:{id:"myTextarea","min-rows":"1","max-rows":"5",placeholder:"你有任何想法,可以随时告诉我呀",autosize:"none",disabled:null!=t.source},domProps:{value:t.chatValue},on:{input:function(e){e.target.composing||(t.chatValue=e.target.value)}}}),e("div",{staticClass:"pa_ca_c_b_btnArea"},[e("span",{staticClass:"pa_ca_c_b_ba_btn",on:{click:t.sendChat}},[e("svg",{staticClass:"icon",attrs:{t:"1724748020468",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7309",width:"200",height:"200"}},[e("path",{attrs:{d:"M931.392 11.264L45.12 530.688c-28.736 16.896-43.52 39.424-45.12 61.248v8.128c2.048 26.112 23.04 49.984 61.632 60.416l171.968 46.592a34.304 34.304 0 0 0 41.28-25.536 35.584 35.584 0 0 0-23.808-43.136L79.68 592l873.408-511.872-95.232 703.488c-1.408 10.432-9.152 15.68-18.752 12.992l-365.632-100.288 296.32-305.856a36.416 36.416 0 0 0 0-50.24 33.728 33.728 0 0 0-48.704 0l-324.8 335.36a110.72 110.72 0 0 0-7.872 9.088 35.52 35.52 0 0 0-16.128 30.784 104 104 0 0 0-5.248 32.64v206.4c0 49.664 53.568 79.168 93.568 51.712l166.272-114.368c10.24-6.976 16-19.136 15.232-31.872a35.712 35.712 0 0 0-19.2-29.504 33.28 33.28 0 0 0-34.24 2.304L435.84 937.856v-178.432l385.472 105.6c49.6 13.632 97.472-19.072 104.576-71.808l97.152-717.568c8.448-60.48-40-94.72-91.648-64.384z","p-id":"7310"}})])])])])])])])])},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"pa_background"},[e("img",{attrs:{src:i("dba9")}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"chatName"},[e("span",[t._v("圆鼓鼓的大胖鱼")])])}],s=(i("7db0"),i("d3b7"),i("ac1f"),i("00b4"),i("498a"),i("14d9"),i("5319"),i("5b81"),i("b64b"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"pdf"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isloading,expression:"isloading"}],staticClass:"loading"},[e("span",[t._v("pdf可能会加载时间有点长,请耐心等待...")])]),e("iframe",{ref:"viframe",staticStyle:{width:"100%",height:"100%",border:"none"},attrs:{src:"https://cloud.cocorobo.cn/pdf.js/web/viewer.html?file="+t.pdfUrl}})])}),a=[],l=(i("a9e3"),{name:"Pdfvuer",components:{},props:{pdfUrl:{type:String,default:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/0629%E5%AE%9E%E6%97%B6%E8%AF%BE%E5%A0%82%E6%A8%A1%E6%8B%9F%E6%BC%94%E7%A4%BA%E8%AF%BE%E4%BB%B61656920880446.pdf"},ppage:{type:Number,default:1}},data:function(){return{page:1,numPages:0,pdfData:void 0,inputPage:1,isloading:!1,scale:"page-width"}},mounted:function(){this.isloading=!1,this.$refs.viframe.onload=function(){this.isloading=!1},console.log(this.isloading)},beforeDestroy:function(){},watch:{pdfUrl:function(t){this.isloading=!1,this.$refs.viframe.onload=function(){this.isloading=!1}}},methods:{getPdf:function(){var t=this;this.pdfData=pdfvuer.createLoadingTask({url:this.pdfUrl,cMapUrl:"https://cdn.jsdelivr.net/npm/pdfjs-dist@2.16.105/cmaps/",cMapPacked:!0}),this.pdfData.then((function(e){t.isloading=!1,t.numPages=e.numPages})).catch((function(t){console.log(t)}))},prePage:function(){var t=this.page;t=t>1?t-1:1,this.page=t},nextPage:function(){var t=this.page;t=t<this.numPages?t+1:this.numPages,this.page=t}}}),c=l,r=(i("d1d2"),i("2877")),d=Object(r["a"])(c,s,a,!1,null,"4bd82eed",null),h=d.exports,p=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pdf"},[t.isloading?e("div",{staticClass:"loading"},[e("span",[t._v("可能会加载时间有点长,请耐心等待...")])]):t._e(),e("iframe",{ref:"viframe",staticStyle:{width:"100%",height:"100%",border:"none"},attrs:{src:t.pdfUrl}})])},u=[],f={name:"Pdfvuer",components:{},props:{pdfUrl:{type:String,default:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/0629%E5%AE%9E%E6%97%B6%E8%AF%BE%E5%A0%82%E6%A8%A1%E6%8B%9F%E6%BC%94%E7%A4%BA%E8%AF%BE%E4%BB%B61656920880446.pdf"},ppage:{type:Number,default:1}},data:function(){return{page:1,numPages:0,pdfData:void 0,inputPage:1,isloading:!1,scale:"page-width"}},mounted:function(){var t=this;t.isloading=!0,t.$refs.viframe.onload=function(){t.isloading=!1},console.log(t.isloading)},beforeDestroy:function(){},watch:{pdfUrl:function(t){var e=this;e.isloading=!0,e.$refs.viframe.onload=function(){e.isloading=!1},console.log(e.isloading)}},methods:{}},g=f,v=(i("cb37"),Object(r["a"])(g,p,u,!1,null,"257d98ec",null)),m=v.exports,w=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"txtView"},[e("div",{staticClass:"tv_content",domProps:{textContent:t._s(t.content)}})])},_=[],C=(i("25f0"),i("5038"),function(t){return new Promise((function(e,i){var n={accessKeyId:"AKIATLPEDU37QV5CHLMH",secretAccessKey:"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"};window.AWS.config.update(n),window.AWS.config.region="cn-northwest-1";var o=t,s="";s=-1!=o.indexOf("https://view.officeapps.live.com/op/view.aspx?src=")?o.split("https://view.officeapps.live.com/op/view.aspx?src=")[1]:o;var a=new window.AWS.S3({params:{Bucket:"ccrb"}}),l=decodeURIComponent(s.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]),c={Bucket:"ccrb",Key:l};a.getObject(c,(function(t,i){if(t)console.log(t,t.stack),e({data:1});else{var n=i.Body.toString("utf-8");e({data:n})}}))}))}),b={props:{url:{type:String,default:""}},data:function(){return{content:"",loading:""}},methods:{getTxtContent:function(){var t=this;this.url&&(this.loading=!0,C(this.url).then((function(e){t.loading=!1,t.content=e.data})))}},mounted:function(){this.getTxtContent()}},x=b,y=(i("111c"),Object(r["a"])(x,w,_,!1,null,"f7f9330e",null)),A=y.exports,F=i("11c1"),B=i("d4cd"),E=i.n(B),L=i("829b");i("b775");function S(t){return Object(L["a"])({url:"https://gpt4.cocorobo.cn/get_agent_park_chat",method:"post",data:t,hideloading:!0})}function P(t){return Object(L["a"])({url:"https://gpt4.cocorobo.cn/insert_chat",method:"post",data:t,hideloading:!0})}function D(t){return Object(L["a"])({url:"https://gpt4.cocorobo.cn/ai_agent_park_chat_new",method:"post",data:t,hideloading:!0})}var k={bind:function(t,e){t.clickOutsideEvent=function(i){t===i.target||t.contains(i.target)||e.value(i)},document.addEventListener("click",t.clickOutsideEvent)},unbind:function(t){document.removeEventListener("click",t.clickOutsideEvent)}},M={components:{vpdf:h,vword:m,txtView:A},data:function(){return{userId:this.$store.state.user.userinfo.userid,org:this.$store.state.user.userinfo.org,oid:this.$store.state.user.userinfo.organizeid,showFileIndex:0,showFileArea:!0,fullFileDialog:!1,showDialogBtn:!1,alwaysShowDialogBtn:!0,showDialogFileList:!1,dialogIsMove:!1,dialogPosition:{dialogWidth:0,dialogHeight:0,x:10,y:10,oldX:0,oldY:0},chatValue:"",source:null,loading:!1,chatTitle:"第一章 声音的原理",showFileUrl:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E6%B5%8B%E8%AF%951724641221681.jpg",chatList:[{loading:!1,role:"user",content:"哇卡哇卡",uid:"d601788a-5ece-11ef-826e-12e77c4cb76b",AI:"AI",aiContent:"<p>"哇卡哇卡" 是夏奇拉(Shakira)的一首非常知名的歌曲,全名是《Waka Waka (This Time for Africa)》。这首歌是2010年南非世界杯的官方主题曲,充满了非洲音乐元素和动感节奏,广受欢迎。如果你对这首歌或其意义感兴趣,可以分享更多你的想法!</p>\n",oldContent:"<p>"哇卡哇卡" 是夏奇拉(Shakira)的一首非常知名的歌曲,全名是《Waka Waka (This Time for Africa)》。这首歌是2010年南非世界杯的官方主题曲,充满了非洲音乐元素和动感节奏,广受欢迎。如果你对这首歌或其意义感兴趣,可以分享更多你的想法!</p>\n",isShowSynchronization:!1,filename:"",index:0,is_mind_map:!1,fileid:"",createtime:"2024-08-20 08:33:11"},{loading:!1,role:"user",content:"最近中国有什么好的游戏可以玩吗\n",uid:"e23485ec-5ece-11ef-826e-12e77c4cb76b",AI:"AI",aiContent:"<p>最近中国有几款备受关注的游戏,以下是其中一些推荐:</p>\n<ol>\n<li>\n<p><strong>《原神》</strong> - 这是一款由miHoYo开发的开放世界角色扮演游戏,以其精美的画面和开放的世界探索而受到广泛好评。</p>\n</li>\n<li>\n<p><strong>《崩坏:星穹铁道》</strong> - 也是miHoYo开发的作品,作为《崩坏》系列的新作,这款游戏结合了科幻元素和回合制战斗机制。</p>\n</li>\n<li>\n<p><strong>《阴阳师》</strong> - 由网易开发的卡牌策略游戏,以其独特的美术风格和丰富的剧情设定而受到玩家喜爱。</p>\n</li>\n<li>\n<p><strong>《和平精英》</strong> - 这是一款由腾讯光子工作室群开发的多人在线战术竞技类游戏,是中国版的《PUBG Mobile》。</p>\n</li>\n<li>\n<p><strong>《剑网3:缘起》</strong> - 西山居开发的一款大型多人在线角色扮演游戏(MMORPG),以其经典的武侠元素和深厚的剧情吸引了大量玩家。</p>\n</li>\n</ol>\n<p>这些游戏在画质、玩法和社交性方面各有特色,你可以根据自己的兴趣和偏好进行选择体验。</p>\n",oldContent:"<p>最近中国有几款备受关注的游戏,以下是其中一些推荐:</p>\n<ol>\n<li>\n<p><strong>《原神》</strong> - 这是一款由miHoYo开发的开放世界角色扮演游戏,以其精美的画面和开放的世界探索而受到广泛好评。</p>\n</li>\n<li>\n<p><strong>《崩坏:星穹铁道》</strong> - 也是miHoYo开发的作品,作为《崩坏》系列的新作,这款游戏结合了科幻元素和回合制战斗机制。</p>\n</li>\n<li>\n<p><strong>《阴阳师》</strong> - 由网易开发的卡牌策略游戏,以其独特的美术风格和丰富的剧情设定而受到玩家喜爱。</p>\n</li>\n<li>\n<p><strong>《和平精英》</strong> - 这是一款由腾讯光子工作室群开发的多人在线战术竞技类游戏,是中国版的《PUBG Mobile》。</p>\n</li>\n<li>\n<p><strong>《剑网3:缘起》</strong> - 西山居开发的一款大型多人在线角色扮演游戏(MMORPG),以其经典的武侠元素和深厚的剧情吸引了大量玩家。</p>\n</li>\n</ol>\n<p>这些游戏在画质、玩法和社交性方面各有特色,你可以根据自己的兴趣和偏好进行选择体验。</p>\n",isShowSynchronization:!1,filename:"",index:1,is_mind_map:!1,fileid:"",createtime:"2024-08-20 08:33:32"},{loading:!1,role:"user",content:"你这是多少年的数据了",uid:"eaa6c091-5ece-11ef-826e-12e77c4cb76b",AI:"AI",aiContent:"<p>我掌握的数据截止到2023年,是经过培训和处理的历史数据。有什么我可以帮你的吗?</p>\n",oldContent:"<p>我掌握的数据截止到2023年,是经过培训和处理的历史数据。有什么我可以帮你的吗?</p>\n",isShowSynchronization:!1,filename:"",index:2,is_mind_map:!1,fileid:"",createtime:"2024-08-20 08:33:46"},{loading:!1,role:"user",content:"巴黎奥运会怎么样了",uid:"f9188e27-5ece-11ef-826e-12e77c4cb76b",AI:"AI",aiContent:"<p>截至我最近的更新信息,巴黎奥运会将在2024年举行。具体情况包括:</p>\n<ol>\n<li>\n<p><strong>日期和地点</strong>:巴黎奥运会计划于2024年7月26日至8月11日举行。比赛将在法国巴黎及其周边地区的各大场馆进行。</p>\n</li>\n<li>\n<p><strong>项目</strong>:2024年巴黎奥运会预计将包括32个大项,覆盖从田径到游泳等传统项目,同时可能也会引入一些新的项目或调整现有项目的设置。</p>\n</li>\n<li>\n<p><strong>准备工作</strong>:巴黎方面正在积极进行场馆建设与改造、城市基础设施的提升以及各种筹备工作,以确保赛事顺利进行。</p>\n</li>\n<li>\n<p><strong>可持续性与创新</strong>:巴黎奥运会提出了“可持续性”与“创新”的理念,致力于通过多种方式(如使用临时设施、推广绿色交通等)减少对环境的影响。</p>\n</li>\n</ol>\n<p>具体的进展和变化可能会随着时间推移有所不同。要了解更多的信息和最新动态,可以关注巴黎奥组委的官方网站或相关的新闻报道。</p>\n",oldContent:"<p>截至我最近的更新信息,巴黎奥运会将在2024年举行。具体情况包括:</p>\n<ol>\n<li>\n<p><strong>日期和地点</strong>:巴黎奥运会计划于2024年7月26日至8月11日举行。比赛将在法国巴黎及其周边地区的各大场馆进行。</p>\n</li>\n<li>\n<p><strong>项目</strong>:2024年巴黎奥运会预计将包括32个大项,覆盖从田径到游泳等传统项目,同时可能也会引入一些新的项目或调整现有项目的设置。</p>\n</li>\n<li>\n<p><strong>准备工作</strong>:巴黎方面正在积极进行场馆建设与改造、城市基础设施的提升以及各种筹备工作,以确保赛事顺利进行。</p>\n</li>\n<li>\n<p><strong>可持续性与创新</strong>:巴黎奥运会提出了“可持续性”与“创新”的理念,致力于通过多种方式(如使用临时设施、推广绿色交通等)减少对环境的影响。</p>\n</li>\n</ol>\n<p>具体的进展和变化可能会随着时间推移有所不同。要了解更多的信息和最新动态,可以关注巴黎奥组委的官方网站或相关的新闻报道。</p>\n",isShowSynchronization:!1,filename:"",index:3,is_mind_map:!1,fileid:"",createtime:"2024-08-20 08:34:10"},{loading:!1,role:"user",content:"巴黎奥运会有哪些国家参加",uid:"0aedaebd-5ecf-11ef-826e-12e77c4cb76b",AI:"AI",aiContent:"<p>巴黎奥运会将于2024年举行,由于奥运会是由国际奥林匹克委员会(IOC)组织的,通常大多数国家都会派代表团参加,包括几乎所有联合国成员国和一些地区或地区代表队。截至目前,具体参赛的国家和地区名单尚未最终确定,但预计将会有200多个国家和地区参加。如果你想了解最新的参赛国家名单,建议关注国际奥林匹克委员会的官方网站或相关最新新闻。</p>\n",oldContent:"<p>巴黎奥运会将于2024年举行,由于奥运会是由国际奥林匹克委员会(IOC)组织的,通常大多数国家都会派代表团参加,包括几乎所有联合国成员国和一些地区或地区代表队。截至目前,具体参赛的国家和地区名单尚未最终确定,但预计将会有200多个国家和地区参加。如果你想了解最新的参赛国家名单,建议关注国际奥林匹克委员会的官方网站或相关最新新闻。</p>\n",isShowSynchronization:!1,filename:"",index:4,is_mind_map:!1,fileid:"",createtime:"2024-08-20 08:34:40"}],fileList:[{fileUrl:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E6%A0%A1%E7%BA%A7%E5%88%9B%E5%AE%A2%E9%A1%B9%E7%9B%AE%E7%BB%93%E9%A2%98%E7%94%B3%E8%AF%B7%E4%B9%A6-%E5%88%9B%E6%96%B0%E5%88%9B%E4%B8%9A%E5%AD%A6%E9%99%A21724638848483.docx",fileId:"file-xUxtMlJu7PoDBvzZg1JCegtM",fileName:"这是一个DOCX文件"},{fileUrl:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E6%B5%8B%E8%AF%951724640873576.xlsx",fileId:"file-61KteMZxNwzjJQFRdlwtdpmg",fileName:"这是一个XLSX文件"},{fileUrl:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E6%B5%8B%E8%AF%951724641111983.pptx",fileId:"",fileName:"这是一个PPT文件"},{fileUrl:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%88%9B%E4%BD%9C%E4%B8%AD%E5%BF%83%E5%8E%9F%E5%9E%8B%E5%9B%BE1724641155668.pdf",fileId:"file-1ldbT8Ztg5QQPUucJs2FpLAJ",fileName:"这是一个PDF文件"},{fileUrl:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E6%B5%8B%E8%AF%951724641221681.jpg",fileId:"",fileName:"这是一个JPG文件"},{fileUrl:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/c3e87dc3-d5ab-4a1f-a519-63d903a270f8%2F2024-08-09+17-07-50.mp4",fileId:"",fileName:"这是一个MP4文件"},{fileUrl:"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/ktgc31724643097906.txt",fileId:"file-YSVSAsDGvtiWJQ6mWf7ZdupA",fileName:"这是一个TXT文件"}],canonical:{Image:/^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i,File:/^https?:\/\/(.+\/)+.+(\.(docx|doc|xlsx|ppt|pdf|pptx|txt))$/i,video:/^https?:\/\/(.+\/)+.+(\.(avi|wmv|mpg|mpeg|mov|rm|ram|mp4|swf|flv))$/i}}},directives:{"click-outside":k},computed:{dialogWidth:function(){return this.$refs.documentAreaRef?this.$refs.documentAreaRef.offsetWidth:0},showFile:function(){var t=this,e={type:0,suffix:"",url:"",videoOption:null,fileName:""};return this.showFileUrl&&(e.url=this.showFileUrl,e.fileName=this.fileList.find((function(e){return e.fileUrl==t.showFileUrl})).fileName,this.canonical.Image.test(this.showFileUrl)?(e.type=1,e.suffix=this.showFileUrl.split(".").pop()):this.canonical.File.test(this.showFileUrl)?(e.type=2,e.suffix=this.showFileUrl.split(".").pop()):this.canonical.video.test(this.showFileUrl)&&(e.type=3,e.videoOption={playbackRates:[.7,1,1.5,2],autoplay:!1,muted:!1,loop:!1,preload:"auto",language:"zh-CN",aspectRatio:"16:9",fluid:!0,sources:this.showFileUrl,notSupportedMessage:"此视频暂无法播放,请稍后再试",controlBar:{timeDivider:!0,durationDisplay:!0,remainingTimeDisplay:!1,fullscreenToggle:!0}},e.suffix=this.showFileUrl.split(".").pop())),e}},methods:{chatListScrollBottom:function(){var t=this;this.$nextTick((function(){t.$refs.chatListRef.scrollTop=t.$refs.chatListRef.scrollHeight}))},sendChat:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.chatValue;if(this.source)return this.$message.info("还在对话中,请稍等");if("string"!==typeof t&&(t=this.chatValue),t.trim()){this.chatValue="";var e=i("b532"),n=e.Converter({from:"cn",to:"hk"}),o=Object(F["v4"])();this.chatList.push({role:"user",content:"".concat(t),uid:o,AI:"AI",aiContent:"",oldContent:"",isShowSynchronization:!1,filename:"",index:this.chatList.length,is_mind_map:!1,createtime:(new Date).toLocaleString().replaceAll("/","-"),loading:!0}),this.chatListScrollBottom();var s=[];s.push({role:"user",content:t});var a={assistant_id:"f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b",userId:this.userId,message:t,session_name:"".concat(o,"-pocAi-md"),uid:o,file_ids:[],model:"gpt-4o-2024-08-06"};D(a).then((function(t){n(t.FunctionResponse.result)==n("发送成功")||console.log(t.FunctionResponse.result)})).catch((function(t){console.log(t)})),this.getAtAuContent(o)}},getAtAuContent:function(t){var e=this;this.source=new EventSource("https://gpt4.cocorobo.cn/question/".concat(t));var i="",n="",o=new E.a;this.source.onmessage=function(s){var a=JSON.parse(s.data);if("[DONE]"==a.content.replace("'","").replace("'","")){var l=[];if("result"in a){l=a.result;for(var c=0;c<l.length;c++)n=n.replace(l[c].text,l[c].fileName)}n=n.replace("_",""),e.chatList.find((function(e){return e.uid==t})).aiContent=n,e.chatList.find((function(e){return e.uid==t})).isalltext=!0,e.chatList.find((function(e){return e.uid==t})).isShowSynchronization=!0,e.chatList.find((function(e){return e.uid==t})).loading=!1,e.source.close(),e.source=null,e.chatListScrollBottom(),e.insertChat(t)}else{var r=a.content.replace("'","").replace("'","");""==i?i=r.replace(/^\n+/,""):i+=r,n=i+"_",n=n.replace(/\\n/g,"\n"),n=n.replace(/\\/g,""),i.split("```").length%2==0&&(n+="\n```\n"),n=o.render(n),e.chatList.find((function(e){return e.uid==t})).aiContent=n,e.chatList.find((function(e){return e.uid==t})).loading=!1,e.chatListScrollBottom()}}},insertChat:function(t){if(""!=t){var e=this.chatList.find((function(e){return e.uid==t}));if(e){var i={userId:this.userId,userName:"qgt",groupId:"qwertyuiop-poc",answer:e.aiContent,problem:e.content,file_id:e.fileid?e.fileid:"",alltext:e.aiContent,type:"chat",filename:e.filename,session_name:"pocAi-md"};P(i).then((function(t){}))}}},getChatList:function(){var t=this;return new Promise((function(e,i){if(t.loading)return t.$message.info("请稍等...");t.chatList=[],t.loading=!0;var n={userid:t.userId,groupid:"qwertyuiop-poc",session_name:"pocAi-md"};S(n).then((function(i){var n=JSON.parse(i.FunctionResponse);if(n.length>0){for(var o=[],s=0;s<n.length;s++)o.push({loading:!1,role:"user",content:n[s].problem,uid:n[s].id,AI:"AI",aiContent:n[s].answer,oldContent:n[s].answer,isShowSynchronization:!1,filename:n[s].filename,index:s,is_mind_map:!1,fileid:n[s].fileid});t.chatList=o,t.loading=!1}else t.loading=!1;t.chatListScrollBottom(),e()})).catch((function(i){console.log(i),t.$message.error("获取对话记录失败"),t.loading=!1,e()}))}))},checkFile:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(t)this.showFileUrl=t;else{var e=Math.floor(Math.random()*this.fileList.length);this.showFileUrl=this.fileList[e].fileUrl}this.showFileArea=!0},back:function(){this.$router.push("/pocAiClassroom")},copy:function(t){var e=document.createElement("textarea");e.value=t.replace(/<[^>]+>/g,""),e.style.position="absolute",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.$toast.success("复制成功")},alwaysShowDialogBtnFn:function(){this.alwaysShowDialogBtn=!this.alwaysShowDialogBtn},fullFileDialogFn:function(){this.fullFileDialog=!this.fullFileDialog},dialogMouse:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.alwaysShowDialogBtn||(1==t?(this.showDialogBtn=!1,this.showDialogFileList=!1):0==t&&(this.showDialogBtn=!0))},showFileFn:function(t){this.showFileUrl=t.fileUrl,this.showDialogFileList=!1},startMove:function(t){this.fullFileDialog||(console.log("开始移动"),this.dialogIsMove=!0,this.dialogPosition.oldX=t.touches[0].clientX-this.dialogPosition.x,this.dialogPosition.oldY=t.touches[0].clientY-this.dialogPosition.y,document.addEventListener("touchmove",this.moveDialog),document.addEventListener("touchend",this.stopMove))},moveDialog:function(t){if(this.dialogIsMove){var e=window.innerWidth,i=window.innerHeight;console.log(this.$refs.dialogRef.offsetWidth,this.$refs.dialogRef.offsetHeight,e,i);var n=this.$refs.dialogRef.offsetWidth,o=this.$refs.dialogRef.offsetHeight,s=t.touches[0].clientX-this.dialogPosition.oldX,a=t.touches[0].clientY-this.dialogPosition.oldY;s<0&&(s=0),a<0&&(a=0),s>e-n&&(s=e-n),a>i-o&&(a=i-o),this.dialogPosition.x=s,this.dialogPosition.y=a}},stopMove:function(){this.dialogIsMove=!1,document.removeEventListener("touchmove",this.moveDialog),document.removeEventListener("touchend",this.stopMove)}},mounted:function(){this.getChatList(),this.$nextTick((function(){}))}},I=M,U=(i("19d5"),Object(r["a"])(I,n,o,!1,null,"11ad479e",null));e["default"]=U.exports},"5c6ce":function(t,e,i){},"5ccf":function(t,e,i){},7037:function(t,e,i){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports["default"]=t.exports,n(e)}i("a4d3"),i("e01a"),i("d3b7"),i("d28b"),i("3ca3"),i("ddb0"),t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"829b":function(t,e,i){"use strict";i("e7e5");var n=i("d399"),o=(i("d3b7"),i("bc3a")),s=i.n(o),a=i("4360"),l=i("4328"),c=i.n(l),r=s.a.create({});r.interceptors.request.use((function(t){return t.hideloading||n["a"].loading({forbidClick:!0}),"post"===t.method&&-1==t.url.indexOf("gpt4.cocorobo.cn")&&(t.data=c.a.stringify(t.data)),-1!=t.url.indexOf("gpt4.cocorobo.cn")&&(t.headers={"Content-Type":"application/json"},t.data=t.data),a["a"].getters.token&&(t.headers["X-Token"]=""),t}),(function(t){return console.log(t),Promise.reject(t)})),r.interceptors.response.use((function(t){n["a"].clear();var e=t.data;return e.status&&200!==e.status?(401===e.status&&a["a"].dispatch("FedLogOut").then((function(){location.reload()})),Promise.reject(e||"error")):Promise.resolve(e)}),(function(t){return n["a"].clear(),console.log("err"+t),Promise.reject(t)})),e["a"]=r},ae96:function(t,e,i){},cb37:function(t,e,i){"use strict";i("5ccf")},d1d2:function(t,e,i){"use strict";i("5c6ce")},dba9:function(t,e,i){t.exports=i.p+"static/img/bg2.dbe40e4f.png"},e5e2:function(t,e,i){t.exports=i.p+"static/img/fileIcon.d634f5d8.svg"},e8e8:function(t,e,i){t.exports=i.p+"static/img/defaultAvatar.762b260d.png"}}]);
|