{"version":3,"sources":["webpack:///./src/views/sessionai.vue?9ea3","webpack:///./src/views/sessionai.vue","webpack:///./src/views/sessionai.vue?873d","webpack:///./src/views/sessionai.vue?248d","webpack:///./src/views/sessionai.vue?727f"],"names":["render","_vm","this","_c","_self","_setupProxy","showai","ref","staticClass","staticStyle","historyNew","length","_v","_s","noonTip","L","dateToday","weekToday","style","height","width","on","onRefresh","onRefreshUp","showpage","historyList","$event","stopPropagation","showmenu","_l","history","index","key","showdate","datetime","_e","attrs","id","prompt","isload","require","answer","replaceAll","showHistory","voice","userid","showTool","showstop","sessinfo","againSend","shareToWeixin","actiontype","dianzan","diancai","lastTitle","imgurl","handleImg","keyboardvic","disabled","inputChange","sessionSave","model","value","callback","$$v","expression","ispc","sendTitle","audioTitle","pcSendTitle","pcAudioTitle","random","closeAudio","sendAudio","voiceChange","cancelAudio","staticRenderFns","SessionAI","_AbpBase","_this","_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","title","isios","_inherits","_createClass","_closeAudio","_asyncToGenerator","regeneratorRuntime","mark","_callee","data","touchEndTrans","that","form","wrap","_context","prev","next","size","FormData","append","$store","dispatch","type","then","res","success","Math","floor","$Message","warning","sent","stop","_x","_x2","apply","arguments","_sendAudio","_callee2","content","_context2","_x3","done","console","log","setTimeout","window","webkit","messageHandlers","vibrate","postMessage","navigator","e","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","request","maxResultCount","skipCount","appId","list","items","i","findindex","findIndex","formatDateStr","creationTime","mins","minutesDifference","unshift","setpostion","$nextTick","el","document","getElementById","scrollIntoView","event","hour","getHours","toString","parseInt","getMinutes","time","info","push","scrollidhis","basepro","Base64","encode","trim","source","EventSource","liburl","onopen","onmessage","rid","replace","ridarr","split","dom1","getElementsByClassName","clientHeight","scrollTop","rsp","JSON","parse","response","he","decode","onerror","close","str","s","result","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","concat","padLeftZero","onlyMy","newItems","to","from","query","reload","t","pageLoad","elementHeight","innerHeight","_pageLoad","_callee3","domain","userId","_context3","body","clientWidth","isIos","addEventListener","handleResize","moment","format","charAt","getDay","abp","localization","currentCulture","name","Util","session","getLoginUser","getSessionNew","$route","undefined","ProviderKey","Property","getSessionInfo","getAIListAll","auth","grantedPermissions","AppAIUser","_created","_callee4","_context4","created","_this2","$refs","gethistoryheight","aibox","offsetHeight","AbpBase","__decorate","Watch","Component","components","VueMarkdown","DropDownRefresh","PullRefresh","AudioEnter","component"],"mappings":"kHAAA,W,yCCAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAQJ,EAAIK,OAAQH,EAAG,MAAM,CAACI,IAAI,QAAQC,YAAY,iBAAiBC,YAAY,CAAC,WAAa,UAAU,OAAS,QAAQ,SAAW,aAAa,CAACN,EAAG,MAAM,CAACK,YAAY,OAAOC,YAAY,CAAC,eAAe,SAAS,CAACN,EAAG,MAAM,CAACM,YAAY,CAAC,MAAQ,OAAO,OAAS,UAAUN,EAAG,MAAM,CAACK,YAAY,UAAUC,YAAY,CAAC,QAAU,SAAS,CAACN,EAAG,MAAM,CAACK,YAAY,6BAA6B,CAAyB,GAAvBP,EAAIS,WAAWC,OAAWR,EAAG,MAAM,CAACK,YAAY,uBAAuBC,YAAY,CAAC,MAAQ,OAAO,YAAY,OAAO,eA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AU,WACdwH,EAAKC,MAAMC,oBAGZ3U,KAAKiN,WAAU,WACd,QAAwB4G,GAApBY,EAAKC,MAAME,MAAoB,CAClC,IAAIxC,EAAiBqC,EAAKC,MAAME,MAAcC,aAC9C9M,EAAK1B,aAAe+L,EAAgB,IACpCtI,QAAQC,IAAI,QAASqI,WA19BK,CAAS0C,QA+yBtCC,EAAA,CADCC,eAAM,c,8HAwBPD,EAAA,CADCC,eAAM,U,gIAr0BarQ,EAASoQ,EAAA,CAR7BE,eAAU,CACVC,WAAY,CACXC,gBACAC,uBACAC,mBACAC,sBAGmB3Q,WClC6W,I,wBCQ/X4Q,EAAY,eACd,EACAzV,EACA4E,GACA,EACA,KACA,WACA,MAIa,aAAA6Q,E","file":"js/chunk-ed590864.c84a7735.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!./sessionai.vue?vue&type=style&index=0&id=70343a95&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\",staticStyle:{\"background\":\"#3366FF\",\"height\":\"100vh\",\"position\":\"relative\"}},[_c('div',{staticClass:\"main\",staticStyle:{\"touch-action\":\"none\"}},[_c('div',{staticStyle:{\"width\":\"100%\",\"height\":\"50px\"}}),_c('div',{staticClass:\"top-tab\",staticStyle:{\"padding\":\"15px\"}},[_c('div',{staticClass:\"flex-jc-sb flex-row-block\"},[(_vm.historyNew.length==0)?_c('div',{staticClass:\"top-tab__item text-1\",staticStyle:{\"color\":\"#fff\",\"font-size\":\"14px\",\"margin-right\":\"0\"}},[_vm._v(\" \"+_vm._s(_vm.noonTip)+\",\"+_vm._s(_vm.L('想聊些什么话题'))+\"?\")]):_c('div',{staticClass:\"top-tab__item 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:\"top-tab__item 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% - 60px)',width:'100%'}),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\",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.replaceAll(':**','**:'),\"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\":_vm.onRefreshUp}},[_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\",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.replaceAll(':**','**:'),\"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.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\":_vm.onRefresh}},[_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\",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.replaceAll(':**','**:'),\"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)\"}},[(_vm.keyboardvic==0)?_c('Input',{attrs:{\"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\"}}):_vm._e(),_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),(_vm.keyboardvic==0 && _vm.prompt=='')?_c('div',{staticClass:\"bottom-box-item-img img-voice-box\"},[_c('img',{attrs:{\"src\":require(\"../images/voice2.png\"),\"mode\":\"heightFix\"},on:{\"click\":_vm.voiceChange}})]):_vm._e(),(_vm.keyboardvic==0 && _vm.prompt!='')?_c('div',{staticClass:\"bottom-box-item-img img-send-box\",style:(_vm.prompt!=''?'background: #3366FF;':'')},[_c('img',{attrs:{\"src\":require(\"../images/send2.png\"),\"mode\":\"heightFix\"},on:{\"click\":_vm.sessionSave}})]):_vm._e(),(_vm.keyboardvic==1)?_c('div',{staticClass:\"bottom-box-item-img img-voice-box\"},[_c('img',{attrs:{\"src\":require(\"../images/keyboard.png\"),\"mode\":\"heightFix\"},on:{\"click\":_vm.voiceChange}})]):_vm._e()]):_vm._e()],1)]):_c('div',{staticClass:\"no-power-wrapper content\",staticStyle:{\"background\":\"none\"}},[_c('div',{staticStyle:{\"width\":\"100%\",\"height\":\"50px\"}}),_c('div',{staticClass:\"top-tab\",staticStyle:{\"padding\":\"15px\"}},[_c('div',{staticClass:\"flex-jc-sb flex-row-block\"},[(_vm.historyNew.length==0)?_c('div',{staticClass:\"top-tab__item text-1\",staticStyle:{\"color\":\"#fff\",\"font-size\":\"14px\",\"margin-right\":\"0\"}},[_vm._v(\" \"+_vm._s(_vm.noonTip))]):_c('div',{staticClass:\"top-tab__item 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:\"top-tab__item text-2\",staticStyle:{\"color\":\"#fff\",\"font-size\":\"14px\",\"margin-right\":\"0\"}},[_vm._v(_vm._s(_vm.dateToday)+\"\\n\\t\\t\\t\\t\\t\"+_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 wx from 'weixin-js-sdk';\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 he from 'he';\r\n\timport VueMarkdown from 'vue-markdown'\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\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 = new Array();\r\n\t\thistoryNew : Array = new Array();\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 = new Array();\r\n\t\tcurrentImgUrl : string = '';\r\n\t\tscreenWidth : number = 0;\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\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 : 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\t\tshowai : boolean = true;\r\n\r\n\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\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\t\t\t\t\tdone();\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}\r\n\t\t\t\t\telse {\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\tdone();\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\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}\r\n\t\t\t\t\t\telse {\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\tdone();\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\tconsole.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}\r\n\t\t\t\t\t\t\t\telse {\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}\r\n\t\t\t\t\t\t\telse {\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\r\n\t\t\t})\r\n\r\n\t\t}\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\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}\r\n\t\t\telse {\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\t\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\tconsole.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\t\t\t\t\t//that.$Message.success(event.data)\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} 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\t\t\t\t\t\t(history as any).isload = false;\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\t(history as any).answer = JSON.parse(event.data).response;\r\n\t\t\t\t\t\t\tthat.ansterdata = rsp;\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\t(history as any).answer = he.decode(event.data);\r\n\t\t\t\t\t\t\tthat.ansterdata = event.data;\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(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 = \"很抱歉,请稍后再试\";\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\r\n\t\thtmlEncodeByRegExp(str) {\r\n\t\t\tvar s = \"\";\r\n\t\t\tif (str.length == 0) return \"\";\r\n\t\t\ts = str.replace(/&/g, \"&\");\r\n\t\t\ts = s.replace(//g, \">\");\r\n\t\t\ts = s.replace(/ /g, \" \");\r\n\t\t\ts = s.replace(/’/g, \"’\");\r\n\t\t\ts = s.replace(/\"/g, '\"');\r\n\t\t\treturn s;\r\n\t\t}\r\n\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\tif (result.length > 0) {\r\n\t\t\t\t\tthat.appid = result[0].id\r\n\t\t\t\t\tconsole.log(that.appid);\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}\r\n\t\t\telse {\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\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('元素高度:', this.scrollHeight);\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\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\t\t\tif (abp.localization.currentCulture.name == \"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\r\n\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.getSessionNew();\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\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\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\": \"IDSID\",\r\n\t\t\t\t\t\t\t\"ProviderAccessCode\": userId,\r\n\t\t\t\t\t\t\tProviderKey: userId,\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}\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} else {\r\n\t\t\t\tthis.isRefresh = false;\r\n\t\t\t\tthat.title = \"\"\r\n\t\t\t}\r\n\t\t\tif (Util.abp.auth.grantedPermissions.AppAIUser != undefined && Util.abp.auth.grantedPermissions.AppAIUser.toLowerCase() == 'true') {\r\n\t\t\t\tthis.showai = true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthis.showai = false;\r\n\t\t\t}\r\n\t\t}\r\n\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\tmounted() {\r\n\t\t\tvar that = this;\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\tif (this.$refs.aibox != undefined) {\r\n\t\t\t\t\tlet elementHeight = (this.$refs.aibox as any).offsetHeight;\r\n\t\t\t\t\tthat.scrollHeight = elementHeight - 130;\r\n\t\t\t\t\tconsole.log('元素高度:', elementHeight);\r\n\t\t\t\t}\r\n\r\n\t\t\t});\r\n\r\n\t\t}\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!./sessionai.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!./sessionai.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./sessionai.vue?vue&type=template&id=70343a95&scoped=true\"\nimport script from \"./sessionai.vue?vue&type=script&lang=ts\"\nexport * from \"./sessionai.vue?vue&type=script&lang=ts\"\nimport style0 from \"./sessionai.vue?vue&type=style&index=0&id=70343a95&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 \"70343a95\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}