{"version":3,"sources":["webpack:///./src/views/sessionai2.vue?0401","webpack:///./src/views/sessionai2.vue","webpack:///./src/views/sessionai2.vue?9ea4","webpack:///./src/views/sessionai2.vue?8a7f","webpack:///./src/views/sessionai2.vue?1bc6","webpack:///./src/images/downloadimage.png","webpack:///./src/images/kefu.png","webpack:///./src/images/canceldownload.png"],"names":["render","_vm","this","_c","_self","_setupProxy","showai","ref","staticClass","style","staticStyle","height","statusBarHeight","width","class","tabTitle","on","$event","changeTab","_v","_s","L","appList","length","showzhushou","_e","attrs","require","goFeekBck","historyNew","noonTip","dateToday","weekToday","isios","srcollHeight","onRefresh","onRefreshUp","showpage","historyList","stopPropagation","showmenu","_l","history","index","key","showdate","datetime","id","prompt","isload","answer","replaceAll","showHistory","apply","arguments","voice","userid","showTool","showstop","sessinfo","againSend","shareToWeixin","actiontype","dianzan","diancai","transStyle","tagList","item","lang","remark","name","lastTitle","imgurl","handleImg","keyboardvic","disabled","inputChange","sessionSave","model","value","callback","$$v","expression","ispc","sendTitle","audioTitle","pcSendTitle","pcAudioTitle","random","closeAudio","sendAudio","voiceChange","cancelAudio","showDownloadImgPopup","reset","downLoadImgUrl","downloadImg","staticRenderFns","SessionAI","_AbpBase","_this2","_classCallCheck","userAgent","sid","commentBox","isRefresh","Array","commentContent","loadmore","optertionInfo","likeId","isLike","followId","isFollow","userInfo","Object","anonymous","imgBox","currentImgs","currentImgUrl","screenWidth","appid","isFresh","isSend","scrollHeight","scrollid","loadingType","pagesize","pageindex","sessionid","sessionCount","ansterdata","answerstop","isShow","showShare","shownews","msg","isPreview","newsReadCount","startY","moveY","title","currentIndex","transition","transTimer","scrollData","pressTimer","_inherits","_createClass","console","log","uni","postMessage","data","action","getComputedStyle","document","documentElement","safeAreaInsetTop","getPropertyValue","trim","e","tabtype","that","getSessionNew","info","request","maxResultCount","skipCount","type","$store","dispatch","then","res","result","items","get","isIos","replace","parseInt","window","innerHeight","heightnew","concat","transform","_closeAudio","_asyncToGenerator","regeneratorRuntime","mark","_callee","touchEndTrans","form","wrap","_context","prev","next","size","FormData","append","success","Math","floor","$Message","warning","sent","stop","_x","_x2","_sendAudio","_callee2","content","_context2","_x3","done","setTimeout","webkit","messageHandlers","vibrate","navigator","load","shareWeixinType","link","location","protocol","host","substr","gisShareToWeixin","coverImg","gis","href","thumbs","extra","scene","fail","u","toLowerCase","indexOf","loadSessionHistoryList","time1","time2","date1","Date","date2","diff","getTime","appId","list","i","findindex","findIndex","formatDateStr","creationTime","mins","minutesDifference","unshift","setpostion","addListener","_this","$nextTick","markDom","getElementById","removeEventListener","start","cancel","addEventListener","move","target","tagName","touches","clientY","src","clearTimeout","saveImageToAlbum","el","scrollIntoView","event","body","scrollTop","preventDefault","$refs","input","blur","focus","ex","hour","getHours","toString","getMinutes","time","push","scrollidhis","basepro","Base64","encode","source","EventSource","liburl","onopen","onmessage","rid","ridarr","split","dom1","getElementsByClassName","clientHeight","rsp","JSON","parse","response","contans","he","decode","onerror","close","imgs","getElementsByTagName","img","onclick","currentTarget","ViewerDom","viewer","options","navbar","toolbar","images","contain","click","dateString","dateTimeStamp","minute","day","week","month","now","diffValue","minC","hourC","dayC","weekC","monthC","getFullYear","formatDate","getDate","toFixed","setTime","Nyear","Nmonth","getMonth","Ndate","getSeconds","date","fmt","test","RegExp","$1","o","k","str","padLeftZero","onlyMy","newItems","to","from","query","reload","t","pageLoad","elementHeight","_pageLoad","_callee3","domain","userId","code","res2","res3","_context3","clientWidth","handleResize","moment","format","charAt","getDay","abp","localization","currentCulture","Util","session","getLoginUser","getTipsList","$route","undefined","ProviderKey","Property","id_token","appSecret","accessToken","mobile","getSessionInfo","getAIListAll","auth","grantedPermissions","AppAIUser","AIManger","_created","_callee4","_context4","created","_this3","gethistoryheight","aibox","offsetHeight","clearInterval","Number","setInterval","AbpBase","__decorate","Watch","Component","components","VueMarkdown","DropDownRefresh","PullRefresh","AudioEnter","component","module","exports"],"mappings":"kHAAA,W,yDCAIA,EAAS,WAAkB,IAAIC,EAAIC,K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AKtB7W,KAAKgQ,WAAU,WACdyJ,cAAcxP,EAAKnB,YACnBmB,EAAKnB,WAAa4Q,OAAOC,aAAY,WAChC1P,EAAKrB,aAAe,EAAIqB,EAAKjG,QAAQ3C,QACxC4I,EAAKpB,WAAa,IAClBoB,EAAKrB,aAAeqB,EAAKrB,aAAe,IAExCqB,EAAKpB,WAAa,EAClBoB,EAAKrB,aAAe,KAEnB,WAEJ,CAAAlG,IAAA,WAAAmC,MAED,WACC4U,cAAczZ,KAAK8I,gBAj8CS,CAAS8Q,QAipCtCC,EAAA,CADCC,eAAM,c,8HAwBPD,EAAA,CADCC,eAAM,U,gIAvqCa9T,EAAS6T,EAAA,CAV7BE,eAAU,CACVC,WAAY,CACXC,gBACAC,uBACAC,mBACAC,sBAKmBpU,WCnC8W,I,wBCQhYqU,EAAY,eACd,EACAva,EACAiG,GACA,EACA,KACA,WACA,MAIa,aAAAsU,E,gCCnBfC,EAAOC,QAAU,IAA0B,kC,uBCA3CD,EAAOC,QAAU,IAA0B,yB,4CCA3CD,EAAOC,QAAU,IAA0B","file":"js/chunk-b67e7eb4.63550e15.js","sourcesContent":["export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../node_modules/css-loader/index.js??ref--10-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./sessionai2.vue?vue&type=style&index=0&id=28168fce&prod&lang=less&scoped=scoped\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return (_vm.showai)?_c('div',{ref:\"aibox\",staticClass:\"content ai-box\",style:(1>2?'background: #3366FF;height: 100vh;position: relative;padding-top: constant(safe-area-inset-top);padding-top:env(safe-area-inset-top);' :'background: #3366FF;height: 100vh;position: relative;')},[_c('div',{staticClass:\"main\",staticStyle:{\"touch-action\":\"none\"}},[_c('div',{style:({height:'calc(80px + '+_vm.statusBarHeight +')',width:'100%'})}),_c('div',{staticClass:\"top-fixed-wrapper\"},[_c('div',{staticClass:\"status-bar\",style:({height:_vm.statusBarHeight,width:'100%'})}),_c('div',{staticClass:\"top-tab flex-row-block\"},[_c('div',{class:_vm.tabTitle=='chat'?'top-tab__item active-tab':'top-tab__item',on:{\"click\":function($event){return _vm.changeTab('chat')}}},[_vm._v(_vm._s(_vm.L(\"AI对话\")))]),(_vm.appList.length>1 && _vm.showzhushou)?_c('div',{class:_vm.tabTitle=='assistant'?'top-tab__item active-tab':'top-tab__item',on:{\"click\":function($event){return _vm.changeTab('assistant')}}},[_vm._v(_vm._s(_vm.L(\"AI助手\")))]):_vm._e(),_c('img',{staticStyle:{\"margin-left\":\"auto\",\"padding-right\":\"10px\"},attrs:{\"src\":require(\"../images/kefu.png\"),\"width\":\"36\"},on:{\"click\":function($event){return _vm.goFeekBck()}}})]),_c('div',{staticClass:\"top-hello-word flex-row-block flex-jc-sb\"},[(_vm.historyNew.length==0)?_c('div',{staticClass:\"text-1\",staticStyle:{\"color\":\"#fff\",\"font-size\":\"14px\",\"margin-right\":\"0\"}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.noonTip)+\",\"+_vm._s(_vm.L('想聊些什么话题'))+\"?\\n\\t\\t\\t\\t\\t\")]):_c('div',{staticClass:\"text-1\",staticStyle:{\"color\":\"#fff\",\"font-size\":\"14px\",\"margin-right\":\"0\"}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.noonTip)+\"\\n\\t\\t\\t\\t\\t\")]),_c('div',{staticClass:\"text-2\",staticStyle:{\"color\":\"#fff\",\"font-size\":\"14px\",\"margin-right\":\"0\"}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.dateToday)+\" \"+_vm._s(_vm.weekToday)+\"\\n\\t\\t\\t\\t\\t\")])])]),_c('pull-refresh',{style:({height:'calc(100% - 80px - 7px - '+_vm.statusBarHeight +')',width:'100%'}),attrs:{\"isios\":_vm.isios,\"height\":_vm.srcollHeight},on:{\"refresh\":_vm.onRefresh,\"refreshup\":_vm.onRefreshUp}},[(_vm.showpage=='1')?_c('div',{staticClass:\"page1-content\"},[(_vm.historyList.length>0)?_c('div',{ref:\"getheight\",staticClass:\"content-box\",attrs:{\"id\":\"markdown01\"},on:{\"click\":function($event){$event.stopPropagation();_vm.showmenu=false}}},[_vm._l((_vm.historyList),function(history,index){return _c('div',{key:index},[(history.showdate)?_c('div',{staticClass:\"time\"},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\"+_vm._s(history.datetime)+\"\\n\\t\\t\\t\\t\\t\\t\\t\")]):_vm._e(),_c('div',{staticClass:\"my-content-box\",attrs:{\"id\":'prompt'+history.id}},[_c('div',{staticClass:\"my-content\"},[_vm._v(_vm._s(history.prompt))])]),_c('div',{staticClass:\"their-content-box\"},[(history.isload)?_c('div',{staticClass:\"their-content load-box\"},[_c('span',[_vm._v(\" \"+_vm._s(_vm.L(\"答案生成中\"))+\" \")]),_c('img',{staticStyle:{\"height\":\"100%\"},attrs:{\"mode\":\"heightFix\",\"src\":require(\"../images/sending2.gif\")}})]):_c('vue-markdown',{attrs:{\"source\":history.answer!=''? history.answer.replaceAll(':**','**:'):_vm.L('请稍后再试'),\"highlight\":false}})],1),_c('div',{attrs:{\"id\":'history-' +history.id}})])}),(_vm.showHistory)?_c('div',{staticClass:\"ai-top\",staticStyle:{\"margin\":\"0 10px 10px\",\"padding-bottom\":\"10px\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.onRefreshUp.apply(null, arguments)}}},[_vm._v(\"-- \"+_vm._s(_vm.L(\"以上是历史对话,上拉开启新话题\"))+\" --\\n\\t\\t\\t\\t\\t\\t\")]):_vm._e()],2):_vm._e(),(_vm.historyNew.length>0 )?_c('div',{staticClass:\"content-box\",attrs:{\"id\":\"markdown02\"},on:{\"click\":function($event){$event.stopPropagation();_vm.showmenu=false}}},_vm._l((_vm.historyNew),function(history,index){return _c('div',{key:index},[(history.showdate)?_c('div',{staticClass:\"time\"},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\"+_vm._s(history.datetime)+\"\\n\\t\\t\\t\\t\\t\\t\\t\")]):_vm._e(),_c('div',{staticClass:\"my-content-box\",attrs:{\"id\":'prompt'+history.id}},[(history.voice==1)?_c('div',{staticClass:\"my-content my-content-yuyin\"},[_c('div',{staticStyle:{\"display\":\"inline-block\"}},[_vm._v(\" \"+_vm._s(history.prompt))]),_c('img',{staticStyle:{\"width\":\"24px\"},attrs:{\"src\":require(\"../images/soundwave.png\")}})]):_c('span',{staticClass:\"my-content\"},[_vm._v(_vm._s(history.prompt))])]),_c('div',{staticClass:\"their-content-box\"},[(history.isload)?_c('div',{staticClass:\"their-content load-box\"},[_c('span',[_vm._v(\" \"+_vm._s(_vm.L(\"答案生成中\"))+\" \")]),_c('img',{staticStyle:{\"height\":\"100%\"},attrs:{\"mode\":\"heightFix\",\"src\":require(\"../images/sending2.gif\")}})]):_c('vue-markdown',{attrs:{\"source\":history.answer!=''? history.answer.replaceAll(':**','**:'):_vm.L('请稍后再试'),\"highlight\":false}})],1),(history.id>0)?_c('div',{attrs:{\"id\":'history-'+history.id}}):_vm._e()])}),0):_vm._e(),(_vm.userid>0 && (_vm.showTool||_vm.historyNew.length>0))?_c('div',{staticClass:\"util-box\"},[(_vm.showstop && _vm.sessinfo.id==0)?_c('div',{staticStyle:{\"font-size\":\"12px\"}},[_c('div',[_vm._v(_vm._s(_vm.L(\"回答已停止生成\")))])]):_vm._e(),(true)?_c('div',{staticClass:\"box-wrapper\"},[(_vm.historyNew.length>0 && _vm.sessinfo.id>0)?_c('div',{staticClass:\"util-box-item\",on:{\"click\":_vm.againSend}},[_c('img',{attrs:{\"src\":require(\"../images/refresh.png\"),\"mode\":\"widthFix\"}}),_vm._v(_vm._s(_vm.L(\"重新生成\"))+\"\\n\\t\\t\\t\\t\\t\\t\\t\")]):_vm._e(),(_vm.showTool && _vm.sessinfo.id>0 )?_c('div',{staticClass:\"util-box-item share-box\",on:{\"click\":function($event){return _vm.shareToWeixin('WXSceneSession')}}},[_c('img',{attrs:{\"src\":require(\"../images/share2.png\"),\"mode\":\"widthFix\"}}),_vm._v(_vm._s(_vm.L(\"Share\"))+\"\\n\\t\\t\\t\\t\\t\\t\\t\")]):_vm._e(),(_vm.showTool && _vm.actiontype!=2 && _vm.sessinfo.id>0 )?_c('div',{staticClass:\"util-box-item\",on:{\"click\":_vm.dianzan}},[(_vm.actiontype==1)?_c('img',{staticStyle:{\"margin-right\":\"0\"},attrs:{\"src\":require(\"../images/good_on.png\"),\"mode\":\"widthFix\"}}):_c('img',{staticStyle:{\"margin-right\":\"0\"},attrs:{\"src\":require(\"../images/good.png\"),\"mode\":\"widthFix\"}})]):_vm._e(),(_vm.showTool && _vm.actiontype!=1 && _vm.sessinfo.id>0)?_c('div',{staticClass:\"util-box-item\",staticStyle:{\"margin-right\":\"0\"},on:{\"click\":_vm.diancai}},[(_vm.actiontype==2)?_c('img',{staticStyle:{\"margin-right\":\"0\"},attrs:{\"src\":require(\"../images/bad_on.png\"),\"mode\":\"widthFix\"}}):_c('img',{staticStyle:{\"margin-right\":\"0\"},attrs:{\"src\":require(\"../images/bad.png\"),\"mode\":\"widthFix\"}})]):_vm._e()]):_vm._e()]):_vm._e(),_c('div',{ref:\"history0\",staticStyle:{\"height\":\"1px\"},attrs:{\"id\":\"history-0\"}})]):_vm._e(),(_vm.showpage=='2')?_c('div',{staticClass:\"page2-content\"},[(_vm.tabTitle=='assistant')?_c('div',{staticStyle:{\"height\":\"40px\",\"overflow\":\"hidden\"}},[_c('div',{style:(_vm.transStyle)},_vm._l((_vm.tagList),function(item){return _c('div',{staticStyle:{\"height\":\"40px\",\"line-height\":\"40px\",\"color\":\"#fff\"}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.lang=='en'&& item.remark!=null?item.remark:item.name)+\"\\n\\t\\t\\t\\t\\t\\t\\t\")])}),0)]):_vm._e(),(_vm.historyNew.length==0 && _vm.lastTitle!='')?_c('div',{staticClass:\"up-title\"},[_c('span',{staticClass:\"text-3\"},[_vm._v(_vm._s(_vm.L('上次聊到'))+\" \")]),_vm._v(_vm._s(_vm.lastTitle)+\"\\n\\t\\t\\t\\t\\t\")]):_vm._e(),_c('div',{staticClass:\"text-4\",on:{\"click\":function($event){$event.stopPropagation();return _vm.onRefresh.apply(null, arguments)}}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t-- \"+_vm._s(_vm.L(\"开启了新话题,下拉回顾\"))+\" --\\n\\t\\t\\t\\t\\t\")]),(_vm.historyNew.length>0)?_c('div',{staticClass:\"content-box\",attrs:{\"id\":\"markdown02\"},on:{\"click\":function($event){$event.stopPropagation();_vm.showmenu=false}}},_vm._l((_vm.historyNew),function(history,index){return _c('div',{key:index},[(history.showdate)?_c('div',{staticClass:\"time\"},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\"+_vm._s(history.datetime)+\"\\n\\t\\t\\t\\t\\t\\t\\t\")]):_vm._e(),_c('div',{staticClass:\"my-content-box\",attrs:{\"id\":'prompt'+history.id}},[(history.voice==1)?_c('div',{staticClass:\"my-content my-content-yuyin\"},[_c('div',{staticStyle:{\"display\":\"inline-block\"}},[_vm._v(\" \"+_vm._s(history.prompt))]),_c('img',{staticStyle:{\"width\":\"24px\"},attrs:{\"src\":require(\"../images/soundwave.png\")}})]):_c('span',{staticClass:\"my-content\"},[_vm._v(_vm._s(history.prompt))])]),_c('div',{staticClass:\"their-content-box\"},[(history.isload)?_c('div',{staticClass:\"their-content load-box\"},[_c('span',[_vm._v(\" \"+_vm._s(_vm.L(\"答案生成中\"))+\" \")]),_c('img',{staticStyle:{\"height\":\"100%\"},attrs:{\"mode\":\"heightFix\",\"src\":require(\"../images/sending2.gif\")}})]):_c('vue-markdown',{attrs:{\"source\":history.answer!=''? history.answer.replaceAll(':**','**:'):_vm.L('请稍后再试'),\"highlight\":false}})],1),(history.id>0)?_c('div',{attrs:{\"id\":'history-'+history.id}}):_vm._e()])}),0):_vm._e(),(_vm.userid>0 && (_vm.showTool||_vm.historyNew.length>0))?_c('div',{staticClass:\"util-box\"},[(_vm.showstop && _vm.sessinfo.id==0)?_c('div',{staticStyle:{\"font-size\":\"12px\"}},[_c('div',[_vm._v(_vm._s(_vm.L(\"回答已停止生成\")))])]):_vm._e(),(true)?_c('div',{staticClass:\"box-wrapper\"},[(_vm.historyNew.length>0 && _vm.sessinfo.id>0 )?_c('div',{staticClass:\"util-box-item\",on:{\"click\":_vm.againSend}},[_c('img',{attrs:{\"src\":require(\"../images/refresh.png\"),\"mode\":\"widthFix\"}}),_vm._v(_vm._s(_vm.L(\"重新生成\"))+\"\\n\\t\\t\\t\\t\\t\\t\\t\")]):_vm._e(),(_vm.showTool && _vm.sessinfo.id>0 )?_c('div',{staticClass:\"util-box-item share-box\",on:{\"click\":function($event){return _vm.shareToWeixin('WXSceneSession')}}},[_c('img',{attrs:{\"src\":require(\"../images/share2.png\"),\"mode\":\"widthFix\"}}),_vm._v(_vm._s(_vm.L(\"Share\"))+\"\\n\\t\\t\\t\\t\\t\\t\\t\")]):_vm._e(),(_vm.showTool && _vm.actiontype!=2 && _vm.sessinfo.id>0 )?_c('div',{staticClass:\"util-box-item\",on:{\"click\":_vm.dianzan}},[(_vm.actiontype==1)?_c('img',{staticStyle:{\"margin-right\":\"0\"},attrs:{\"src\":require(\"../images/good_on.png\"),\"mode\":\"widthFix\"}}):_c('img',{staticStyle:{\"margin-right\":\"0\"},attrs:{\"src\":require(\"../images/good.png\"),\"mode\":\"widthFix\"}})]):_vm._e(),(_vm.showTool && _vm.actiontype!=1 && _vm.sessinfo.id>0 )?_c('div',{staticClass:\"util-box-item\",staticStyle:{\"margin-right\":\"0\"},on:{\"click\":_vm.diancai}},[(_vm.actiontype==2)?_c('img',{staticStyle:{\"margin-right\":\"0\"},attrs:{\"src\":require(\"../images/bad_on.png\"),\"mode\":\"widthFix\"}}):_c('img',{staticStyle:{\"margin-right\":\"0\"},attrs:{\"src\":require(\"../images/bad.png\"),\"mode\":\"widthFix\"}})]):_vm._e()]):_vm._e()]):_vm._e(),_c('div',{ref:\"historynew0\",staticStyle:{\"height\":\"1px\"},attrs:{\"id\":\"historynew-0\"}})]):_vm._e()]),(_vm.userid>0)?_c('div',{staticClass:\"bottom-box\"},[(_vm.imgurl!='')?_c('div',{staticClass:\"img-box\"},[_c('img',{attrs:{\"src\":_vm.imgurl,\"mode\":\"heightFix\"}}),_c('i',{staticClass:\"yfapp imgdelIcon\",on:{\"click\":function($event){return _vm.handleImg()}}},[_vm._v(\"\")])]):_vm._e(),_c('div',{staticClass:\"bottom-box-item bottom-box-item-center\",staticStyle:{\"width\":\"calc(100% - 52px)\"}},[_c('Input',{attrs:{\"hidden\":_vm.keyboardvic!=0,\"disabled\":_vm.disabled,\"placeholder\":_vm.L('有问题尽管问我')},on:{\"on-change\":_vm.inputChange,\"on-enter\":_vm.sessionSave},model:{value:(_vm.prompt),callback:function ($$v) {_vm.prompt=$$v},expression:\"prompt\"}}),_c('audio-enter',{attrs:{\"isShow\":_vm.keyboardvic==1?true:false,\"ispc\":_vm.ispc,\"prompt\":_vm.prompt,\"disabled\":_vm.disabled,\"sendTitle\":_vm.sendTitle,\"title\":_vm.audioTitle,\"pcsendTitle\":_vm.pcSendTitle,\"pctitle\":_vm.pcAudioTitle,\"random\":_vm.random},on:{\"closeAudio\":_vm.closeAudio,\"sendAudio\":_vm.sendAudio,\"voiceChange\":_vm.voiceChange,\"cancelAudio\":_vm.cancelAudio}})],1),_c('div',{staticClass:\"bottom-box-item-img img-voice-box\",style:(_vm.keyboardvic==0 && _vm.prompt=='' ? 'display:inline-block':'display:none')},[_c('img',{attrs:{\"src\":require(\"../images/voice2.png\"),\"mode\":\"heightFix\"},on:{\"click\":_vm.voiceChange}})]),_c('div',{staticClass:\"bottom-box-item-img img-send-box\",style:(_vm.keyboardvic==0 && _vm.prompt!='' ? 'display:inline-block;background: #3366FF;':'display:none')},[_c('img',{attrs:{\"src\":require(\"../images/send2.png\"),\"mode\":\"heightFix\"},on:{\"click\":_vm.sessionSave}})]),_c('div',{staticClass:\"bottom-box-item-img img-voice-box\",style:(_vm.keyboardvic==1?'display:inline-block':'display:none')},[_c('img',{attrs:{\"src\":require(\"../images/keyboard.png\"),\"mode\":\"heightFix\"},on:{\"click\":_vm.voiceChange}})])]):_vm._e()],1),(_vm.showDownloadImgPopup)?[_c('div',{staticClass:\"image-popup\",on:{\"click\":_vm.reset}}),_c('div',{staticClass:\"image-popup-content\",attrs:{\"id\":\"imagePopup\"}},[_c('div',{staticClass:\"image-wrapper\"},[_c('img',{attrs:{\"src\":_vm.downLoadImgUrl}})]),_c('div',{staticClass:\"btn-wrapper\"},[_c('div',{staticClass:\"btn-item\",on:{\"click\":_vm.downloadImg}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.L('下载图片'))+\"\\n\\t\\t\\t\\t\\t\\t\"),_c('img',{attrs:{\"src\":require(\"../images/downloadimage.png\")}})]),_c('div',{staticClass:\"btn-item\",on:{\"click\":_vm.reset}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.L('取消'))+\"\\n\\t\\t\\t\\t\\t\\t\"),_c('img',{attrs:{\"src\":require(\"../images/canceldownload.png\")}})])])])]:_vm._e()],2):_c('div',{staticClass:\"no-power-wrapper\"},[_c('div',{style:({height:'calc(80px + '+_vm.statusBarHeight +')',width:'100%'})}),_c('div',{staticClass:\"top-fixed-wrapper\"},[_c('div',{staticClass:\"status-bar\",style:({height:_vm.statusBarHeight,width:'100%'})}),_c('div',{staticClass:\"top-tab flex-row-block\"},[_c('div',{class:_vm.tabTitle=='chat'?'top-tab__item active-tab':'top-tab__item',on:{\"click\":function($event){return _vm.changeTab('chat')}}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.L(\"AI对话\"))+\"\\n\\t\\t\\t\\t\")])]),_c('div',{staticClass:\"top-hello-word flex-row-block flex-jc-sb\"},[(_vm.historyNew.length==0)?_c('div',{staticClass:\"text-1\",staticStyle:{\"color\":\"#fff\",\"font-size\":\"14px\",\"margin-right\":\"0\"}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.noonTip)+\"\\n\\t\\t\\t\\t\")]):_c('div',{staticClass:\"text-1\",staticStyle:{\"color\":\"#fff\",\"font-size\":\"14px\",\"margin-right\":\"0\"}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.noonTip)+\"\\n\\t\\t\\t\\t\")]),_c('div',{staticClass:\"text-2\",staticStyle:{\"color\":\"#fff\",\"font-size\":\"14px\",\"margin-right\":\"0\"}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.dateToday)+\" \"+_vm._s(_vm.weekToday)+\"\\n\\t\\t\\t\\t\")])])]),_c('div',{staticClass:\"no-power\"},[_c('img',{attrs:{\"src\":require(\"../images/wuquanxian.png\")}}),_c('div',{staticClass:\"no-power-desc\"},[_vm._v(_vm._s(_vm.L('您没有使用权限')))])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\timport {\r\n\t\tComponent,\r\n\t\tVue,\r\n\t\tInject,\r\n\t\tProp,\r\n\t\tWatch,\r\n\t} from 'vue-property-decorator';\r\n\timport Util from '@/lib/util';\r\n\timport AbpBase from '@/lib/abpbase';\r\n\timport Viewer from 'v-viewer'\r\n\timport 'viewerjs/dist/viewer.css'\r\n\timport liburl from '@/lib/url';\r\n\timport DropDownRefresh from '@/components/DropDownRefresh.vue'\r\n\r\n\timport PullRefresh from '@/components/PullRefresh.vue'\r\n\timport AudioEnter from '@/components/AudioEnter2.vue'\r\n\timport axios from 'axios'\r\n\timport ajax from '@/lib/ajax'\r\n\timport {\r\n\t\tBase64\r\n\t} from 'js-base64';\r\n\timport moment from 'moment'\r\n\timport VueMarkdown from 'vue-markdown'\r\n\timport he from 'he';\r\n\t@Component({\r\n\t\tcomponents: {\r\n\t\t\tVueMarkdown,\r\n\t\t\tDropDownRefresh,\r\n\t\t\tPullRefresh,\r\n\t\t\tAudioEnter\r\n\t\t}\r\n\t})\r\n\r\n\r\n\texport default class SessionAI extends AbpBase {\r\n\t\tconfig: {\r\n\t\t\t// 禁用页面滑动\r\n\t\t\tdisableScroll: true\r\n\t\t}\r\n\t\tuserAgent: string = \"\";\r\n\t\t// sessinfo: Object = new Object() as any;\r\n\t\tsessinfo: Object = {\r\n\t\t\tid: 0\r\n\t\t}\r\n\t\tsid: number = 0;\r\n\r\n\t\tuserid: number = 0;\r\n\t\tcommentBox: boolean = false;\r\n\t\tisRefresh: boolean = true;\r\n\t\thistoryList: Array < Object > = new Array < Object > ();\r\n\t\thistoryNew: Array < Object > = new Array < Object > ();\r\n\t\tcommentContent: string = \"\";\r\n\t\tloadmore: boolean = true;\r\n\t\toptertionInfo: Object = {\r\n\t\t\tlikeId: 0,\r\n\t\t\tisLike: false,\r\n\t\t\tfollowId: 0,\r\n\t\t\tisFollow: false\r\n\t\t};\r\n\t\tuserInfo: Object = new Object();\r\n\t\tanonymous: boolean = false;\r\n\t\timgBox: boolean = false;\r\n\t\tcurrentImgs: Array < Object > = new Array < Object > ();\r\n\t\tcurrentImgUrl: string = '';\r\n\t\tscreenWidth: number = 0;\r\n\t\tappList: Array < Object > = new Array < Object > ();\r\n\t\tappid: number = 0;\r\n\t\tshowmenu: boolean = false;\r\n\t\tdisabled: boolean = false;\r\n\t\tshowHistory: boolean = false;\r\n\t\tisFresh: boolean = false;\r\n\t\tisSend: boolean = false;\r\n\t\tshowTool: boolean = false;\r\n\t\tscrollHeight: number = 500;\r\n\t\tscrollid: string = \"\";\r\n\t\tprompt: string = \"\";\r\n\t\timgurl: string = '';\r\n\t\tloadingType: number = 0;\r\n\t\tpagesize: number = 10;\r\n\t\tpageindex: number = 1;\r\n\t\tsessionid: string = \"\";\r\n\t\tsessionCount: number = 0;\r\n\r\n\t\tactiontype: number = 0; //1 赞 2 踩\r\n\t\tispc: boolean = false;\r\n\r\n\t\tansterdata: string = \"\";\r\n\t\tanswerstop: boolean = true;\r\n\t\tshowstop: boolean = false;\r\n\r\n\t\tkeyboardvic: number = 0;\r\n\t\tisShow: boolean = false;\r\n\t\trandom: number = 0;\r\n\t\tshowpage: string = \"2\";\r\n\r\n\t\tsrcollHeight: number = 137;\r\n\t\t//passuserid:Array = [10000,1600,1601,40376,40375,40374,40373,40372,40371,40370,40369,40368,40367];\r\n\r\n\r\n\r\n\r\n\t\tshowShare: boolean = false;\r\n\t\tshownews: number = 0; // 0加载中 1 可见 2 不可见\r\n\t\tmsg: string = '';\r\n\t\tisPreview: boolean = false;\r\n\t\tnewsReadCount: number = 0;\r\n\t\ttop: 0;\r\n\t\tstartY: number = 0;\r\n\t\tmoveY: number = 0;\r\n\t\tisRefreshing: false;\r\n\t\ttitle: string = \"\";\r\n\t\taudioTitle: string = \"\";\r\n\t\tsendTitle: string = \"\";\r\n\r\n\t\tpcAudioTitle: string = \"\";\r\n\t\tpcSendTitle: string = \"\";\r\n\r\n\t\tdateToday: string = \"\";\r\n\t\tweekToday: string = \"\";\r\n\t\tnoonTip: string = \"\";\r\n\r\n\t\tlastTitle: string = \"\";\r\n\t\tisios: boolean = false;\r\n\r\n\t\tcurrentIndex: number = 5\r\n\t\ttransition: number = 300;\r\n\t\t//定时器\r\n\t\ttransTimer: number = null;\r\n\t\tscrollData: Array < string > = ['1', '2', '3', '4', '5', '6', '7', '8']\r\n\t\ttabTitle: string = \"chat\";\r\n\t\ttagList: Array < any > = new Array < any > ();\r\n\t\tlang: string = \"\";\r\n\t\tshowai: boolean = true;\r\n\t\tshowzhushou: boolean = false;\r\n\r\n\r\n\t\tshowDownloadImgPopup: boolean = false;\r\n\r\n\t\tdownLoadImgUrl: string = \"\"\r\n\r\n\r\n\t\tpressTimer = null;\r\n\r\n\t\tgoFeekBck() {\r\n\t\t\tconsole.log(1)\r\n\t\t\tuni.postMessage({\r\n\t\t\t\tdata: {\r\n\t\t\t\t\taction: 'message'\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\tgetSafeAreaInsetTop() {\r\n\t\t\ttry {\r\n\t\t\t\tconst style = getComputedStyle(document.documentElement);\r\n\t\t\t\tconst safeAreaInsetTop = style.getPropertyValue('--safe-area-inset-top').trim();\r\n\t\t\t\tconsole.log('Safe area inset top:', safeAreaInsetTop);\r\n\t\t\t} catch (e) {\r\n\t\t\t\t//TODO handle the exception\r\n\t\t\t}\r\n\r\n\t\t\t// 你可以根据需要将值存储在组件的数据属性中\r\n\t\t}\r\n\r\n\t\tchangeTab(tabtype) {\r\n\t\t\tvar that = this;\r\n\t\t\tif (tabtype == 'assistant') {\r\n\t\t\t\tif (this.appList.length > 1) {\r\n\t\t\t\t\tthis.appid = (this.appList[1] as any).id;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (tabtype == 'chat') {\r\n\t\t\t\tif (this.appList.length > 0) {\r\n\t\t\t\t\tthis.appid = (this.appList[0] as any).id;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.tabTitle = tabtype;\r\n\t\t\tthat.historyList = [];\r\n\t\t\tthat.loadingType = 0;\r\n\t\t\tthat.scrollid = \"\";\r\n\t\t\tthat.pageindex = 1;\r\n\t\t\tthat.sessionid = \"\";\r\n\t\t\tthat.historyNew = [];\r\n\t\t\tthat.lastTitle = \"\";\r\n\t\t\tthat.showpage = '2';\r\n\t\t\tthat.getSessionNew();\r\n\t\t\tvar info = {\r\n\t\t\t\tid: 0,\r\n\t\t\t\tprompt: \"\",\r\n\t\t\t\tanswer: '',\r\n\t\t\t\tisload: false,\r\n\t\t\t}\r\n\t\t\tthat.sessinfo = info;\r\n\r\n\t\t}\r\n\t\tgetTipsList() {\r\n\t\t\tvar that = this;\r\n\t\t\tvar request = new Object() as any;\r\n\t\t\trequest.maxResultCount = 1000;\r\n\t\t\trequest.skipCount = 0;\r\n\t\t\trequest.type = 12;\r\n\r\n\t\t\tthis.$store.dispatch({\r\n\t\t\t\ttype: 'tag/getAllList',\r\n\t\t\t\tdata: request\r\n\t\t\t}).then(res => {\r\n\t\t\t\tconsole.log(res);\r\n\t\t\t\tvar result = res.items;\r\n\t\t\t\tthat.tagList = result;\r\n\t\t\t\tconsole.log(result)\r\n\r\n\t\t\t})\r\n\r\n\r\n\t\t}\r\n\r\n\t\t//状态栏高度\r\n\t\tget statusBarHeight() {\r\n\t\t\tvar height = 0;\r\n\t\t\tvar isios = this.isIos();\r\n\t\t\tif (isios) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconst style = getComputedStyle(document.documentElement);\r\n\t\t\t\t\tconst safeAreaInsetTop = style.getPropertyValue('--safe-area-inset-top').trim().replace('px', '')\r\n\t\t\t\t\t\t.replace('pt', '');\r\n\t\t\t\t\tif (safeAreaInsetTop != '') {\r\n\t\t\t\t\t\theight = parseInt(safeAreaInsetTop)\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\theight = 44;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tconsole.log(\"safeAreaInsetTop:\" + safeAreaInsetTop);\r\n\t\t\t\t} catch (e) {\r\n\t\t\t\t\theight = 44;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\theight = window.innerHeight * 0.05;\r\n\t\t\t}\r\n\t\t\tthis.srcollHeight = (137 + height);\r\n\t\t\tvar heightnew = height + 'px';\r\n\t\t\treturn heightnew;\r\n\t\t}\r\n\r\n\t\t// 滚动样式\r\n\t\tget transStyle() {\r\n\t\t\treturn {\r\n\t\t\t\ttransition: `${this.transition}ms`,\r\n\t\t\t\ttransform: `translate3d(0,${this.currentIndex * -40}px, 0)`\r\n\t\t\t}\r\n\t\t}\r\n\t\tvoiceChange() {\r\n\t\t\tif (!this.disabled) {\r\n\t\t\t\tthis.prompt = \"\";\r\n\t\t\t\tthis.keyboardvic = this.keyboardvic == 0 ? 1 : 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcancelAudio() {\r\n\t\t\tthis.prompt = \"\";\r\n\t\t}\r\n\t\tasync closeAudio(data, touchEndTrans) {\r\n\t\t\t//console.log(touchEndTrans)\r\n\t\t\tvar that = this;\r\n\t\t\tif (!that.disabled && data.size > 100) {\r\n\t\t\t\tvar form = new FormData();\r\n\t\t\t\tform.append(\"upfile\", data);\r\n\t\t\t\tvar res = await this.$store.dispatch({\r\n\t\t\t\t\ttype: 'app/speechProcess',\r\n\t\t\t\t\tdata: form\r\n\t\t\t\t}).then((res) => {\r\n\t\t\t\t\tif (res.success) {\r\n\r\n\t\t\t\t\t\tthat.prompt = res.msg;\r\n\t\t\t\t\t\tthat.random = Math.floor(Math.random() * 100 + 1);\r\n\r\n\t\t\t\t\t\tif (!touchEndTrans) {\r\n\t\t\t\t\t\t\tthat.sessionSave();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthat.$Message.warning(\"解析失败\")\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t})\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tasync sendAudio(content) {\r\n\t\t\tthis.prompt = content;\r\n\t\t\t//console.log(this.prompt)\r\n\t\t\tthis.keyboardvic = 0;\r\n\t\t\tthis.sessionSave();\r\n\t\t}\r\n\r\n\t\t//上拉 开启新话题\r\n\t\tonRefreshUp(done) {\r\n\t\t\tvar that = this;\r\n\t\t\tconsole.log(\"onRefreshUp\")\r\n\t\t\treturn;\r\n\r\n\t\t\tif (that.userid > 0) {\r\n\t\t\t\tif (that.showpage == '2') {\r\n\t\t\t\t\tthat.historyList = [];\r\n\t\t\t\t\tthat.loadingType = 0;\r\n\t\t\t\t\tthat.scrollid = \"\";\r\n\t\t\t\t\tthat.pageindex = 1;\r\n\t\t\t\t\tthat.sessionid = \"\";\r\n\t\t\t\t\tthat.historyNew = [];\r\n\t\t\t\t\tthat.getSessionNew();\r\n\t\t\t\t\tvar info = {\r\n\t\t\t\t\t\tid: 0,\r\n\t\t\t\t\t\tprompt: \"\",\r\n\t\t\t\t\t\tanswer: '',\r\n\t\t\t\t\t\tisload: false,\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthat.sessinfo = info;\r\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tdone();\r\n\t\t\t\t\t} catch (e) {\r\n\t\t\t\t\t\t//TODO handle the exception\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\tthat.showpage = '2';\r\n\t\t\t\tthat.historyList = [];\r\n\t\t\t\tthat.loadingType = 0;\r\n\t\t\t\tthat.scrollid = \"\";\r\n\t\t\t\tthat.pageindex = 1;\r\n\t\t\t\tthat.sessionid = \"\";\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (that.isios) {\r\n\t\t\t\t\t\twindow.webkit.messageHandlers.vibrate.postMessage(100);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tnavigator.vibrate(100);\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (e) {\r\n\t\t\t\t\t//TODO handle the exception\r\n\t\t\t\t}\r\n\t\t\t\tthat.historyNew = [];\r\n\t\t\t\tthat.getSessionNew();\r\n\t\t\t\tvar info = {\r\n\t\t\t\t\tid: 0,\r\n\t\t\t\t\tprompt: \"\",\r\n\t\t\t\t\tanswer: '',\r\n\t\t\t\t\tisload: false,\r\n\t\t\t\t}\r\n\t\t\t\tthat.sessinfo = info;\r\n\r\n\t\t\t\tthat.$nextTick(() => {\r\n\t\t\t\t\t//添加出现动画\r\n\t\t\t\t\t//document.getElementsByClassName('page2-content')[0].classList.add('page2-content-animation');\r\n\t\t\t\t})\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdone();\r\n\t\t\t\t} catch (e) {\r\n\t\t\t\t\t//TODO handle the exception\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//下拉 查理历史\r\n\t\tonRefresh(done) {\r\n\t\t\tvar that = this;\r\n\t\t\tconsole.log(\"onRefresh\")\r\n\t\t\tthat.showpage = '1';\r\n\t\t\tif (that.userid > 0) {\r\n\t\t\t\t// 如果下拉刷新和上拉加载同时使用,下拉时初始化上拉的数据\r\n\t\t\t\tconsole.log(\"done\")\r\n\t\t\t\tif (that.loadingType != 0) { //loadingType!=0;直接返回\r\n\r\n\t\t\t\t\tthat.isFresh = true;\r\n\t\t\t\t\tsetTimeout(function() {\r\n\r\n\t\t\t\t\t\tthat.isFresh = false;\r\n\t\t\t\t\t\tconsole.log(that.isFresh)\r\n\t\t\t\t\t}, 100)\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tdone();\r\n\t\t\t\t\t} catch (e) {\r\n\t\t\t\t\t\t//TODO handle the exception\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tthat.isFresh = true;\r\n\t\t\t\tif (that.pageindex == 1) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tif (that.isios) {\r\n\t\t\t\t\t\t\twindow.webkit.messageHandlers.vibrate.postMessage(100);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tnavigator.vibrate(100);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} catch (e) {\r\n\t\t\t\t\t\t//TODO handle the exception\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\tthis.load();\r\n\t\t\t\tthat.showHistory = true;\r\n\t\t\t\tsetTimeout(function() {\r\n\r\n\t\t\t\t\tthat.isFresh = false;\r\n\t\t\t\t\tconsole.log(that.isFresh)\r\n\r\n\t\t\t\t}, 800)\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tdone();\r\n\t\t\t} catch (e) {\r\n\t\t\t\t//TODO handle the exception\r\n\t\t\t}\r\n\r\n\r\n\t\t}\r\n\t\t/**\r\n\t\t * 上拉加载\r\n\t\t */\r\n\t\tonInfiniteLoad(done) {\r\n\t\t\t// console.log(\"load\")\r\n\t\t\tdone()\r\n\t\t}\r\n\t\tshare() {\r\n\t\t\tthis.showShare = true;\r\n\r\n\t\t}\r\n\t\tshareToWeixin(shareWeixinType) {\r\n\t\t\tvar that = this;\r\n\t\t\tvar sessinfo = (this.sessinfo as any);\r\n\t\t\tvar title = sessinfo.prompt;\r\n\t\t\tvar link = location.protocol + \"//\" + location.host + \"/#/sessionai?sid=\" + sessinfo.id;\r\n\t\t\tvar content = \"点击查看完整对话\";\r\n\t\t\ttitle = title.substr(0, 20);\r\n\t\t\t//var coverImg = sessinfo.coverImg;\r\n\t\t\tif (content == '') {\r\n\t\t\t\tcontent = title;\r\n\t\t\t}\r\n\t\t\t// if (that.isIos()) {\r\n\t\t\t// \tthat.$store.dispatch({\r\n\t\t\t// \t\ttype: 'app/refreshOSSPresignedUri',\r\n\t\t\t// \t\tdata: {\r\n\t\t\t// \t\t\turl: coverImg,\r\n\t\t\t// \t\t\tprocess: 'image/resize,m_fixed,w_30,h_30'\r\n\t\t\t// \t\t}\r\n\t\t\t// \t}).then(res => {\r\n\t\t\t// \t\tcoverImg = res;\r\n\t\t\t// \t\tthat.gisShareToWeixin(title, content, link, coverImg, shareWeixinType);\r\n\t\t\t// \t});\r\n\t\t\t// } else {\r\n\t\t\tthat.gisShareToWeixin(title, content, link, \"\", shareWeixinType);\r\n\t\t\t//}\r\n\r\n\t\t}\r\n\t\tgisShareToWeixin(title, content, link, coverImg, shareWeixinType) {\r\n\t\t\tvar that = this;\r\n\t\t\t// shareWeixinType: string = \"WXSceneSession\" // WXSceneTimeline\r\n\t\t\t(window as any).gis.shareToWeixin({\r\n\t\t\t\ttype: 'web',\r\n\t\t\t\ttitle: title,\r\n\t\t\t\tcontent: content,\r\n\t\t\t\thref: link,\r\n\t\t\t\tthumbs: [\"\"],\r\n\t\t\t\textra: {\r\n\t\t\t\t\tscene: shareWeixinType\r\n\t\t\t\t},\r\n\t\t\t\t// pictures:[news.coverImg],\r\n\t\t\t\tsuccess: function() {\r\n\t\t\t\t\t//that.showShare = false;\r\n\t\t\t\t\t//that.createNewsOperation(3);\r\n\t\t\t\t},\r\n\t\t\t\tfail: function() {\r\n\t\t\t\t\tthat.showShare = false;\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t}\r\n\r\n\t\tinputChange(e) {\r\n\t\t\t// if (e.target.value.length > 0) {\r\n\t\t\t// \tthis.isSend = true;\r\n\t\t\t// } else {\r\n\t\t\t// \tthis.isSend = false;\r\n\t\t\t// }\r\n\t\t}\r\n\t\tisIos() {\r\n\t\t\tvar u = navigator.userAgent.toLowerCase();\r\n\t\t\tthis.userAgent = u;\r\n\t\t\tif (u.indexOf(\"iphone\") > -1 || u.indexOf(\"ios\") > -1 || u.indexOf(\"mac\") > -1) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tload() {\r\n\t\t\tvar that = this;\r\n\t\t\tthat.loadSessionHistoryList();\r\n\t\t}\r\n\t\tminutesDifference(time1, time2) {\r\n\t\t\t// 将时间字符串转换为日期对象\r\n\t\t\tvar date1 = new Date(time1);\r\n\t\t\tvar date2 = new Date(time2);\r\n\r\n\t\t\t// 计算两个日期之间的毫秒差值\r\n\t\t\tvar diff = date2.getTime() - date1.getTime();\r\n\r\n\t\t\t// 将毫秒差值转换为分钟\r\n\t\t\treturn diff / (1000 * 60);\r\n\t\t}\r\n\t\tloadSessionHistoryList() {\r\n\t\t\tvar that = this;\r\n\r\n\t\t\tthat.loadingType = 1;\r\n\r\n\t\t\tvar request = new Object() as any;\r\n\t\t\trequest.maxResultCount = this.pagesize;\r\n\t\t\trequest.skipCount = (this.pageindex - 1) * this.pagesize;\r\n\t\t\trequest.appId = that.appid\r\n\t\t\tthis.$store.dispatch({\r\n\t\t\t\ttype: 'app/getSessionHistoryList',\r\n\t\t\t\tdata: request\r\n\t\t\t}).then((res) => {\r\n\t\t\t\tvar list = res.items;\r\n\t\t\t\tif (list.length < that.pagesize) {\r\n\t\t\t\t\tthat.loadingType = 2;\r\n\t\t\t\t\tthat.title = that.L(\"已无更多历史对话\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthat.loadingType = 0; //将loadingType归0重置\r\n\t\t\t\t\tthat.pageindex++;\r\n\t\t\t\t}\r\n\t\t\t\tvar scrollid = \"\";\r\n\t\t\t\tfor (var i = 0; i < list.length; i++) {\r\n\t\t\t\t\tvar findindex = that.historyNew.findIndex(e => {\r\n\t\t\t\t\t\treturn (e as any).id == list[i].id\r\n\t\t\t\t\t})\r\n\t\t\t\t\tif (findindex < 0) {\r\n\t\t\t\t\t\tlist[i].isload = false;\r\n\t\t\t\t\t\tlist[i].showdate = true;\r\n\t\t\t\t\t\tlist[i].datetime = that.formatDateStr(list[i].creationTime);\r\n\t\t\t\t\t\tif (i < list.length - 1) {\r\n\t\t\t\t\t\t\tvar date1 = list[i].creationTime;\r\n\t\t\t\t\t\t\tvar date2 = list[i + 1].creationTime;\r\n\t\t\t\t\t\t\tvar mins = that.minutesDifference(date2, date1);\r\n\t\t\t\t\t\t\t//console.log(\"date1:\"+date2+\",date2:\"+date1+\",mins:\"+mins)\r\n\t\t\t\t\t\t\tif (mins < 5) {\r\n\t\t\t\t\t\t\t\tlist[i].showdate = false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (i == 0) {\r\n\t\t\t\t\t\t\tif (that.historyList.length == 0) {\r\n\t\t\t\t\t\t\t\tif (that.showpage == '2') {\r\n\t\t\t\t\t\t\t\t\tscrollid = \"historynew-0\";\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tscrollid = \"history-0\";\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tscrollid = \"history-\" + list[i].id;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthat.historyList.unshift(list[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (scrollid != '') {\r\n\t\t\t\t\tsetTimeout(function() {\r\n\t\t\t\t\t\tthat.scrollid = scrollid;\r\n\t\t\t\t\t\tconsole.log(that.scrollid)\r\n\t\t\t\t\t\tthat.setpostion(scrollid)\r\n\t\t\t\t\t\t//\tthat.setpostion(\"history-0\")\r\n\t\t\t\t\t}, 200)\r\n\t\t\t\t}\r\n\r\n\t\t\t\tconsole.log(that.historyList)\r\n\r\n\t\t\t\tif (!that.isIos()) {\r\n\t\t\t\t\tthat.addListener(\"markdown01\")\r\n\t\t\t\t}\r\n\r\n\t\t\t})\r\n\r\n\t\t}\r\n\r\n\r\n\t\t//监听图片长按事件\r\n\t\taddListener(id) {\r\n\t\t\tlet _this = this;\r\n\t\t\t_this.$nextTick(() => {\r\n\t\t\t\tlet markDom = document.getElementById(id);\r\n\t\t\t\t// 添加事件监听器\r\n\t\t\t\tif (markDom) {\r\n\t\t\t\t\t// 添加事件监听器\r\n\t\t\t\t\tmarkDom.removeEventListener('mousedown', _this.start);\r\n\t\t\t\t\tmarkDom.removeEventListener('touchstart', _this.start);\r\n\r\n\t\t\t\t\t// 取消计时器\r\n\t\t\t\t\tmarkDom.removeEventListener('click', _this.cancel);\r\n\t\t\t\t\tmarkDom.removeEventListener('mouseout', _this.cancel);\r\n\t\t\t\t\tmarkDom.removeEventListener('touchend', _this.cancel);\r\n\r\n\r\n\t\t\t\t\tmarkDom.addEventListener('mousedown', _this.start);\r\n\t\t\t\t\tmarkDom.addEventListener('touchstart', _this.start);\r\n\t\t\t\t\tmarkDom.addEventListener('touchend', _this.cancel);\r\n\t\t\t\t\tmarkDom.addEventListener('touchmove', _this.move);\r\n\r\n\t\t\t\t\t// 取消计时器\r\n\t\t\t\t\tmarkDom.addEventListener('click', _this.cancel);\r\n\t\t\t\t\tmarkDom.addEventListener('mouseout', _this.cancel);\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t}\r\n\r\n\t\tstart(e) {\r\n\t\t\tlet _this = this;\r\n\t\t\t//不是图片不触发\r\n\t\t\tif (!e || !e.target || _this.showDownloadImgPopup == true || e.target.tagName.toLowerCase() != 'img') {\r\n\t\t\t\treturn\r\n\t\t\t}\r\n\t\t\t_this.moveY = 0;\r\n\t\t\t_this.startY = e.touches[0].clientY;\r\n\r\n\t\t\tif (_this.pressTimer === null) {\r\n\t\t\t\tconsole.log(1)\r\n\t\t\t\t_this.pressTimer = setTimeout(() => {\r\n\r\n\t\t\t\t\t// let posX = 0, posY = 0;\r\n\t\t\t\t\t// if (e.pageX || e.pageY) {\r\n\t\t\t\t\t// \tposX = e.pageX;\r\n\t\t\t\t\t// \tposY = e.pageY;\r\n\t\t\t\t\t// } else if (e.touches && e.touches[0] && (e.touches[0].pageX || e.touches[0].pageY)) {\r\n\t\t\t\t\t// \tposX = e.touches[0].pageX;\r\n\t\t\t\t\t// \tposY = e.touches[0].pageY;\r\n\t\t\t\t\t// }\r\n\r\n\t\t\t\t\t// 执行函数\r\n\t\t\t\t\tconsole.log(2)\r\n\t\t\t\t\tconsole.log(e, '执行复制图片')\r\n\t\t\t\t\t// document.getElementById('imagePopup').style.left = posX + 'px';\r\n\t\t\t\t\t// document.getElementById('imagePopup').style.top = posY + 'px';\r\n\t\t\t\t\tif ((_this.moveY < 50 && _this.moveY >= 0) || (_this.moveY > -50 && _this.moveY < 0)) {\r\n\t\t\t\t\t\t_this.downLoadImgUrl = e.target.src;\r\n\t\t\t\t\t\t_this.showDownloadImgPopup = true;\r\n\t\t\t\t\t\tnavigator.vibrate(100);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}, 1000);\r\n\t\t\t}\r\n\t\t}\r\n\t\tmove(e) {\r\n\t\t\tlet _this = this;\r\n\t\t\tif (e && e.touches) {\r\n\t\t\t\t_this.moveY = (e.touches[0].clientY - _this.startY) as any;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcancel(e) {\r\n\t\t\tlet _this = this;\r\n\t\t\tif (_this.pressTimer !== null) {\r\n\t\t\t\tclearTimeout(_this.pressTimer);\r\n\t\t\t\t_this.pressTimer = null;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tdownloadImg() {\r\n\t\t\tif (this.downLoadImgUrl) {\r\n\t\t\t\t//window.open(this.downLoadImgUrl);\r\n\t\t\t\tvar that = this;\r\n\t\t\t\t(window as any).gis.saveImageToAlbum(that.downLoadImgUrl, function(res) {\r\n\t\t\t\t\tif (res) {\r\n\t\t\t\t\t\tthat.$Message.success(that.L('保存成功'));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthat.$Message.warning(that.L('保存失败'));\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\t//数据还原\r\n\t\t\tthis.reset();\r\n\t\t}\r\n\t\treset() {\r\n\t\t\tthis.cancel();\r\n\t\t\tthis.showDownloadImgPopup = false;\r\n\t\t}\r\n\r\n\t\tsetpostion(scrollid) {\r\n\t\t\tthis.$nextTick(() => {\r\n\t\t\t\tconst el = document.getElementById(scrollid);\r\n\t\t\t\tif (el) {\r\n\t\t\t\t\t// el.scrollIntoView({ behavior: 'smooth' });\r\n\t\t\t\t\tel.scrollIntoView(false);\r\n\t\t\t\t\t//el.scrollIntoView({ behavior: 'smooth' });\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\tdianzan() {\r\n\t\t\tvar that = this;\r\n\t\t\tvar sid = (that.sessinfo as any).id;\r\n\t\t\tthis.$store.dispatch({\r\n\t\t\t\ttype: 'app/setSessionLike',\r\n\t\t\t\tdata: {\r\n\t\t\t\t\tid: sid\r\n\t\t\t\t}\r\n\t\t\t}).then((res) => {\r\n\t\t\t\tif (that.actiontype == 0) {\r\n\t\t\t\t\tthat.actiontype = 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthat.actiontype = 0;\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t})\r\n\t\t}\r\n\t\tdiancai() {\r\n\t\t\tvar that = this;\r\n\t\t\tvar sid = (that.sessinfo as any).id;\r\n\t\t\tthis.$store.dispatch({\r\n\t\t\t\ttype: 'app/setSessionStomp',\r\n\t\t\t\tdata: {\r\n\t\t\t\t\tid: sid\r\n\t\t\t\t}\r\n\t\t\t}).then((res) => {\r\n\t\t\t\tif (that.actiontype == 0) {\r\n\t\t\t\t\tthat.actiontype = 2;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthat.actiontype = 0;\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t}\r\n\t\tgoStop() {\r\n\t\t\tvar that = this;\r\n\t\t\tthis.answerstop = true;\r\n\t\t\tthis.disabled = false;\r\n\t\t\tthis.showstop = true;\r\n\t\t\tconsole.log('stop');\r\n\t\t}\r\n\r\n\t\tagainSend() {\r\n\t\t\tvar that = this;\r\n\t\t\tthat.historyList = [];\r\n\t\t\tthat.loadingType = 0;\r\n\t\t\tthat.scrollid = \"\";\r\n\t\t\tthat.pageindex = 1;\r\n\t\t\tthat.showpage = '1';\r\n\t\t\tthat.sessionid = \"\";\r\n\t\t\tthat.historyNew = [];\r\n\t\t\tthat.showHistory = true;\r\n\t\t\tthat.showTool = false;\r\n\t\t\tthat.showmenu = false;\r\n\t\t}\r\n\r\n\t\tonScroll(event) {\r\n\t\t\tthis.showmenu = false;\r\n\r\n\t\t}\r\n\r\n\t\t//获取到焦点 (解决键盘遮挡input问题)\r\n\t\tinputOnFocus() {\r\n\t\t\tsetTimeout(() => {\r\n\t\t\t\tdocument.body.scrollTop = document.body.scrollHeight\r\n\t\t\t}, 300)\r\n\t\t}\r\n\r\n\t\t//input失焦聚焦\r\n\t\thandleClick(e) {\r\n\t\t\tlet _this = this;\r\n\t\t\ttry {\r\n\t\t\t\te.preventDefault();\r\n\t\t\t\t_this.$refs.input.blur();\r\n\t\t\t\t_this.$refs.input.focus();\r\n\t\t\t\tthis.$nextTick(() => {\r\n\t\t\t\t\t_this.$refs.input.blur();\r\n\t\t\t\t\t_this.$refs.input.focus();\r\n\t\t\t\t});\r\n\t\t\t} catch (ex) {\r\n\t\t\t\t//TODO handle the exception\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tsessionSave() {\r\n\t\t\tvar that = this;\r\n\t\t\tif (that.prompt.length == 0) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tvar hour = (new Date()).getHours().toString();\r\n\t\t\tif (parseInt(hour) < 10) {\r\n\t\t\t\thour = \"0\" + hour;\r\n\t\t\t}\r\n\t\t\tvar mins = (new Date()).getMinutes().toString();\r\n\t\t\tif (parseInt(mins) < 10) {\r\n\t\t\t\tmins = \"0\" + mins;\r\n\t\t\t}\r\n\t\t\tvar time = hour + \":\" + mins;\r\n\t\t\tvar showdate = false;\r\n\t\t\tif (that.historyNew.length == 0) {\r\n\t\t\t\tshowdate = true\r\n\t\t\t}\r\n\t\t\tvar info = {\r\n\t\t\t\tid: 0,\r\n\t\t\t\tprompt: that.prompt,\r\n\t\t\t\tanswer: '',\r\n\t\t\t\tisload: true,\r\n\t\t\t\tshowdate: showdate,\r\n\t\t\t\tdatetime: time,\r\n\t\t\t\tvoice: that.keyboardvic\r\n\t\t\t}\r\n\r\n\t\t\tvar scrollid = \"prompt-\" + info.id;\r\n\t\t\t// setTimeout(function() {\r\n\t\t\t// \tthat.scrollid = scrollid;\r\n\t\t\t// \tthat.setpostion(\"history-0\")\r\n\t\t\t// }, 200)\r\n\r\n\t\t\tthat.historyNew.push(info);\r\n\t\t\tthat.prompt = '';\r\n\t\t\tthat.isSend = false;\r\n\t\t\tthat.disabled = true;\r\n\t\t\tthat.sessinfo = info;\r\n\t\t\tthat.actiontype = 0;\r\n\t\t\tvar scrollidhis = \"\";\r\n\t\t\tif (that.showpage == '2') {\r\n\t\t\t\tscrollidhis = \"historynew-0\";\r\n\t\t\t} else {\r\n\t\t\t\tscrollidhis = \"history-0\";\r\n\t\t\t}\r\n\t\t\tthat.setpostion(scrollidhis)\r\n\r\n\t\t\tvar para = {\r\n\t\t\t\tprompt: info.prompt,\r\n\t\t\t\tappId: that.appid,\r\n\t\t\t\tsessionId: that.sessionid,\r\n\t\t\t\tuserId: that.userid\r\n\t\t\t}\r\n\r\n\t\t\tvar basepro = Base64.encode(info.prompt.trim()).replaceAll(\"+\", \"%2B\");\r\n\t\t\t// setTimeout(function () {\r\n\t\t\t// \tthat.disabled = false\r\n\t\t\t// }, 2000)\r\n\t\t\t// return\r\n\r\n\t\t\t//var bas = Base64.encode(JSON.stringify(para)) ;\t\t\r\n\r\n\t\t\t// console.log(liburl + \"/api/SessionAI/SessionCompletion?prompt=\" + basepro + \"&appId=\" +\r\n\t\t\t// \tthat.appid + \"&sessionId=\" + that.sessionid + \"&userId=\" + that.userid)\r\n\t\t\t// return;\r\n\r\n\t\t\t// if (that.passuserid.indexOf(that.userid) == -1) {\r\n\t\t\t// \tsetTimeout(function() {\r\n\t\t\t// \t\tvar v = Math.round(Math.random() * 1000);\r\n\t\t\t// \t\tvar history = that.historyNew[that.historyNew.length - 1];\r\n\t\t\t// \t\t(history as any).isload = false;\r\n\t\t\t// \t\t(history as any).id = v;\r\n\t\t\t// \t\t(that.sessinfo as any).id = v;\r\n\t\t\t// \t\tthat.showTool = false;\r\n\t\t\t// \t\tthat.showstop = false;\r\n\t\t\t// \t\t(history as any).answer = \"当前CURI用户过多,请您稍后再试。\";\r\n\t\t\t// \t\tthat.ansterdata = \"当前CURI用户过多,请您稍后再试。\";\r\n\t\t\t// \t\tthat.disabled = false;\r\n\t\t\t// \t\treturn\r\n\t\t\t// \t}, 1000)\r\n\r\n\t\t\t// \treturn\r\n\t\t\t// }\r\n\t\t\t// console.log(\"pass\")\r\n\t\t\t// return\r\n\r\n\t\t\tvar source = new EventSource(liburl + \"/api/SessionAI/SessionCompletion?prompt=\" + basepro + \"&appId=\" +\r\n\t\t\t\tthat.appid + \"&sessionId=\" + that.sessionid + \"&userId=\" + that.userid);\r\n\t\t\t//var source = new EventSource(liburl + \"/api/SessionAI/SessionCompletion?params=\" + bas )\r\n\t\t\tsource.onopen = function(event) {\r\n\t\t\t\tconsole.log(\"建立连接...\" + \"
\")\r\n\t\t\t\tthat.answerstop = false;\r\n\r\n\t\t\t\t//$(\"#result\").prepend(\"建立鏈接...\" + \"
\")\r\n\t\t\t};\r\n\t\t\tsource.onmessage = function(event) {\r\n\t\t\t\t//console.log(event.data)\r\n\t\t\t\tif (event.data.indexOf('end-') > -1) {\r\n\t\t\t\t\tthat.disabled = false;\r\n\t\t\t\t\tconsole.log(event.data);\r\n\r\n\t\t\t\t\tvar history = that.historyNew[that.historyNew.length - 1];\r\n\t\t\t\t\tvar rid = event.data.replace('end-', '');\r\n\t\t\t\t\tvar ridarr = rid.split('-');\r\n\t\t\t\t\tif (ridarr.length > 0) {\r\n\t\t\t\t\t\trid = ridarr[0];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (ridarr.length > 1) {\r\n\t\t\t\t\t\tif (that.sessionCount >= 5) {\r\n\t\t\t\t\t\t\tthat.sessionCount = 0;\r\n\t\t\t\t\t\t\tthat.sessionid = \"\";\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tthat.sessionid = ridarr[1];\r\n\t\t\t\t\t\t\tthat.sessionCount++;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\t(history as any).isload = false;\r\n\t\t\t\t\t(history as any).id = rid;\r\n\t\t\t\t\t(that.sessinfo as any).id = rid;\r\n\t\t\t\t\tthat.showTool = true;\r\n\t\t\t\t\tthat.showstop = false;\r\n\r\n\t\t\t\t\tif (!that.isIos()) {\r\n\t\t\t\t\t\tthat.addListener(\"markdown02\")\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t//回答完成页面滑动到底部\r\n\t\t\t\t\tthat.$nextTick(() => {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tlet dom1 = document.getElementsByClassName(\"weui-pull-present-box\")[0];\r\n\t\t\t\t\t\t\tif (dom1 && dom1.scrollHeight != dom1.clientHeight) {\r\n\t\t\t\t\t\t\t\tdom1.scrollTop = dom1.scrollHeight - dom1.clientHeight;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} catch (e) {\r\n\t\t\t\t\t\t\t//TODO handle the exception\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t\t//that.$Message.success(event.data)\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (!that.answerstop) {\r\n\t\t\t\t\t\tvar history = that.historyNew[that.historyNew.length - 1];\r\n\r\n\r\n\t\t\t\t\t\tvar answer = (history as any).answer;\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tvar rsp = JSON.parse(event.data).response;\r\n\t\t\t\t\t\t\tif (rsp != '') {\r\n\t\t\t\t\t\t\t\t(history as any).isload = false;\r\n\t\t\t\t\t\t\t\t(history as any).answer = rsp;\r\n\t\t\t\t\t\t\t\tthat.ansterdata = rsp;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} catch (e) {\r\n\t\t\t\t\t\t\t//TODO handle the exception\r\n\t\t\t\t\t\t\tvar contans = he.decode(event.data);\r\n\t\t\t\t\t\t\tif (contans != '') {\r\n\t\t\t\t\t\t\t\t(history as any).isload = false;\r\n\t\t\t\t\t\t\t\t(history as any).answer = he.decode(event.data);\r\n\t\t\t\t\t\t\t\tthat.ansterdata = event.data;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t//(history as any).answer+=event.data\r\n\r\n\r\n\t\t\t\t\t// var response=JSON.parse(event.data).response.replace(answer,'');\r\n\t\t\t\t\t// var response=event.data.replace(answer,'');\r\n\t\t\t\t\t// var i=0;\r\n\t\t\t\t\t// var showChar = function() {\r\n\t\t\t\t\t// if (i < response.length) {\r\n\t\t\t\t\t// (that.historyNew[that.historyNew.length - 1] as any).answer += response[i++]; // 添加字符并递增索引\r\n\t\t\t\t\t// setTimeout(showChar, 100); // 每100毫秒显示下一个字符\r\n\t\t\t\t\t// }\r\n\t\t\t\t\t// };\r\n\r\n\r\n\r\n\r\n\t\t\t\t\t//(history as any).answer = JSON.parse(event.data).response;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//$(\"#result\").prepend(event.data + \"
\")\r\n\t\t\t};\r\n\t\t\tsource.onerror = function(event) {\r\n\t\t\t\tconsole.log(\"关闭连接...\" + \"
\")\r\n\t\t\t\tthat.answerstop = true;\r\n\t\t\t\tvar history = that.historyNew[that.historyNew.length - 1];\r\n\t\t\t\t(history as any).isload = false;\r\n\t\t\t\tif ((history as any).answer == '') {\r\n\t\t\t\t\t(history as any).answer = that.L(\"请稍后再试\");\r\n\t\t\t\t\t(history as any).id = -1;\r\n\t\t\t\t}\r\n\t\t\t\tthat.showstop = false;\r\n\t\t\t\tthat.disabled = false;\r\n\t\t\t\t//$(\"#result\").prepend(\"關閉鏈接...\" + \"
\")\r\n\t\t\t\tsource.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\tsetImgAuth() {\r\n\t\t\tvar that = this;\r\n\t\t\tvar u = navigator.userAgent.toLowerCase();\r\n\r\n\r\n\t\t\t//统一使用组件方式查看图片可以缩放\r\n\t\t\tif (1 == 1 || u.indexOf('iphone os 13_4') > -1 || u.indexOf('iphone os 14') > -1 || u.indexOf(\r\n\t\t\t\t\t'ipad') > -1 || u.indexOf('ipod') > -1 || that.screenWidth >= 768) {\r\n\t\t\t\tlet imgs = document.getElementsByClassName('newscot')[0].getElementsByTagName('img');\r\n\t\t\t\tfor (var i = 0; i < imgs.length; i++) {\r\n\t\t\t\t\tvar img = imgs[i] as any;\r\n\t\t\t\t\timg.onclick = function(e) {\r\n\t\t\t\t\t\t// that.currentImgUrl = e.currentTarget.src;\r\n\t\t\t\t\t\t// that.currentImgs = [];\r\n\t\t\t\t\t\t// that.currentImgs.push(that.currentImgUrl);\r\n\t\t\t\t\t\t// that.imgBox = true;\r\n\t\t\t\t\t\t// that.$forceUpdate();\r\n\t\t\t\t\t\t//(window as any).gis.previewImage([e.currentTarget.src]);\r\n\t\t\t\t\t\tthat.currentImgUrl = e.currentTarget.src;\r\n\t\t\t\t\t\tthat.currentImgs = [];\r\n\t\t\t\t\t\tthat.currentImgs.push(that.currentImgUrl);\r\n\t\t\t\t\t\t//that.imgBox = true;\r\n\t\t\t\t\t\tconst ViewerDom = document.getElementById('viewer');\r\n\t\t\t\t\t\t((ViewerDom as any).viewer as any).options.title = false;\r\n\t\t\t\t\t\t((ViewerDom as any).viewer as any).options.navbar = false;\r\n\t\t\t\t\t\t((ViewerDom as any).viewer as any).options.toolbar = false;\r\n\t\t\t\t\t\t((ViewerDom as any).viewer as any).images = that.currentImgs;\r\n\t\t\t\t\t\tsetTimeout(function() {\r\n\t\t\t\t\t\t\tvar contain = document.getElementsByClassName('descimgBox')[0]\r\n\t\t\t\t\t\t\t\t.getElementsByTagName('img');;\r\n\t\t\t\t\t\t\tif (contain != null && contain.length > 0) {\r\n\t\t\t\t\t\t\t\tcontain[0].click();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}, 300)\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// img.ontouchend = function(e) {\r\n\t\t\t\t\t// \t(window as any).gis.previewImage([e.currentTarget.src]);\r\n\t\t\t\t\t// }\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tlet imgs = document.getElementsByClassName('newscot')[0].getElementsByTagName('img');\r\n\r\n\t\t\t\tfor (var i = 0; i < imgs.length; i++) {\r\n\t\t\t\t\tvar img = imgs[i] as any;\r\n\t\t\t\t\timg.onclick = function(e) {\r\n\t\t\t\t\t\tvar img = imgs[i] as any;\r\n\t\t\t\t\t\timg.onclick = function(e) {\r\n\t\t\t\t\t\t\t(window as any).gis.previewImage([e.currentTarget.src]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\r\n\t\tgetAIListAll() {\r\n\t\t\tvar that = this;\r\n\t\t\tvar request = new Object() as any;\r\n\t\t\trequest.maxResultCount = 100;\r\n\t\t\trequest.skipCount = 1;\r\n\r\n\t\t\tthis.$store.dispatch({\r\n\t\t\t\ttype: 'app/getAIListAll',\r\n\t\t\t\tdata: request\r\n\t\t\t}).then((res) => {\r\n\r\n\t\t\t\tvar result = res.items;\r\n\t\t\t\tthat.appList = result;\r\n\t\t\t\tif (result.length > 0) {\r\n\t\t\t\t\tthat.appid = result[0].id;\r\n\t\t\t\t\tthat.tabTitle = \"chat\";\r\n\t\t\t\t\tconsole.log(that.appid);\r\n\t\t\t\t\tthat.getSessionNew();\r\n\t\t\t\t}\r\n\r\n\t\t\t})\r\n\t\t}\r\n\t\tgetLoginUser() {\r\n\t\t\tvar that = this;\r\n\t\t\tthis.$store.dispatch({\r\n\t\t\t\ttype: 'app/getLoginUser',\r\n\t\t\t\tdata: {}\r\n\t\t\t}).then(res => {\r\n\t\t\t\tthat.userid = res.id;\r\n\t\t\t\tthat.userInfo = res;\r\n\t\t\t})\r\n\t\t}\r\n\t\tformatDateStr(dateString) {\r\n\t\t\tvar that = this;\r\n\t\t\tif (dateString != null && dateString.length > 0) {\r\n\t\t\t\tdateString = dateString.substr(0, 19);\r\n\t\t\t\tdateString = dateString.replace(/-/g, \"/\").replace(/T/g, \" \");\r\n\r\n\t\t\t\tvar datetime = new Date(dateString);\r\n\t\t\t\tvar dateTimeStamp = datetime.getTime();\r\n\r\n\t\t\t\tvar minute = 1000 * 60; //把分,时,天,周,半个月,一个月用毫秒表示\r\n\t\t\t\tvar hour = minute * 60;\r\n\t\t\t\tvar day = hour * 24;\r\n\t\t\t\tvar week = day * 7;\r\n\t\t\t\tvar halfamonth = day * 15;\r\n\t\t\t\tvar month = day * 30;\r\n\t\t\t\tvar now = new Date().getTime(); //获取当前时间毫秒\r\n\t\t\t\tvar diffValue = now - dateTimeStamp; //时间差\r\n\r\n\t\t\t\tif (diffValue < 0) {\r\n\t\t\t\t\tconsole.log(\"diffValue<0\", datetime, dateTimeStamp, now, diffValue);\r\n\t\t\t\t\treturn that.L('刚刚');\r\n\t\t\t\t}\r\n\t\t\t\tvar minC = diffValue / minute; //计算时间差的分,时,天,周,月\r\n\t\t\t\tvar hourC = diffValue / hour;\r\n\t\t\t\tvar dayC = diffValue / day;\r\n\t\t\t\tvar weekC = diffValue / week;\r\n\t\t\t\tvar monthC = diffValue / month;\r\n\t\t\t\tvar result = \"\";\r\n\t\t\t\tif (datetime.getFullYear() == new Date().getFullYear() && monthC >= 1 && monthC <= 12) {\r\n\t\t\t\t\t//result = \" \" + parseInt(monthC) + \"月前\"\r\n\t\t\t\t\tresult = this.formatDate(datetime, 'MM-dd hh:mm')\r\n\t\t\t\t} else if (weekC >= 1 && weekC <= 4) {\r\n\t\t\t\t\t//result = \" \" + parseInt(weekC) + \"周前\"\r\n\t\t\t\t\tresult = this.formatDate(datetime, 'MM-dd hh:mm')\r\n\t\t\t\t} else if (dayC >= 1 && dayC <= 7) {\r\n\t\t\t\t\tif (datetime.getDate() == new Date().getDate() - 1) {\r\n\t\t\t\t\t\tresult = that.L('昨天') + ' ' + this.formatDate(datetime, 'hh:mm')\r\n\t\t\t\t\t} else if (datetime.getDate() == new Date().getDate() - 2) {\r\n\t\t\t\t\t\t//result = \"前天 \" + this.formatDate(datetime, 'hh:mm')\r\n\t\t\t\t\t\tresult = this.formatDate(datetime, 'MM-dd hh:mm')\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t//result = \" \" + parseInt(dayC) + \"天前\"\r\n\t\t\t\t\t\tresult = this.formatDate(datetime, 'MM-dd hh:mm')\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else if (hourC >= 1 && hourC <= 24) {\r\n\t\t\t\t\tif (datetime.getDate() == new Date().getDate()) {\r\n\t\t\t\t\t\tresult = that.L('今天') + ' ' + this.formatDate(datetime, 'hh:mm')\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tresult = that.L('昨天') + ' ' + this.formatDate(datetime, 'hh:mm')\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//result = \" \" + parseInt(hourC) + \"小时前\"\r\n\t\t\t\t} else if (minC >= 1 && minC <= 59) {\r\n\t\t\t\t\tresult = \" \" + minC.toFixed(0) + that.L('分钟前')\r\n\t\t\t\t} else if (diffValue >= 0 && diffValue <= minute) {\r\n\t\t\t\t\tresult = that.L('刚刚');\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar datetime = new Date();\r\n\t\t\t\t\tdatetime.setTime(dateTimeStamp);\r\n\t\t\t\t\tvar Nyear = datetime.getFullYear(); {}\r\n\t\t\t\t\tvar Nmonth = datetime.getMonth() + 1 < 10 ? \"0\" + (datetime.getMonth() + 1) : datetime.getMonth() +\r\n\t\t\t\t\t\t1;\r\n\t\t\t\t\tvar Ndate = datetime.getDate() < 10 ? \"0\" + datetime.getDate() : datetime.getDate();\r\n\t\t\t\t\tvar Nhour = datetime.getHours() < 10 ? \"0\" + datetime.getHours() : datetime.getHours();\r\n\t\t\t\t\tvar Nminute = datetime.getMinutes() < 10 ? \"0\" + datetime.getMinutes() : datetime.getMinutes();\r\n\t\t\t\t\tvar Nsecond = datetime.getSeconds() < 10 ? \"0\" + datetime.getSeconds() : datetime.getSeconds();\r\n\t\t\t\t\tresult = Nyear + \"-\" + Nmonth + \"-\" + Ndate\r\n\t\t\t\t}\r\n\t\t\t\treturn result;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\tformatDate(date, fmt) {\r\n\t\t\tif (date != null) {\r\n\t\t\t\tif (/(y+)/.test(fmt)) {\r\n\t\t\t\t\tfmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));\r\n\t\t\t\t}\r\n\t\t\t\t// // #ifdef APP-PLUS \r\n\t\t\t\t// date.setHours(date.getHours()-8);\r\n\t\t\t\t// // #endif \r\n\t\t\t\tlet o = {\r\n\t\t\t\t\t'M+': date.getMonth() + 1,\r\n\t\t\t\t\t'd+': date.getDate(),\r\n\t\t\t\t\t'h+': date.getHours(),\r\n\t\t\t\t\t'm+': date.getMinutes(),\r\n\t\t\t\t\t's+': date.getSeconds()\r\n\t\t\t\t};\r\n\t\t\t\tfor (let k in o) {\r\n\t\t\t\t\tif (new RegExp(`(${k})`).test(fmt)) {\r\n\t\t\t\t\t\tlet str = o[k] + '';\r\n\t\t\t\t\t\tfmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? str : this.padLeftZero(str));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn fmt;\r\n\t\t\t} else {\r\n\t\t\t\treturn '';\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tpadLeftZero(str) {\r\n\t\t\treturn ('00' + str).substr(str.length);\r\n\t\t}\r\n\t\tgetSessionInfo() {\r\n\t\t\tvar that = this;\r\n\t\t\tvar that = this;\r\n\t\t\tvar request = new Object() as any;\r\n\t\t\trequest.maxResultCount = this.pagesize;\r\n\t\t\trequest.skipCount = (this.pageindex - 1) * this.pagesize;\r\n\t\t\trequest.id = that.sid\r\n\t\t\trequest.onlyMy = false;\r\n\t\t\tthis.$store.dispatch({\r\n\t\t\t\ttype: 'app/getSessionHistoryList',\r\n\t\t\t\tdata: request\r\n\t\t\t}).then((res) => {\r\n\t\t\t\tvar list = res.items;\r\n\t\t\t\tthat.showpage = '1'\r\n\t\t\t\tif (list.length > 0) {\r\n\t\t\t\t\tthat.historyList.push(list[0]);\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t}\r\n\t\tgetSessionNew() {\r\n\t\t\tvar that = this;\r\n\t\t\tthis.$store.dispatch({\r\n\t\t\t\ttype: 'app/getSessionHistoryNewByUser',\r\n\t\t\t\tid: that.appid\r\n\t\t\t}).then((res) => {\r\n\t\t\t\tif (res && res.prompt) {\r\n\t\t\t\t\tthat.lastTitle = res.prompt;\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t}\r\n\r\n\r\n\t\t@Watch('ansterdata')\r\n\t\tansterdataChange(newItems) {\r\n\t\t\tvar that = this;\r\n\t\t\tvar scrollidhis = \"\";\r\n\t\t\tif (that.showpage == '2') {\r\n\t\t\t\tscrollidhis = \"historynew-0\";\r\n\t\t\t} else {\r\n\t\t\t\tscrollidhis = \"history-0\";\r\n\t\t\t}\r\n\t\t\tthat.setpostion(scrollidhis)\r\n\t\t\t//that.setpostion(\"history-0\")\r\n\r\n\t\t\t// 监听数据变化,当数据增加时自动滚动\r\n\t\t\t// this.$nextTick(() => {\t\t \r\n\t\t\t// let chat = this.$refs.history0;\r\n\t\t\t// chat.scrollTop = chat.scrollHeight\r\n\t\t\t// });\r\n\t\t}\r\n\r\n\r\n\r\n\r\n\r\n\t\t@Watch('$route')\r\n\t\troutechange(to: any, from: any) {\r\n\t\t\tif (to.query.sid != from.query.sid) {\r\n\t\t\t\tlocation.reload();\r\n\t\t\t}\r\n\t\t\tif (to.query.t != from.query.t) {\r\n\t\t\t\tthis.pageLoad();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\thandleResize() {\r\n\t\t\tvar elementHeight = window.innerHeight;\r\n\t\t\tthis.scrollHeight = elementHeight - 130;\r\n\t\t\t//console.log('元素高度:', window.innerHeight);\r\n\t\t\t//this.setpostion(\"history-0\")\r\n\t\t}\r\n\r\n\t\tasync pageLoad() {\r\n\t\t\tconsole.log(\"pageLoad\")\r\n\t\t\tvar that = this;\r\n\t\t\tthat.title = that.L(\"开启了新话题,下拉回顾\")\r\n\t\t\tthat.audioTitle = that.L(\"按住说话\");\r\n\t\t\tthat.sendTitle = that.L(\"松开发送,上滑取消\");\r\n\t\t\tthat.pcAudioTitle = that.L(\"点击开始录音\");\r\n\t\t\tthat.pcSendTitle = that.L(\"点击停止录音\");\r\n\t\t\tthat.screenWidth = document.body.clientWidth\r\n\t\t\twindow.document.title = that.L(\"AI对话\");\r\n\t\t\t//window.document.title=\"
AI对话
\";\r\n\t\t\tthat.isios = that.isIos();\r\n\r\n\t\t\tthat.historyList = [];\r\n\t\t\tthat.loadingType = 0;\r\n\t\t\tthat.scrollid = \"\";\r\n\t\t\tthat.pageindex = 1;\r\n\t\t\tthat.sessionid = \"\";\r\n\t\t\tthat.historyNew = [];\r\n\t\t\tthat.lastTitle = \"\";\r\n\t\t\tthat.showpage = '2';\r\n\t\t\tthat.downLoadImgUrl = \"\";\r\n\t\t\tthat.showDownloadImgPopup = false;\r\n\t\t\tthat.showTool = false;\r\n\r\n\r\n\t\t\twindow.addEventListener('resize', this.handleResize);\r\n\r\n\t\t\tvar data = moment().format('M月DD日');\r\n\t\t\tconst hour = (new Date()).getHours();\r\n\t\t\tif (hour >= 0 && hour < 12) {\r\n\t\t\t\tthat.noonTip = that.L('上午好')\r\n\t\t\t} else if (hour >= 12 && hour < 18) {\r\n\t\t\t\tthat.noonTip = that.L('下午好')\r\n\t\t\t} else {\r\n\t\t\t\tthat.noonTip = that.L('晚上好')\r\n\t\t\t}\r\n\r\n\t\t\tvar time = '周' + '日一二三四五六'.charAt(new Date().getDay())\r\n\r\n\t\t\tconsole.log(\"lan:\" + abp.localization.currentCulture.name)\r\n\t\t\tthat.lang = abp.localization.currentCulture.name\r\n\r\n\t\t\tif (that.lang == \"en\") {\r\n\t\t\t\tvar month = (new Date()).getMonth() + 1;\r\n\t\t\t\tthat.dateToday = that.L(month + \"月\") + (new Date()).getDate() + 'th';\r\n\t\t\t} else {\r\n\t\t\t\tthat.dateToday = moment().format('M月DD日');\r\n\t\t\t}\r\n\t\t\tthat.weekToday = that.L(time);\r\n\t\t\tconsole.log(data + \",\" + that.weekToday)\r\n\r\n\r\n\t\t\t//localStorage.setItem(\"AcTitle\",\"AI对话\")\r\n\r\n\t\t\tvar u = navigator.userAgent.toLowerCase();\r\n\t\t\t//console.log(navigator.userAgent)\r\n\t\t\tif (u.indexOf('iphone') > -1 || u.indexOf('ipad') > -1 || u.indexOf('ipod') > -1 || u.indexOf('android ') >\r\n\t\t\t\t-1) {\r\n\t\t\t\tconsole.log('当前在手机端');\r\n\t\t\t\tthat.ispc = false\r\n\t\t\t} else {\r\n\t\t\t\tconsole.log('当前在PC端');\r\n\t\t\t\tthat.ispc = true;\r\n\t\t\t\tthat.title = that.L(\"点击回顾历史\");\r\n\t\t\t}\r\n\r\n\t\t\tthat.sessionCount = 0;\r\n\t\t\tthat.sessionid = \"\";\r\n\t\t\tthat.historyNew = [];\r\n\r\n\r\n\r\n\t\t\tconsole.log(Util.abp.session.userId)\r\n\t\t\tif (Util.abp.session.userId) {\r\n\t\t\t\tthis.userid = Util.abp.session.userId;\r\n\t\t\t\tthis.getLoginUser();\r\n\t\t\t\tthis.getTipsList();\r\n\t\t\t}\r\n\t\t\tif (!Util.abp.session.userId) {\r\n\t\t\t\tvar domain = this.$route.query.domain as any;\r\n\r\n\t\t\t\tif (domain != undefined && domain != null && domain != '') {\r\n\t\t\t\t\tawait this.$store.dispatch({\r\n\t\t\t\t\t\ttype: 'app/externalAuthenticate',\r\n\t\t\t\t\t\tdata: {\r\n\t\t\t\t\t\t\t\"AuthProvider\": \"IDSDOMAIN\",\r\n\t\t\t\t\t\t\t\"ProviderAccessCode\": domain,\r\n\t\t\t\t\t\t\tProviderKey: \"\",\r\n\t\t\t\t\t\t\tProperty: \"\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t})\r\n\t\t\t\t\tlocation.reload();\r\n\t\t\t\t}\r\n\t\t\t\tvar userId = this.$route.query.userid as any;\r\n\t\t\t\tif (userId != undefined && userId != null && userId != '') {\r\n\t\t\t\t\t//if (that.passuserid.indexOf(userId * 1) > -1) {\r\n\t\t\t\t\tif (userId != Util.abp.session.userId) {\r\n\t\t\t\t\t\tawait this.$store.dispatch({\r\n\t\t\t\t\t\t\ttype: 'app/externalAuthenticate',\r\n\t\t\t\t\t\t\tdata: {\r\n\t\t\t\t\t\t\t\t\"AuthProvider\": \"IDSID\",\r\n\t\t\t\t\t\t\t\t\"ProviderAccessCode\": userId,\r\n\t\t\t\t\t\t\t\tProviderKey: userId,\r\n\t\t\t\t\t\t\t\tProperty: \"\"\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\tconsole.log(Util.abp.session.userId)\r\n\t\t\t\t\t\tlocation.reload();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//}\r\n\r\n\t\t\t\t}\r\n\t\t\t\t//var code = this.getQueryVariable(\"id_token\");\r\n\t\t\t\tvar code = this.$route.query.id_token as any;\r\n\t\t\t\tif (code != undefined && code != null && code != '') {\r\n\t\t\t\t\tvar res = await this.$store.dispatch({\r\n\t\t\t\t\t\ttype: 'app/applicationAuthenticate',\r\n\t\t\t\t\t\tdata: {\r\n\t\t\t\t\t\t\tappId: 'q0ropkfajb9zk78d',\r\n\t\t\t\t\t\t\tappSecret: 'tao4dd03fwq7h8whdpoarfw1knpw44gu'\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t})\r\n\t\t\t\t\tif (res && res.accessToken) {\r\n\t\t\t\t\t\tvar res2 = await this.$store.dispatch({\r\n\t\t\t\t\t\t\ttype: 'app/getUserInfo',\r\n\t\t\t\t\t\t\tdata: code\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\tif (res2 && res2.mobile) {\r\n\t\t\t\t\t\t\tvar res3 = await this.$store.dispatch({\r\n\t\t\t\t\t\t\t\ttype: 'app/getUserByUserName',\r\n\t\t\t\t\t\t\t\tdata: res2.mobile\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tawait this.$store.dispatch({\r\n\t\t\t\t\t\t\t\ttype: 'app/externalAuthenticate',\r\n\t\t\t\t\t\t\t\tdata: {\r\n\t\t\t\t\t\t\t\t\t\"AuthProvider\": \"IDSID\",\r\n\t\t\t\t\t\t\t\t\t\"ProviderAccessCode\": res3.id,\r\n\t\t\t\t\t\t\t\t\tProviderKey: res3.id,\r\n\t\t\t\t\t\t\t\t\tProperty: \"\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t//that.pageLoad();\r\n\t\t\t\t\t\t\tlocation.reload();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t// var res = await this.$store.dispatch({\r\n\t\t\t\t\t// \ttype: 'app/externalAuthenticate',\r\n\t\t\t\t\t// \tdata: {\r\n\t\t\t\t\t// \t\t\"AuthProvider\": \"IDS\",\r\n\t\t\t\t\t// \t\t\"ProviderAccessCode\": code,\r\n\t\t\t\t\t// \t\tProviderKey: \"\",\r\n\t\t\t\t\t// \t\tProperty: \"\"\r\n\t\t\t\t\t// \t}\r\n\t\t\t\t\t// })\r\n\t\t\t\t\t// location.reload();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tvar userId = this.$route.query.userid as any;\r\n\t\t\t\tif (userId != undefined && userId != null && userId != '') {\r\n\t\t\t\t\t//if (that.passuserid.indexOf(userId * 1) > -1) {\r\n\t\t\t\t\tif (userId != Util.abp.session.userId) {\r\n\t\t\t\t\t\tawait this.$store.dispatch({\r\n\t\t\t\t\t\t\ttype: 'app/externalAuthenticate',\r\n\t\t\t\t\t\t\tdata: {\r\n\t\t\t\t\t\t\t\t\"AuthProvider\": \"IDSID\",\r\n\t\t\t\t\t\t\t\t\"ProviderAccessCode\": userId,\r\n\t\t\t\t\t\t\t\tProviderKey: userId,\r\n\t\t\t\t\t\t\t\tProperty: \"\"\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\tlocation.reload();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//}\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\r\n\r\n\t\t\tif (this.$route.query.sid && (this.$route.query.sid as any) > 0) {\r\n\t\t\t\tthis.sid = this.$route.query.sid as any;\r\n\r\n\t\t\t\tif (Util.abp.session.userId) {\r\n\t\t\t\t\tthis.userid = Util.abp.session.userId;\r\n\t\t\t\t\tthis.getLoginUser();\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\t\tthis.getSessionInfo();\r\n\t\t\t}\r\n\t\t\tif (this.userid > 0) {\r\n\t\t\t\tthis.getAIListAll();\r\n\t\t\t\tif (Util.abp.auth.grantedPermissions.AppAIUser != undefined && Util.abp.auth.grantedPermissions\r\n\t\t\t\t\t.AppAIUser\r\n\t\t\t\t\t.toLowerCase() == 'true') {\r\n\t\t\t\t\tthis.showai = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.showai = false;\r\n\t\t\t\t}\r\n\t\t\t\tif (Util.abp.auth.grantedPermissions.AIManger != undefined && Util.abp.auth.grantedPermissions.AIManger\r\n\t\t\t\t\t.toLowerCase() == 'true') {\r\n\t\t\t\t\tthis.showzhushou = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.showzhushou = false;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tthis.isRefresh = false;\r\n\t\t\t\tthat.title = \"\"\r\n\t\t\t}\r\n\r\n\r\n\r\n\t\t}\r\n\r\n\t\tasync created() {\r\n\t\t\tvar that = this;\r\n\t\t\tthat.pageLoad();\r\n\t\t}\r\n\t\t// unmounted() {\r\n\t\t// \twindow.removeEventListener(\"resize\", () => {\r\n\t\t// \t\tdocument.activeElement.scrollIntoView(true);\r\n\t\t// \t});\r\n\t\t// }\r\n\t\tmounted() {\r\n\t\t\tvar that = this;\r\n\t\t\t// this.$nextTick(() => {\r\n\t\t\t// \twindow.addEventListener(\"resize\", () => {\r\n\t\t\t// \t\tdocument.activeElement.scrollIntoView(true);\r\n\t\t\t// \t});\r\n\t\t\t// })\r\n\r\n\r\n\t\t\tthis.$nextTick(() => {\r\n\t\t\t\tthis.$refs.gethistoryheight\r\n\t\t\t})\r\n\r\n\t\t\tthis.$nextTick(() => {\r\n\t\t\t\tlet elementHeight = (this.$refs.aibox as any).offsetHeight;\r\n\t\t\t\tthat.scrollHeight = elementHeight - 130;\r\n\t\t\t\tconsole.log('元素高度:', elementHeight);\r\n\t\t\t});\r\n\r\n\r\n\t\t\t//循环滚动定时器\r\n\t\t\tthis.$nextTick(() => {\r\n\t\t\t\tclearInterval(that.transTimer);\r\n\t\t\t\tthat.transTimer = Number(setInterval(() => {\r\n\t\t\t\t\tif (that.currentIndex + 1 < that.tagList.length) {\r\n\t\t\t\t\t\tthat.transition = 300\r\n\t\t\t\t\t\tthat.currentIndex = that.currentIndex + 1\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthat.transition = 0\r\n\t\t\t\t\t\tthat.currentIndex = 0\r\n\t\t\t\t\t}\r\n\t\t\t\t}, 3000));\r\n\t\t\t})\r\n\t\t}\r\n\r\n\t\t$destroy() {\r\n\t\t\tclearInterval(this.transTimer);\r\n\t\t}\r\n\r\n\r\n\t};\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./sessionai2.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./sessionai2.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./sessionai2.vue?vue&type=template&id=28168fce&scoped=true\"\nimport script from \"./sessionai2.vue?vue&type=script&lang=ts\"\nexport * from \"./sessionai2.vue?vue&type=script&lang=ts\"\nimport style0 from \"./sessionai2.vue?vue&type=style&index=0&id=28168fce&prod&lang=less&scoped=scoped\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"28168fce\",\n null\n \n)\n\nexport default component.exports","module.exports = __webpack_public_path__ + \"img/downloadimage.69dc3386.png\";","module.exports = __webpack_public_path__ + \"img/kefu.6bbc6e2e.png\";","module.exports = __webpack_public_path__ + \"img/canceldownload.32bf6a33.png\";"],"sourceRoot":""}