{"version":3,"sources":["webpack:///./src/images/newchat.png","webpack:///./src/views/sessionainew.vue","webpack:///./src/components/AudioEnterReal.vue","webpack:///./src/components/AudioEnterReal.vue?a1fa","webpack:///./src/components/AudioEnterReal.vue?dfb4","webpack:///./src/views/sessionainew.vue?9c1c","webpack:///./src/views/sessionainew.vue?4e99","webpack:///./src/views/sessionainew.vue?aead","webpack:///./src/images/chehui.png","webpack:///./src/images/duigou_on.png","webpack:///./src/images/duigou.png","webpack:///./src/components/AudioEnterReal.vue?30d0","webpack:///./src/images/voice.png","webpack:///./src/components/AudioEnterReal.vue?d805","webpack:///./src/views/sessionainew.vue?ab02","webpack:///./src/images/voice3.png"],"names":["module","exports","render","_vm","this","_c","_self","_setupProxy","ref","staticClass","staticStyle","attrs","onRefresh","title","ispc","isRefresh","style","scrollHeight","historyList","length","on","$event","stopPropagation","showmenu","_l","history","index","key","showdate","_v","_s","datetime","_e","id","prompt","isload","L","require","answer","replaceAll","showHistory","historyNew","voice","userid","showstop","sessinfo","againSend","showTool","shareToWeixin","actiontype","dianzan","diancai","directives","name","rawName","value","expression","disabled","sendTitle","audioTitle","pcSendTitle","pcAudioTitle","closeAudio","sendAudio","voiceChange","staticRenderFns","isShow","beginRecoding","haveMoveUp","pcsendTitle","close","audiostart","class","n","pctitle","showVoice","promptChange","model","content","callback","$$v","loadTransComp","touchEndTrans","isCancel","isTrans","cancelAudio","jiexi","minRows","maxRows","preventDefault","touchstart","apply","arguments","touchend","touchmove","component","SessionAINEW","_AbpBase","_this","_classCallCheck","userAgent","sid","commentBox","Array","commentContent","loadmore","optertionInfo","likeId","isLike","followId","isFollow","userInfo","Object","anonymous","imgBox","currentImgs","currentImgUrl","screenWidth","appid","isFresh","isSend","scrollid","imgurl","loadingType","pagesize","pageindex","sessionid","sessionCount","ansterdata","answerstop","keyboardvic","showShare","shownews","msg","isPreview","newsReadCount","_inherits","_createClass","websocket","WebSocket","onopen","console","log","send","onmessage","event","data","result","JSON","parse","header","status_text","onerror","onclose","_closeAudio","_asyncToGenerator","regeneratorRuntime","mark","_callee","that","form","wrap","_context","prev","next","size","FormData","append","$store","dispatch","type","then","res","success","sessionSave","$Message","warning","sent","stop","_x","_x2","_sendAudio","_callee2","_context2","_x3","done","setTimeout","load","shareWeixinType","link","location","protocol","host","substr","gisShareToWeixin","coverImg","window","gis","href","thumbs","extra","scene","fail","e","u","navigator","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","hour","getHours","toString","parseInt","getMinutes","time","info","push","basepro","Base64","encode","trim","source","EventSource","liburl","rid","replace","ridarr","split","rsp","response","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","str","padLeftZero","onlyMy","newItems","to","from","query","reload","_created","_callee3","domain","userId","_context3","body","clientWidth","Util","abp","session","getLoginUser","$route","undefined","ProviderKey","Property","getSessionInfo","getAIListAll","created","_this2","$refs","gethistoryheight","elementHeight","aibox","offsetHeight","AbpBase","__decorate","Watch","Component","components","VueMarkdown","DropDownRefresh","AudioEnter","lamejs","props","Boolean","default","String","showBoxing","blackBoxSpeak","startY","pageWidth","timeOutEvent","waveCanvas","ctx","recorder","drawRecordId","nowDuration","duration","limitDuration","drawColuList","hasPermission","showLoading","stopRecord","computed","isMiddle","watch","handler","nv","ov","getPermission","deep","initial","mounted","Recorder","sampleBits","sampleRate","numChannels","vm","onprogress","params","Math","floor","d","dd","Number","$set","innerWidth","methods","_len","argus","_key","localization","localize","appconst","defaultLocalizationSourceName","error","message","startCanvas","width","height","getContext","$emit","touches","clientY","start","destroy","getWAVBlob","endY","endX","clientX","startRecorder","_this3","resumeRecorder","resume","pauseRecorder","pause","cancelAnimationFrame","stopRecorder","playRecorder","play","pausePlayRecorder","pausePlay","resumePlayRecorder","resumePlay","stopPlayRecorder","stopPlay","destroyRecorder","getRecorder","map","Map","set","fileSize","splitArr","arr","rst","idx","splice","arrAverageNum2","sum","eval","join","beforeDestroy"],"mappings":"2HAAAA,EAAOC,QAAU,s/C,yCCAjB,IAAIC,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,IAAI,QAAQC,YAAY,iBAAiBC,YAAY,CAAC,WAAa,UAAU,OAAS,QAAQ,SAAW,aAAa,CAACL,EAAG,MAAM,CAACI,YAAY,QAAQ,CAACJ,EAAG,oBAAoB,CAACM,MAAM,CAAC,aAAaR,EAAIS,UAAU,MAAQT,EAAIU,MAAM,KAAOV,EAAIW,KAAK,UAAYX,EAAIY,YAAY,CAACV,EAAG,SAAS,CAACG,IAAI,mBAAmBQ,MAAO,UAAUb,EAAIc,aAAa,OAAQ,CAAEd,EAAIe,YAAYC,OAAO,EAAGd,EAAG,MAAM,CAACG,IAAI,YAAYC,YAAY,cAAcW,GAAG,CAAC,MAAQ,SAASC,GAAQA,EAAOC,kBAAkBnB,EAAIoB,UAAS,KAASpB,EAAIqB,GAAIrB,EAAIe,aAAa,SAASO,EAAQC,GAAO,OAAOrB,EAAG,MAAM,CAACsB,IAAID,GAAO,CAAED,EAAQG,SAAUvB,EAAG,MAAM,CAACI,YAAY,QAAQ,CAACN,EAAI0B,GAAG,mBAAmB1B,EAAI2B,GAAGL,EAAQM,UAAU,oBAAoB5B,EAAI6B,KAAK3B,EAAG,MAAM,CAACI,YAAY,iBAAiBE,MAAM,CAAC,GAAK,SAASc,EAAQQ,KAAK,CAAC5B,EAAG,MAAM,CAACI,YAAY,cAAc,CAACN,EAAI0B,GAAG1B,EAAI2B,GAAGL,EAAQS,aAAa7B,EAAG,MAAM,CAACI,YAAY,qBAAqB,CAAEgB,EAAQU,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YmxOyVd30ZHDgSk7uKNsbT9FsmBgAeAOxojnpzwoKQ72+jIgYAriwvP2W0AAB8BcUF6vc38hRMwMrpIhuMYIimuuQgBE5XbtslvbN08P4dtD/eAlbgHVMXt4AHpV6cdkuI1qjPJJgmWEVVUbDuvPGdLQBBSPLxeUZCza9oDZluXyJqAtqCazBsIGMrizd8FjgJ+TrjZBkk/NHG/RY+1fRzwfcKO9ZJ+Gf099Tr8DXBCaWLnR1TfBFU0eHwr6cTxtVMEPAdckzBw4kmpbwD7o7/qfQN4XtK1dQTcADxVYcAu4Dsg1R/wlqSPZzXc9lnAJbOOn3Fc9AccD4yO1/K0GyU9PZWA4ox+E7h0xkXHh9WWtm2HC+4EgoB5SmzQZeUFpzVJta3mXCzp7RSyIjG9XLTczRM8VVWlaQRsBD4ADmxoaTJh2j4WeAWIHoR5yj/AuZKSTV91fYIHAI9Gr10Di9cQYHs98OoC3D56HLdJ+rfK/pkaH2xfDWwCzix+0X1RJRME2D6yAL+5AYlth0YXyyfFb6+kl+oUzURAlZKK7/p9BNheB7yWKH6MVL4oaWudkX3+vzcCbB8ERDHzogoACwcfdvVCAHAvEHeGqnM+C/B9EnAacFXOOz+yrQ8PiMQTSTMl2ex8nwRU5azswPcVAkux8/P0gCx3fl4EZA2+7xDIHnyfBCwF+C4IeAS4tZT1lgZ8FwTEJ+7jwKjQ8IykqCgtjezXRWiE0vaG/9mUUlXYrMnohICsEdYYNxCwzLvXhe3/Ab3DRV/3MM1LAAAAAElFTkSuQmCC\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{ref:\"aibox\",staticClass:\"content ai-box\",staticStyle:{\"background\":\"#f5f5f5\",\"height\":\"100vh\",\"position\":\"relative\"}},[_c('div',{staticClass:\"main\"},[_c('drop-down-refresh',{attrs:{\"on-refresh\":_vm.onRefresh,\"title\":_vm.title,\"ispc\":_vm.ispc,\"isrefresh\":_vm.isRefresh}},[_c('Scroll',{ref:\"gethistoryheight\",style:('height:'+_vm.scrollHeight+'px;')},[(_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\"+_vm._s(history.datetime)+\"\\n\\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}})])}),0):_vm._e(),(_vm.showHistory)?_c('div',{staticClass:\"ai-top\",staticStyle:{\"margin\":\"0 10px 10px\"}},[_vm._v(\"-- \"+_vm._s(_vm.L(\"以上是历史对话\"))+\" --\")]):_vm._e(),_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\"+_vm._s(history.datetime)+\"\\n\\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.userid>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(\"回答已停止生成\")))])]):_c('div',[(_vm.historyNew.length>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\")]):_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\")]):_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',{attrs:{\"src\":require(\"../images/good_on.png\"),\"mode\":\"widthFix\"}}):_c('img',{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',{attrs:{\"src\":require(\"../images/bad_on.png\"),\"mode\":\"widthFix\"}}):_c('img',{attrs:{\"src\":require(\"../images/bad.png\"),\"mode\":\"widthFix\"}})]):_vm._e()])]):_vm._e(),_c('div',{ref:\"history0\",staticStyle:{\"height\":\"1px\"},attrs:{\"id\":\"history-0\"}})])],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showmenu?true:false),expression:\"showmenu?true:false\"}],staticClass:\"menuListWrap\"},[_c('div',{staticClass:\"menuItem\",on:{\"click\":_vm.againSend}},[_c('img',{attrs:{\"src\":require(\"../images/newchat.png\")}}),_c('span',[_vm._v(_vm._s(_vm.L(\"新建对话\")))])])]),(_vm.userid>0)?_c('div',{staticClass:\"bottom-box\"},[_c('div',{staticClass:\"bottom-box-item bottom-box-item-center\",staticStyle:{\"width\":\"calc(100% - 52px)\"}},[_c('audio-enter',{attrs:{\"isShow\":true,\"ispc\":_vm.ispc,\"prompt\":_vm.prompt,\"disabled\":_vm.disabled,\"sendTitle\":_vm.sendTitle,\"title\":_vm.audioTitle,\"pcsendTitle\":_vm.pcSendTitle,\"pctitle\":_vm.pcAudioTitle},on:{\"closeAudio\":_vm.closeAudio,\"sendAudio\":_vm.sendAudio,\"voiceChange\":_vm.voiceChange}})],1)]):_vm._e()],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isShow),expression:\"isShow\"}],staticClass:\"audio-enter\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.beginRecoding),expression:\"beginRecoding\"}],staticClass:\"tips\"},[(_vm.haveMoveUp)?_c('div',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.sendTitle))]):_c('div',[_vm._v(_vm._s(_vm.ispc?_vm.pcsendTitle: _vm.sendTitle))])]),_c('van-overlay',{attrs:{\"show\":_vm.isShow,\"class-name\":\"custom-overlay\"},on:{\"click\":_vm.close}},[_c('div',{staticClass:\"audio-pie\",on:{\"click\":function($event){$event.stopPropagation();}}},[_c('div',{staticClass:\"audio-pie_btn\",on:{\"click\":_vm.audiostart}},[_c('div',{staticClass:\"audio-pie_txt\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.beginRecoding),expression:\"beginRecoding\"}],class:['begin-recode',{'move-up':_vm.haveMoveUp}]},[_c('div',{staticClass:\"audio\"},_vm._l((50),function(n){return _c('div',{staticClass:\"wave\"})}),0)]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.beginRecoding),expression:\"!beginRecoding\"}]},[_vm._v(_vm._s(_vm.pctitle))])])]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(false),expression:\"false\"}],staticClass:\"popup-wrapper\"},[_c('div',{staticClass:\"popup\"}),_c('div',{staticClass:\"popup-content\"},[(_vm.showVoice=='middle')?_c('div',{staticClass:\"voice-content middle-content\"},[_c('div',{staticClass:\"lang-wrapper\"},_vm._l((20),function(n){return _c('div',{staticClass:\"lang-line\"})}),0)]):_vm._e(),(_vm.showVoice=='cancel')?_c('div',{staticClass:\"voice-content cancel-content\"},[_c('div',{staticClass:\"lang-wrapper\"},_vm._l((12),function(n){return _c('div',{staticClass:\"lang-line\"})}),0)]):_vm._e(),(_vm.showVoice=='trans')?_c('div',{staticClass:\"voice-content trans-content\"},[_c('div',{staticClass:\"trans-text\"},[_c('Input',{staticClass:\"audio-textarea\",attrs:{\"type\":\"textarea\"},on:{\"input\":_vm.promptChange},model:{value:(_vm.content),callback:function ($$v) {_vm.content=$$v},expression:\"content\"}})],1),(!_vm.loadTransComp)?_c('div',{staticClass:\"lang-wrapper\"},_vm._l((12),function(n){return _c('div',{staticClass:\"lang-line\"})}),0):_vm._e()]):_vm._e(),(!_vm.touchEndTrans)?_c('div',{class:['cancel-voice',{'cancal-voice-active':_vm.isCancel}]},[_vm._v(\"×\\n\\t\\t\\t\\t\\t\\t\")]):_vm._e(),(!_vm.touchEndTrans)?_c('div',{staticClass:\"moddle-content\"},[_vm._v(_vm._s(_vm.L('松开 发送'))+\"\\n\\t\\t\\t\\t\\t\\t\")]):_vm._e(),(!_vm.touchEndTrans)?_c('div',{class:['trans-voice',{'trans-voice-active':_vm.isTrans}]},[_vm._v(\"文\\n\\t\\t\\t\\t\\t\\t\")]):_vm._e(),(_vm.touchEndTrans)?_c('div',{staticClass:\"sure-trans\"},[_c('div',{staticClass:\"sure-trans-cancel\",on:{\"click\":_vm.cancelAudio}},[_c('img',{attrs:{\"src\":require(\"../images/chehui.png\")}}),_c('div',[_vm._v(_vm._s(_vm.L('Cancel')))])]),_c('div',{staticClass:\"sure-trans-send\",staticStyle:{\"display\":\"none\"}},[_c('img',{attrs:{\"src\":require(\"../images/voice.png\")}}),_c('div',[_vm._v(\"发送原语音\")])]),(_vm.loadTransComp)?_c('div',{staticClass:\"sure-trans-btn\",staticStyle:{\"background-color\":\"#fff\"},on:{\"click\":_vm.sendAudio}},[_c('img',{staticStyle:{\"width\":\"22px\"},attrs:{\"src\":require(\"../images/duigou_on.png\")}})]):_c('div',{staticClass:\"sure-trans-btn\"},[_c('img',{staticStyle:{\"width\":\"22px\"},attrs:{\"src\":require(\"../images/duigou.png\")}})])]):_vm._e(),_c('div',{class:['tape-btn',{'tape-btn-active':true}]},[_c('img',{attrs:{\"src\":require(\"../images/voice3.png\")}})])])])])])],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(false ),expression:\"false \"}],staticClass:\"audio-new-enter\"},[_c('div',{staticClass:\"new-pupup\",on:{\"click\":_vm.voiceChange}}),_c('div',{staticClass:\"new-content\"},[_c('div',{staticClass:\"new-content-text trans-text\",staticStyle:{\"padding-bottom\":\"0\"}},[(_vm.beginRecoding)?_c('div',{staticClass:\"lang-wrapper\"},_vm._l((16),function(n){return _c('div',{staticClass:\"lang-line\"})}),0):_vm._e(),(_vm.jiexi)?_c('div',{staticClass:\"loading-text\"},[_c('span',{staticStyle:{\"width\":\"auto\",\"background\":\"none\"}},[_vm._v(_vm._s(_vm.L('解析中')))]),_c('span',{staticClass:\"dot1\"}),_c('span',{staticClass:\"dot2\"}),_c('span',{staticClass:\"dot3\"}),_c('span',{staticClass:\"dot4\"})]):_vm._e(),(!_vm.beginRecoding && !_vm.jiexi)?_c('Input',{staticClass:\"audio-textarea\",attrs:{\"type\":\"textarea\",\"autosize\":{minRows: 0,maxRows: 5}},on:{\"input\":_vm.promptChange},model:{value:(_vm.content),callback:function ($$v) {_vm.content=$$v},expression:\"content\"}}):_vm._e()],1),(_vm.ispc)?_c('div',{staticClass:\"tips\"},[_vm._v(_vm._s(_vm.beginRecoding?_vm.pcsendTitle:_vm.pctitle))]):_c('div',{staticClass:\"tips\"},[_vm._v(_vm._s(_vm.title))]),_c('div',{staticClass:\"new-content-btnwrapper\"},[(_vm.content!='')?_c('div',{staticClass:\"new-content__close\",on:{\"click\":_vm.cancelAudio}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.L('清空'))+\"\\n\\t\\t\\t\\t\")]):_c('div',{staticClass:\"new-content__close\",on:{\"click\":_vm.voiceChange}},[_c('img',{attrs:{\"src\":require(\"../images/close.png\")}})]),(_vm.ispc)?_c('div',{staticClass:\"new-content__btn\"},[_c('div',{class:_vm.beginRecoding?'enter-btn enter-btn-active':'enter-btn',on:{\"click\":_vm.audiostart}},[_c('img',{attrs:{\"src\":require(\"../images/mai.png\")}})])]):_c('div',{staticClass:\"new-content__btn\"},[_c('div',{class:_vm.beginRecoding?'enter-btn enter-btn-active':'enter-btn',on:{\"touchstart\":function($event){$event.preventDefault();return _vm.touchstart.apply(null, arguments)},\"touchend\":function($event){$event.preventDefault();return _vm.touchend.apply(null, arguments)},\"touchmove\":function($event){$event.preventDefault();return _vm.touchmove.apply(null, arguments)}}},[_c('img',{attrs:{\"src\":require(\"../images/mai.png\")}})])]),(_vm.content!='')?_c('div',{staticClass:\"new-content__block\",on:{\"click\":_vm.sendAudio}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.L('Send'))+\"\\n\\t\\t\\t\\t\")]):_c('div',{staticClass:\"new-content__block\"})])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","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!./AudioEnterReal.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!./AudioEnterReal.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./AudioEnterReal.vue?vue&type=template&id=6a1c3545&scoped=true\"\nimport script from \"./AudioEnterReal.vue?vue&type=script&lang=ts\"\nexport * from \"./AudioEnterReal.vue?vue&type=script&lang=ts\"\nimport style0 from \"./AudioEnterReal.vue?vue&type=style&index=0&id=6a1c3545&prod&scoped=true&lang=less\"\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 \"6a1c3545\",\n null\n \n)\n\nexport default component.exports","\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\timport AudioEnter from '@/components/AudioEnterReal.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\r\n\r\n\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\tAudioEnter\r\n\t\t}\r\n\t})\r\n\texport default class SessionAINEW extends AbpBase {\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\t\r\n\r\n\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\t\t\r\n\t\tpcAudioTitle : string = \"\";\r\n\t\tpcSendTitle : string = \"\";\r\n\t\t\r\n\t\taudiostart(){\r\n\t\t\tvar that=this;\r\n\t\t\t\r\n\t\t\tvar websocket = new WebSocket(\"wss://tingwu-realtime-cn-beijing.aliyuncs.com/api/ws/v1?mc=p-7f1eXTYH7o8WZqNEq1mbecI1rtDZRllROA7d7Orp3MR9Nlv1epLAg0buQxhuL--2lAyRnmDv3zEnLPzAT2keBZpiTYh-AXGDa4yiw6F1U=\")\r\n\t\t\t\r\n\t\t\twebsocket.onopen = function () {\r\n\t\t\t\tconsole.log(\"WebSocket连接成功\");\r\n\t\t\t\twebsocket.send(\"\");\r\n\t\t\t};\r\n\t\t\t\r\n\t\t\twebsocket.onmessage = function (event) {\r\n\t\t\t\tconsole.log(\"接收到服务端消息:\" + event.data)\r\n\t\t\t\tvar result= JSON.parse(event.data);\r\n\t\t\t\tdebugger\r\n\t\t\t\tif(result.header.name==\"TaskFailed\"){\r\n\t\t\t\t\tconsole.log(result.header.status_text)\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\t\r\n\t\t\twebsocket.onerror = function () {\r\n\t\t\t\tconsole.log(\"WebSocket连接发生错误\");\r\n\t\t\t};\r\n\t\t\t\r\n\t\t\twebsocket.onclose = function () {\r\n\t\t\tconsole.log(\"WebSocket连接关闭\");\r\n\t\t\t};\r\n\t\t\t\r\n\t\t\treturn\r\n\t\t\tthis.$store.dispatch({\r\n\t\t\t\ttype: 'app/meetingCreate',\r\n\t\t\t\tdata: {\r\n\t\t\t\t\tlanguage:'cn',\r\n\t\t\t\t\ttype: 2,\r\n\t\t\t\t\tformat:'pcm',\r\n\t\t\t\t\tsampleRate:16000\r\n\t\t\t\t}\r\n\t\t\t}).then((res) => {\r\n\t\t\t\tdebugger\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t})\r\n\t\t}\r\n\t\t\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}\t\t\t\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\t\t\t\t\t\tconsole.log(res.msg)\r\n\t\t\t\t\t\tthat.prompt=res.msg;\r\n\t\t\t\t\t\t\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}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tthat.$Message.warning(\"解析失败\")\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t\t\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\t\t\r\n\r\n\r\n\t\tonRefresh(done) {\r\n\t\t\tvar that = this;\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\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\tscrollid = \"history-\" + list[i].id;\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.sessionid = \"\";\r\n\t\t\tthat.historyNew = [];\r\n\t\t\tthat.showHistory = false;\r\n\t\t\tthat.showTool = false;\r\n\t\t\tthat.showmenu = false;\r\n\t\t}\r\n\t\trefresh2() {\r\n\t\t\tif (this.loadingType == 0) { //loadingType!=0;直接返回\r\n\r\n\t\t\t\t// this.isFresh=false;\r\n\t\t\t\t// console.log(this.isFresh)\r\n\t\t\t\treturn false;\r\n\t\t\t}\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\t\t\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\tthat.setpostion(\"history-0\")\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\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}\r\n\t\t\t\t\t\telse{\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\t\t\t\t\t\t\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\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 += 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(\"关闭连接...\" + \"
\")\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\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\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\r\n\r\n\t\t@Watch('ansterdata')\r\n\t\tansterdataChange(newItems) {\r\n\t\t\tvar that = this;\r\n\t\t\tthat.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}\r\n\t\tasync created() {\r\n\t\t\tvar that = this;\r\n\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\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\tconsole.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\t\t\t\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}\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\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\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\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!./sessionainew.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!./sessionainew.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./sessionainew.vue?vue&type=template&id=ed17f7d4&scoped=true\"\nimport script from \"./sessionainew.vue?vue&type=script&lang=ts\"\nexport * from \"./sessionainew.vue?vue&type=script&lang=ts\"\nimport style0 from \"./sessionainew.vue?vue&type=style&index=0&id=ed17f7d4&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 \"ed17f7d4\",\n null\n \n)\n\nexport default component.exports","module.exports = __webpack_public_path__ + \"img/chehui.f5bf95e3.png\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAABACAYAAAB1JwvBAAAAAXNSR0IArs4c6QAABPVJREFUeF7t3Et3FEUUB/D/jfoRXLtwp+fo3pV2la49koiRgGAkCWBEkIeIvAyPQORppKt5CSII6So/gDAbP4QrF34LF5yT60kkx0yYmb7Vr2kylW267731m/+5mSSdEMJH6QLvtyZefRFDcwDeYuAfMP/udDJJpXca8IIjjydfYxpaAPj1NopFnAjYJYajK/TTHgG7JOws6KU2AbsEbAl0wK4RGuD9IdkFwKWJBnDCKnM8YOfElkIz03dOx8fCGqkYGowZq83RlTYh2Z7g0kSDMGOj/6FDsquCBp+0KjmytnxIthBcmmgGTjllvu1UNmALsKXQBJxKu0CHNVIiNAinbWQO9yoZkt1DR5poMJ2xOv4m67UL2F2EpNAMzDplDmVBhzVSEJqA2VQIHbA7YEsTDdBZq+KvJYkO39QUgWacs9oc9IEOyV6lJU00M885nRzwhQ7YT8Wk0EQ8l0b5oAM2ACk0QN9bFe/Pk+iws72gcd4qs68I9EAnW5poZr7gdPJVUeiBxZZCE9GFNIpLgR5IbCk0gItWmb1lJHogd7Ycmi9ZlewpE3qgki2FZsZlp82XZUMPDLYUmoDLqaoGeiCwpdAgXLGR2V1Fott29nBr4j3G0BgBm7H0ACDxQqqTP6tsXEdtMTT4B6uSL6qeiUb+mH4ZT548YuDN1c2YsNFFZqHqAaqqL4VmYN4pM13VHKvr0obW5CiB7ndsxhi12jyoY5Aye0ihCZhPa4Je3tnDrckFgEa6HXZxkTb99m7c+cUoU6ikWlJoEP9oo+TzktqKytCGx5NjRHS359VDGLPvmHuiin28SAzNuGq12VX3qPRBa/yVIbz0d1ZjArakyvR+UbKKVPh5KTQDsVNmZ4WjdC29/Avf4daOEYAzvxgy01an4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G1i4cOHX09UZ9VzFdtgfMhoSkgGRECk95nK5JY7jmC9/jiXsd4+Pj69Mp9O/RQUVRq7qPMDzvNWIaO5p0AqVHrXWVzCzAX+6BfzLrusOICKHAVHL2aoEGOVEZMZOZvwUtB6SUt5fzYlcLpdxHMekseMs4LcKIawTnmr6o+5PiwCfBFOamhJ1ykLENZVaaCIyZWul7nJaJEYFWUlu2gT4JLxjS1nMfJlS6v1yY0R0DwBsruDEWimlacnnZIUiYHR09ORisTgc9Jub3z2mlVJfTCAhoocBwDqVdRznetd1Ta8/ZysUAcbLfD6/oFQqmV9ZpswQAOBLAFgspfyDiEzI2zq2PxFxUAhhCq45XaEJMN56nnex4zh7mNkJ8H6YmX9GxIwF2Xc++I/nFLlvPBIB/ntgukMzoQ2zPgeAQSllPozQTJ6NTIBxqkr3OMlvRPw0mUwOdnV1fTOTgMLqrokAn4StzGxtY32H3h0bGxvs7e39PayDM32+ZgL862CGp7YfK3ZKKVfNNJCo+mMhIJvNnphMJs0PEj1ljjwhpbwjqnOzIRcLAX4UnMfM9/mv/7fMvFMptXE2QNRiIzYCJpw49m+otTg2W7KxEzBbjsdlp0VAXEzWq55WBNTrl4vL71YExMVkveppRUC9frm4/G76CPgHcBnl6J92O5wAAAAASUVORK5CYII=\"","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!./AudioEnterReal.vue?vue&type=style&index=0&id=6a1c3545&prod&scoped=true&lang=less\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAr1JREFUeF7tm7FOFUEUhv//GSQmFBZUJGgHD4ANnTQEGuks7CjtjFL6CvQ00tmYQAEJhY2WGmiMkYSG2sQCc8zcDORmszOzM7Ozs/dyNqEgd3bPnG/n/DNz5izxwC/W9F9EVgD8I3lZqx/VAIjIRwDb1vFvJNdqQKgCQES+AlhtOHxEcmdoCIMDEJFlABcOR5+S/DEkhBoA1gGcOpx8TvJMAQxIQEfAgLAnpkREQ0A1QEVwjmYBETGrOfP3B8AXkgc+XcnVABF5D2AXwCMA5yQ3c3QsaxawnXnX6MAOySNXp3IAiMgnAC8az/5O8lkqhGQAIrIA4MZh+DHJ1t9SAYjIIoBrh71dkocpEHIAJE1nGQB89vZJmtCIvhRANDJ7Q6E36dwLBOzpCNAQUA3oQQRjcnSzqAFt/t3PAs0cHYC3JD/3vaApBM4rgtamWbCZqdRc9znICQBHjs6bqCzkSJFZwJeDZGqOblYABP0bmSO9j4Cgf8EGjiTlyO5zakCwn8EGCqA9TT0ycDoCXEvh4IsKNtAQ0BBoPaoa2chRDVANcGyHgyM12EBFUEVQRbAtJzCy0NFZIGcW8NXspG5Ph77PNwL8NUmejJD5yVm0NCsh4PFvUpXmygmaM7iXvoKlGQNgcoHunOCdyNmsqfn3J8m/JY65C4HrdDLkzQrHHpEVciRVOzoBaPNRD0dj3/xUuOjxeEq1V6HQ0RCocTr8BMBvRwgtkfzV8xLaV5LjrUvyhXmyCNoFRlvRUpdzuqRiaRH5AOBNw6ETkhupWpYFwEIwtTmvANwCOCb5usT6YUp8DYQtWyZndqp7JK+qAYg1nCqCsXa6ts8eAV0N5U6fsXa6tlcAXUn11U5DQL8X0A8mkvYQfYVg8zk1RDCpyHpuAEwtnqLK7OcKgIUQ9aHF3AEo5VDscwfXgNgOlm7/Hx/eoE9PsrGLAAAAAElFTkSuQmCC\"","\r\n\timport Recorder from 'js-audio-recorder'\r\n\tconst lamejs = require('lamejs')\r\n\timport appconst from '@/lib/appconst'\r\n\t/**\r\n\t * @param isShow 是否显示音频录入组件\r\n\t * @param closeAudio 关闭音频录入组件或录音完毕的事件\r\n\t */\r\n\texport default {\r\n\t\tname: 'AudioEnter',\r\n\t\tprops: {\r\n\t\t\tisShow: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t\ttitle: {\r\n\t\t\t\ttype: String\r\n\t\t\t},\r\n\t\t\tsendTitle: {\r\n\t\t\t\ttype: String\r\n\t\t\t},\r\n\t\t\tpctitle: {\r\n\t\t\t\ttype: String\r\n\t\t\t},\r\n\t\t\tpcsendTitle: {\r\n\t\t\t\ttype: String\r\n\t\t\t},\r\n\t\t\tispc: {\r\n\t\t\t\ttype: Boolean\r\n\t\t\t},\r\n\t\t\t// hasPermission:{\r\n\t\t\t// \ttype:Boolean\r\n\t\t\t// },\r\n\t\t\tdisabled: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t\tprompt: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t},\r\n\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tbeginRecoding: false, // 开始录音\r\n\t\t\t\tshowBoxing: false,//\r\n\t\t\t\tblackBoxSpeak: false, // 是否上滑取消\r\n\t\t\t\tstartY: 0, // 手指滑动开始Y轴坐标\r\n\t\t\t\tpageWidth: 360, // 页面宽度\r\n\t\t\t\ttimeOutEvent: 0, // 定时器\r\n\t\t\t\twaveCanvas: null,\r\n\t\t\t\tctx: null,\r\n\t\t\t\trecorder: null, // 音频录入的实例\r\n\t\t\t\tdrawRecordId: null, // 音频绘画波动图时的音频id\r\n\t\t\t\tnowDuration: null, // 当前时长\r\n\t\t\t\tduration: 0,\r\n\t\t\t\tlimitDuration: 60, // 限制时长,单位-秒\r\n\t\t\t\tdrawColuList: [],// 录音时的柱状波动图,数据集合\r\n\r\n\t\t\t\thaveMoveUp: false,//有上滑\r\n\r\n\t\t\t\thasPermission: false, //是否有麦克风权限\r\n\r\n\t\t\t\t//middle、cancel、trans\r\n\t\t\t\tshowVoice: 'middle',\r\n\t\t\t\t//在转文字上松开\r\n\t\t\t\ttouchEndTrans: false,\r\n\r\n\t\t\t\tcontent: '',\r\n\r\n\t\t\t\tloadTransComp: false, //翻译完成\r\n\t\t\t\tshowLoading:false,\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tstopRecord:true,\t\r\n\t\t\t\tjiexi:false,\r\n\t\t\t\t\r\n\r\n\t\t\t\t//disabled:false\r\n\t\t\t}\r\n\t\t},\r\n\t\tcomputed: {\r\n\t\t\tisMiddle() {\r\n\t\t\t\treturn this.showVoice == \"middle\"\r\n\t\t\t},\r\n\t\t\tisCancel() {\r\n\t\t\t\treturn this.showVoice == \"cancel\"\r\n\t\t\t},\r\n\t\t\tisTrans() {\r\n\t\t\t\treturn this.showVoice == \"trans\"\r\n\t\t\t}\r\n\t\t},\r\n\t\twatch: {\r\n\t\t\t'isShow': {\r\n\t\t\t\thandler(nv, ov) {\r\n\t\t\t\t\tif (nv) {\r\n\t\t\t\t\t\tthis.getPermission()\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\tdeep: true\r\n\t\t\t},\r\n\t\t\t'disabled': {\r\n\t\t\t\thandler(nv, ov) {\r\n\r\n\t\t\t\t},\r\n\t\t\t\tdeep: true\r\n\t\t\t},\r\n\t\t\t'prompt': {\r\n\t\t\t\thandler(nv, ov) {\t\t\t\t\t\r\n\t\t\t\t\tthis.initial(nv)\t\t\t\t\t\r\n\t\t\t\t},\r\n\t\t\t\tdeep: true\r\n\t\t\t}\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\t// 创建录音实例\r\n\t\t\tthis.recorder = new Recorder({\r\n\t\t\t\tsampleBits: 16, // 采样位数,支持 8 或 16,默认是16\r\n\t\t\t\tsampleRate: 16000, // 采样率,支持 11025、16000、22050、24000、44100、48000,根据浏览器默认值\r\n\t\t\t\tnumChannels: 1, // 声道,支持 1 或 2, 默认是1\r\n\t\t\t\t// compiling: false,(0.x版本中生效,1.x增加中) // 是否边录边转换,默认是false\r\n\t\t\t})\r\n\t\t\t// 监听录音变化\r\n\t\t\tconst vm = this;\r\n\t\t\tthis.recorder.onprogress = function (params) {\t\t\t\t\r\n\t\t\t\tvm.duration = params.duration.toFixed(2);\r\n\t\t\t\tconsole.log(vm.duration)\r\n\t\t\t\tif (Math.floor(params.duration) >= vm.limitDuration) {\r\n\t\t\t\t\tvm.touchend();\r\n\t\t\t\t}\r\n\t\t\t\tlet d = Math.floor(params.duration);\r\n\r\n\t\t\t\tvar dd = Number(d) < 10 ? '0' + d : d;\r\n\t\t\t\tdd = '0:' + d;\r\n\t\t\t\tvm.$set(vm, 'nowDuration', dd)\r\n\r\n\t\t\t\t// console.log('--------------START---------------')\r\n\t\t\t\t// console.log('录音时长(秒)', params.duration);\r\n\t\t\t\t// console.log('录音大小(字节)', params.fileSize);\r\n\t\t\t\t// console.log('录音音量百分比(%)', params.vol);\r\n\t\t\t\t// console.log('当前录音的总数据([DataView, DataView...])', params.data);\r\n\t\t\t\t// console.log('--------------END---------------')\r\n\t\t\t}\r\n\t\t\tthis.pageWidth = window.innerWidth;\r\n\t\t\tthis.getPermission()\r\n\t\t\t//this.startCanvas();\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tinitial(nv){\r\n\t\t\t\tthis.content = nv;\r\n\t\t\t\tthis.jiexi=false;\r\n\t\t\t\tthis.loadTransComp = true\r\n\t\t\t\tthis.showLoading=false;\r\n\t\t\t\tthis.showBoxing=true;\r\n\t\t\t},\r\n\t\t\tL(value : string, source ?: string, ...argus : string[]) : string {\r\n\t\t\t\tif (source) {\r\n\t\t\t\t\treturn window.abp.localization.localize(value, source, argus);\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn window.abp.localization.localize(value, appconst.localization.defaultLocalizationSourceName, argus);\r\n\t\t\t\t}\r\n\r\n\t\t\t},\r\n\t\t\t// 获取麦克风权限\r\n\t\t\tgetPermission() {\r\n\t\t\t\tvar _this = this;\r\n\t\t\t\tRecorder.getPermission().then(() => {\r\n\t\t\t\t\t_this.hasPermission = true;\r\n\t\t\t\t\tconsole.log('录音给权限了');\r\n\t\t\t\t}, (error) => {\r\n\t\t\t\t\t_this.hasPermission = false;\r\n\t\t\t\t\tconsole.log(`${error.name} : ${error.message}`);\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\t// 波浪图canvas 配置\r\n\t\t\tstartCanvas() {\r\n\t\t\t\t//录音波浪\r\n\t\t\t\tthis.waveCanvas = document.getElementById('canvas');\r\n\t\t\t\tthis.waveCanvas.width = 145;\r\n\t\t\t\tthis.waveCanvas.height = 44;\r\n\t\t\t\tthis.ctx = this.waveCanvas.getContext(\"2d\");\r\n\t\t\t},\r\n\t\t\tcancelAudio() {\r\n\t\t\t\tconsole.log(\"cancel\")\r\n\t\t\t\tthis.showBoxing = false;\r\n\t\t\t\tthis.loadTransComp=false;\r\n\t\t\t\tthis.content = \"\";\r\n\t\t\t\t//this.$emit('prompt',\"\")\r\n\t\t\t},\r\n\t\t\tvoiceChange(){\r\n\t\t\t\tthis.$emit('voiceChange')\r\n\t\t\t},\r\n\t\t\tsendAudio() {\r\n\t\t\t\tthis.$emit('sendAudio', this.content)\r\n\t\t\t\tthis.showBoxing = false;\r\n\t\t\t},\r\n\t\t\tpromptChange(e) {\r\n\t\t\t\t//console.log(e)\r\n\t\t\t\tthis.$emit('prompt', e)\r\n\t\t\t},\r\n\t\t\taudiostart() {\r\n\t\t\t\tconsole.log(\"audiostart\")\r\n\t\t\t\t\r\n\t\t\t\tvar websocket = new WebSocket(\"wss://tingwu-realtime-cn-beijing.aliyuncs.com/api/ws/v1?mc=p-7f1eXTYH7o8WZqNEq1mbecI1rtDZRllROA7d7Orp3MR9Nlv1epLAg0buQxhuL--2lAyRnmDv3zEnLPzAT2keBZpiTYh-AXGDa4yiw6F1U=\")\r\n\t\t\t\t\r\n\t\t\t\twebsocket.onopen = function () {\r\n\t\t\t\t\tconsole.log(\"WebSocket连接成功\");\r\n\t\t\t\t\t//websocket.send(\"\");\r\n\t\t\t\t};\r\n\t\t\t\t\r\n\t\t\t\twebsocket.onmessage = function (event) {\r\n\t\t\t\t\tconsole.log(\"接收到服务端消息:\" + event.data)\r\n\t\t\t\t\tvar result= JSON.parse(event.data);\r\n\t\t\t\t\tdebugger\r\n\t\t\t\t\tif(result.header.name==\"TaskFailed\"){\r\n\t\t\t\t\t\tconsole.log(result.header.status_text)\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\t\r\n\t\t\t\twebsocket.onerror = function () {\r\n\t\t\t\t\tconsole.log(\"WebSocket连接发生错误\");\r\n\t\t\t\t};\r\n\t\t\t\t\r\n\t\t\t\twebsocket.onclose = function () {\r\n\t\t\t\tconsole.log(\"WebSocket连接关闭\");\r\n\t\t\t\t};\r\n\t\t\t\t\r\n\t\t\t\t// if (!this.beginRecoding) {\r\n\t\t\t\t// \tthis.blackBoxSpeak = true\r\n\r\n\t\t\t\t// \tthis.timeOutEvent = 0\r\n\t\t\t\t// \t// 长按1000毫秒后执行\r\n\t\t\t\t// \tthis.timeOutEvent = setTimeout(() => {\r\n\t\t\t\t// \t\tthis.startRecorder();\r\n\t\t\t\t// \t\tthis.beginRecoding = true\r\n\t\t\t\t// \t}, 50)\r\n\t\t\t\t// \treturn false\r\n\t\t\t\t// }\r\n\t\t\t\t// else {\r\n\t\t\t\t// \tthis.touchend()\r\n\t\t\t\t// }\r\n\r\n\t\t\t},\r\n\t\t\t// 手指开始触发\r\n\t\t\ttouchstart(e) {\r\n\t\t\t\tconsole.log(\"touchstart\");\r\n\t\t\t\tvar _this = this;\r\n\t\t\t\t// Recorder.getPermission().then(() => {\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t// }, (error) => {\r\n\t\t\t\t// \t_this.hasPermission=false;\t\t\t\t\t\r\n\t\t\t\t// \tconsole.log(`${error.name} : ${error.message}`);\r\n\t\t\t\t// });\r\n\r\n\t\t\t\tif (!this.hasPermission) {\r\n\t\t\t\t\t_this.$Message.warning(\"请先开启麦克风权限\")\r\n\t\t\t\t\treturn false\r\n\t\t\t\t}\r\n\t\t\t\tif (this.beginRecoding) {\r\n\t\t\t\t\treturn false\r\n\t\t\t\t}\r\n\t\t\t\tthis.blackBoxSpeak = true\r\n\t\t\t\tthis.haveMoveUp = false;\r\n\t\t\t\tthis.showVoice = 'middle';\r\n\t\t\t\tthis.touchEndTrans = false;\r\n\t\t\t\tthis.loadTransComp = false;\r\n\t\t\t\tthis.showLoading=true;\r\n\t\t\t\tthis.stopRecord=false;\r\n\t\t\t\tthis.showBoxing = false;\t\r\n\t\t\t\tthis.content='';\r\n\t\t\t\tthis.jiexi=false;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tthis.startY = e.touches[0].clientY\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\tif (!this.disabled) {\r\n\t\t\t\t\t//this.timeOutEvent = 0\r\n\t\t\t\t\tvar that=this;\r\n\t\t\t\t\tthis.recorder= new Recorder({\r\n\t\t\t\tsampleBits: 16, // 采样位数,支持 8 或 16,默认是16\r\n\t\t\t\tsampleRate: 16000, // 采样率,支持 11025、16000、22050、24000、44100、48000,根据浏览器默认值\r\n\t\t\t\tnumChannels: 1, // 声道,支持 1 或 2, 默认是1\r\n\t\t\t\t// compiling: false,(0.x版本中生效,1.x增加中) // 是否边录边转换,默认是false\r\n\t\t\t})\r\n\t\t\t\r\n\t\t\tthis.recorder.onprogress = function (params) {\r\n\t\t\t\tthat.duration = params.duration.toFixed(2);\r\n\t\t\t\t//console.log(that.duration)\r\n\t\t\t\tif (Math.floor(params.duration) >= that.limitDuration) {\r\n\t\t\t\t\tthat.touchend();\r\n\t\t\t\t}\r\n\t\t\t\tlet d = Math.floor(params.duration);\r\n\t\t\t\r\n\t\t\t\td = Number(d) < 10 ? '0' + d : d;\r\n\t\t\t\td = '0:' + d;\r\n\t\t\t\tthat.$set(that, 'nowDuration', d)\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\tthis.recorder.start().then(() => {\r\n\t\t\t\t\t\tthis.beginRecoding = true;\r\n\t\t\t\t\t\tconsole.log(\"stopRecord:\"+ this.stopRecord)\r\n\t\t\t\t\t\tif(this.stopRecord){\r\n\t\t\t\t\t\t\tconsole.log(111)\r\n\t\t\t\t\t\t\tthat.beginRecoding = false\r\n\t\t\t\t\t\t\tthat.duration = 0;\r\n\t\t\t\t\t\t\tthat.nowDuration = null;\r\n\t\t\t\t\t\t\tthat.drawColuList = [];\r\n\t\t\t\t\t\t\tthat.blackBoxSpeak = true\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tthat.showBoxing = false;\t\r\n\t\t\t\t\t\t\tsetTimeout(function(){\r\n\t\t\t\t\t\t\t\tconsole.log(222)\r\n\t\t\t\t\t\t\t\tthat.recorder.stop();\r\n\t\t\t\t\t\t\t\tthat.recorder.destroy()\r\n\t\t\t\t\t\t\t},50)\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//this.drawRecordWave();//开始绘制\r\n\t\t\t\t\t\t//this.drawRecordColu(); // 开始绘制\r\n\t\t\t\t\t}, (error) => {\r\n\t\t\t\t\t\tconsole.log(`${error.name} : ${error.message}`);\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\r\n\t\t\t\t\treturn false\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t},\r\n\t\t\t// 手指离开屏幕触发\r\n\t\t\ttouchend() {\r\n\t\t\t\tconsole.log(\"touchend:\" + this.beginRecoding);\r\n\t\t\t\tvar that=this;\r\n\t\t\t\t// if(!this.beginRecoding){\r\n\t\t\t\t// \tsetTimeout(function(){\r\n\t\t\t\t// \t\tthat.recorder.stop();\r\n\t\t\t\t// \t\tthat.beginRecoding = false\r\n\t\t\t\t// \t\tthat.duration = 0;\r\n\t\t\t\t// \t\tthat.nowDuration = null;\r\n\t\t\t\t// \t\tthat.drawColuList = [];\r\n\t\t\t\t// \t\tthat.blackBoxSpeak = true\r\n\t\t\t\t// \t\tthat.haveMoveUp = false;\r\n\t\t\t\t\t\t\r\n\t\t\t\t// \t},200)\r\n\t\t\t\t// \treturn\r\n\t\t\t\t// }\r\n\t\t\t\tthis.stopRecord=true;\r\n\t\t\t\tthis.recorder.stop();\r\n\t\t\t\tthis.beginRecoding = false\r\n\t\t\t\t\r\n\t\t\t\tif (this.duration > 0.2) {\r\n\t\t\t\t\tthis.showBoxing = true;\t\t\r\n\t\t\t\t\tthis.jiexi=true;\r\n\t\t\t\t\t//this.$emit('closeAudio', this.recorder.getWAVBlob(), this.touchEndTrans)\r\n\t\t\t\t\tthis.$emit('closeAudio', this.recorder.getWAVBlob(), true)\r\n\t\t\t\t\tthis.recorder.destroy()\r\n\t\t\t\t}\r\n\t\t\t\tthis.duration = 0;\r\n\t\t\t\tthis.nowDuration = null;\r\n\t\t\t\tthis.drawColuList = [];\r\n\t\t\t\tthis.blackBoxSpeak = true\r\n\t\t\t\tthis.haveMoveUp = false;\r\n\t\t\t\r\n\t\t\t},\r\n\t\t\t// 滑动触发\r\n\t\t\ttouchmove(e) {\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconst endY = e.touches[0].clientY\r\n\t\t\t\t\tconst endX = e.touches[0].clientX\r\n\t\t\t\t\t//console.log(\"startY:\" + this.startY + \",endY:\" + endY+\",endX:\"+endX+\",pageWidth:\"+this.pageWidth)\r\n\t\t\t\t\tif (endY < this.startY - 50) {\r\n\t\t\t\t\t\tthis.haveMoveUp = true;\r\n\t\t\t\t\t\tif (endX * 2 < this.pageWidth) {\r\n\t\t\t\t\t\t\tthis.showVoice = \"cancel\"\r\n\t\t\t\t\t\t\tthis.blackBoxSpeak = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tthis.showVoice = \"trans\"\r\n\t\t\t\t\t\t\tthis.touchEndTrans = true;\r\n\t\t\t\t\t\t\tthis.blackBoxSpeak = true;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tthis.haveMoveUp = false;\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\r\n\r\n\r\n\t\t\t\t//this.blackBoxSpeak = this.startY < endY\r\n\t\t\t},\r\n\t\t\t//长按超过x毫秒-- 开始录音\r\n\t\t\tstartRecorder() {\r\n\t\t\t\tthis.recorder.start().then(() => {\r\n\t\t\t\t\tthis.beginRecoding = true;\r\n\t\t\t\t\t//this.drawRecordWave();//开始绘制\r\n\t\t\t\t\t//this.drawRecordColu(); // 开始绘制\r\n\t\t\t\t}, (error) => {\r\n\t\t\t\t\tconsole.log(`${error.name} : ${error.message}`);\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\t// 继续录音\r\n\t\t\tresumeRecorder() {\r\n\t\t\t\tthis.recorder.resume()\r\n\t\t\t},\r\n\t\t\t// 暂停录音\r\n\t\t\tpauseRecorder() {\r\n\t\t\t\tthis.recorder.pause();\r\n\t\t\t\tthis.drawRecordId && cancelAnimationFrame(this.drawRecordId);\r\n\t\t\t\tthis.drawRecordId = null;\r\n\t\t\t},\r\n\t\t\t// 结束录音\r\n\t\t\tstopRecorder() {\r\n\t\t\t\tthis.recorder.stop()\r\n\t\t\t\tthis.drawRecordId && cancelAnimationFrame(this.drawRecordId);\r\n\t\t\t\tthis.drawRecordId = null;\r\n\t\t\t},\r\n\t\t\t// 录音播放\r\n\t\t\tplayRecorder() {\r\n\t\t\t\tthis.recorder.play();\r\n\t\t\t\t//this.drawPlay();//绘制波浪图\r\n\t\t\t},\r\n\t\t\t// 暂停录音播放\r\n\t\t\tpausePlayRecorder() {\r\n\t\t\t\tthis.recorder.pausePlay()\r\n\t\t\t},\r\n\t\t\t// 恢复录音播放\r\n\t\t\tresumePlayRecorder() {\r\n\t\t\t\tthis.recorder.resumePlay();\r\n\t\t\t\t//this.drawPlay();//绘制波浪图\r\n\t\t\t},\r\n\t\t\t// 停止录音播放\r\n\t\t\tstopPlayRecorder() {\r\n\t\t\t\tthis.recorder.stopPlay();\r\n\t\t\t},\r\n\t\t\t// 销毁录音\r\n\t\t\tdestroyRecorder() {\r\n\t\t\t\tconst vm = this;\r\n\t\t\t\tif (vm.recorder) {\r\n\t\t\t\t\tvm.recorder.destroy().then(function () {\r\n\t\t\t\t\t\tvm.recorder = null;\r\n\t\t\t\t\t\tvm.drawRecordId && cancelAnimationFrame(vm.drawRecordId);\r\n\t\t\t\t\t\tvm.drawRecordId = null;\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\tgetRecorder() {\r\n\t\t\t\tlet map = new Map();\r\n\t\t\t\tmap.set('duration', this.recorder.duration);//录音总时长\r\n\t\t\t\tmap.set('fileSize', this.recorder.fileSize);//录音总大小\r\n\r\n\t\t\t\t//录音结束,获取取录音数据\r\n\t\t\t\t//map.set('PCMBlob', this.recorder.getPCMBlob());//获取 PCM 数据\r\n\t\t\t\tmap.set('wavBlob', this.recorder.getWAVBlob());//获取 WAV 数据\r\n\t\t\t\t//map.set('mp3Blob', this.convertToMp3(this.recorder.getWAV()));\r\n\t\t\t\t//map.set('channel', this.recorder.getChannelData());//获取左声道和右声道音频数据\r\n\t\t\t\treturn map;\r\n\t\t\t},\r\n\t\t\t// 拆分数组\r\n\t\t\tsplitArr(arr, rst, idx) {\r\n\t\t\t\tif (!arr || arr.length === 0) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\trst.push(arr.splice(0, idx ? idx : 32))\r\n\t\t\t\tthis.splitArr(arr, rst)\r\n\t\t\t},\r\n\t\t\t// 取数组平均数\r\n\t\t\tarrAverageNum2(arr) {\r\n\t\t\t\tlet sum = eval(arr.join(\"+\"));\r\n\t\t\t\treturn ~~(sum / arr.length * 100) / 100;\r\n\t\t\t},\r\n\t\t\t// 关闭组件\r\n\t\t\tclose() {\r\n\t\t\t\tthis.$emit('closeAudio')\r\n\t\t\t},\r\n\t\t\t// 销毁实例\r\n\t\t\tbeforeDestroy() {\r\n\t\t\t\tthis.destroyRecorder();\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n","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!./sessionainew.vue?vue&type=style&index=0&id=ed17f7d4&prod&lang=less&scoped=scoped\"","module.exports = __webpack_public_path__ + \"img/voice3.2a983763.png\";"],"sourceRoot":""}