Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

2 linhas
15 KiB

  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/learning/Thefulltext/index2"],{328:function(e,t,n){"use strict";(function(e){n(5),n(6);i(n(4));var t=i(n(329));function i(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n(1)["createPage"])},329:function(e,t,n){"use strict";n.r(t);var i=n(330),o=n(332);for(var s in o)"default"!==s&&function(e){n.d(t,e,(function(){return o[e]}))}(s);n(334);var a,r=n(17),d=Object(r["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,"2bf1e98a",null,!1,i["components"],a);d.options.__file="pages/learning/Thefulltext/index2.vue",t["default"]=d.exports},330:function(e,t,n){"use strict";n.r(t);var i=n(331);n.d(t,"render",(function(){return i["render"]})),n.d(t,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(t,"components",(function(){return i["components"]}))},331:function(e,t,n){"use strict";var i;n.r(t),n.d(t,"render",(function(){return o})),n.d(t,"staticRenderFns",(function(){return a})),n.d(t,"recyclableRender",(function(){return s})),n.d(t,"components",(function(){return i}));try{i={uAvatar:function(){return n.e("uview-ui/components/u-avatar/u-avatar").then(n.bind(null,594))}}}catch(r){if(-1===r.message.indexOf("Cannot find module")||-1===r.message.indexOf(".vue"))throw r;console.error(r.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.dialogList,(function(t,n){var i=e.__get_orig(t),o=e.__map(t.message,(function(t,n){var i=e.__get_orig(t),o=1==t.speaker&&0==t.isShow?e.Aimg.replace(/[\r\n]/g,""):null,s=2==t.speaker&&0==t.isShow?e.Aimg.replace(/[\r\n]/g,""):null,a=3==t.speaker&&0==t.isShow?e.Aimg.replace(/[\r\n]/g,""):null,r=4==t.speaker&&0==t.isShow?e.Aimg.replace(/[\r\n]/g,""):null,d=5==t.speaker&&0==t.isShow?e.Aimg.replace(/[\r\n]/g,""):null,c=6==t.speaker&&0==t.isShow?e.Aimg.replace(/[\r\n]/g,""):null,u=7==t.speaker&&0==t.isShow?e.Aimg.replace(/[\r\n]/g,""):null,l=8==t.speaker&&0==t.isShow?e.Aimg.replace(/[\r\n]/g,""):null,h=9==t.speaker&&0==t.isShow?e.Aimg.replace(/[\r\n]/g,""):null;return{$orig:i,g0:o,g1:s,g2:a,g3:r,g4:d,g5:c,g6:u,g7:l,g8:h}}));return{$orig:i,l0:o}})));e.$mp.data=Object.assign({},{$root:{l1:n}})},s=!1,a=[];o._withStripped=!0},332:function(e,t,n){"use strict";n.r(t);var i=n(333),o=n.n(i);for(var s in i)"default"!==s&&function(e){n.d(t,e,(function(){return i[e]}))}(s);t["default"]=o.a},333:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;getApp();var i=n(67),o=n(11),s=requirePlugin("WechatSI"),a=s.getRecordRecognitionManager(),r={data:function(){return{Aimg:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAACqVBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9/f3////9/f39/f3////////9/f3////////////9/f3////9/f39/f3////9/f3////////9/f3////9/f3////////////////9/f39/f3////////9/f39/f3////9/f39/f3////////9/f39/f3////////9/f39/f39/f3////////////////+/v7+/v7////+/v7////+/v7////+/v7+/v7////////+/v7+/v7////+/v7////+/v7////////////////////////////+/v7////+/v7////+/v7+/v7////////////+/v7////+/v7////+/v7+/v7////////+/v7////+/v7////////+/v7////////+/v7////+/v7+/v7+/v7////////+/v7+/v7////+/v7+/v7////+/v7////+/v7////+/v7////+/v7+/v7////+/v7+/v7////+/v7////+/v7////+/v7+/v7////+/v5jdC9iAAAA4nRSTlMAAQIDBAUGBwgLDA0ODxARExQVFhgbHB4fICEiIyQmJygpKy4wMTIzNDY3ODk6Oz0+P0BBQkRGR0lKTE5PUFFTVFVXWFlcXV9gYWJjZWZnaGlqa2xtbm9wcXJzdHV2d3h6e319foGBgoODh4mKiouMjI2QkZKSk5OUlpeYmZmam5ycnZ+foKGio6SmqKmpq6yur7CwsbGytba5uru8wMDBwcLCw8XGx8jJysrLzM7P0dLT1dXW1tfY2drc3N7f4OHh5Obm5+jp6uvs7vDx8vLz8/T09fX29/f4+fn6+vz8/f7+RVDt+wAAA55JREFUGBntwf9/1HMAB/DX7XYbuXWV1cyMoixfugrRGNXytW33pbVdJ83XkiMLSb4LJd/zZUi0SKT5FmGS77HUVaixnHP2+kt8vt3Zbp/3+7P3XR5+8XziP1E4uiYcrh1bjMNi6NzXumnoeX3eSOSrpHUv+zi0ogJ5qd3JLN1XuJGzwqW0sW4oclT0Im19XIqcuNdQ4D0vcnEDhdYgB2f+SbFZUHbEdkrsLYeqFko9CEVH7qJUohxqLqODO6BmLR18XwAVRQfpZDxUnExHjVBRR0eroGIZHX0AFe10tA8qdtNZIRR00VEPVLxLRzuh4jk62gIVy+joSaiI0tECqPDT0blQ4f6RDpI+KHmYDjZBzWQ6aIaibZSK+6BoOqViUOXqoER8BJSdlqJYFDm4h0LveJAD7+cUiFciJ1U/01aiGjk65zfaSF6EnE3azQEO1iAPFZuZZes45MUT3cM+emLFyNfwK3fQ8k1sFA6L0cElTzx9d1OVC/8bNG/gzY+GQaKk461gCQZr8iMHSNZD4nySv6wYj0EYFv2UhqcgcTsN70ePhtzER3+lJe6BxXP9jTctvrl1yS1jkLaNlkTbBR6IlF3dyT78sHh+oqkSlrJe/uOH1jGw4apem2I/1yLtGRo6kRZiP73t57mQxb+Z2dqRdikNtyLtBWb78Cz05bomyQH+KIGljIYaWNxxDtC72ouMgsdpZzosHhqqYDmFdraOQNpttHUfLKU0TITlKtra6IZpCu3tgMVPQx0sG2ivDqaVFDgOppk0LIbJm6C9DTB1UCAMU4SGZ2GqocAumL6jQBtMMRq2wLScAik3dMV/UWB/EQwrafgSpk6KlEJ3LIXOgGE9DQdgqKDQSdBNoNAiGL6i6SjowhSaAt1UCm2CzpOk6QTonqfQJdBdSKGkD5pKWqZCU7iHQtdB10KxWmjOpqUJmtMp9gB091LsIWiCtCyFZiHFXoZuHcW+hiZGy0vQvE2xT6DbTolKAI/R8hmA4SmKdUG3jxIhAG/QkigAZlAi6QJQTJk2AF1MGwXcRRkfgJGU2V8EHzP8wBeUqQQwllKTcCozpuFESk0AMJNSC3AxM8KYT6lpAFootRGLmLEQ6ynVCCBAqcSQ1cy4f8ghSs0HcMzvlKp+lRmvVFMqNQ6aaIoyd3Yy49vllOmuh+H4WZFIpFnTpJmjadTM1oQ1oVAgFNQENA0N9f01BIKh8OzGOU3NkbmXzwuV41/wNztgHKhu7WKTAAAAAElFTkSuQmCC",roleindex:0,dialogList:[],luyinList:[],newluyinList:[],id:"",customerId:"",message:"",durationTimeStr:"",autoLoad:!0,playNow:0,scrollTop:0,scrollId:"",editing:!1,isLiked:null,createUser:null,commentList:[],content:"",voiceShow:!1,isRecording:!1,answerUserId:null,answerId:null,textareaFocus:!1,myId:e.getStorageSync("weapp_session_userInfo_data").accountId,audioPlay:!1,sliderValue:0,end:!1,sliderMax:0,innerAudioContext:"",currentTimeStr:"00:00",timeStr:"00:00",recordPath:"",csdFileindex:0,date:"",alltimeStr:"00:00",num:0,Bnum:0,status:0,itemobj:{},textindex:0,toptextindex:0,timer:null}},onLoad:function(e){this.status=e.status,this.customerId=e.customerId,this.itemobj=JSON.parse(e.itemobj),this.stateisshow=e.stateisshow,this.getdianzan(),this.getCommentList(),this.getView();var t=this;this.timer=setTimeout((function(){t.addHot()}),3e4)},onShow:function(){if(this.initRecord(),2==this.stateisshow)var t=this.itemobj;else{var n=getCurrentPages(),i=n[n.length-1];t=i.data.info}console.log(t,656456546),this.innerAudioContext=e.createInnerAudioContext(),this.innerAudioContext.autoplay=!1,this.innerAudioContext.title="音频",this.onPlay(),this.onPause(),this.onCanplay(),this.onEnded(),this.onSeeking(),this.onSeeked(),this.TimeUpdate(),this.getluyinList(t)},destroyed:function(){clearTimeout(this.timer),this.innerAudioContext&&this.innerAudioContext.destroy()},onUnload:function(){this.innerAudioContext.destroy()},methods:{toKeywordsearch:function(){this.innerAudioContext.destroy(),e.navigateTo({url:"/pages/learning/Thefulltext/search?customerId="+this.customerId+"&status="+this.status+"&skpl=2"})},getView:function(){this.$u.get("/addtodigest/addPageviews",{id:this.customerId}).then((function(e){}))},addHot:function(){this.$u.get("/addtodigest/addHeat",{id:this.customerId}).then((function(e){}))},onPlay:function(){var e=this;this.innerAudioContext.onPlay((function(){console.log("播放!"),e.audioPlay=!0}))},onPause:function(){var e=this;this.innerAudioContext.onPause((function(){console.log("暂停播放!"),e.audioPlay=!1}))},onCanplay:function(){var e=this;this.innerAudioContext.onCanplay((function(t){console.log("缓冲回调",e.innerAudioContext.duration)}))},onEnded:function(){var e=this;this.innerAudioContext.onEnded((function(){console.log("播放结束!"),e.audioPlay=!1}))},onSeeking:function(){this.innerAudioContext.onSeeking((function(e){console.log("进行跳转",e)}))},onSeeked:function(){var e=this;this.innerAudioContext.onSeeked((function(t){console.log("结束跳转",t),e.$forceUpdate()}))},TimeUpdate:function(){var e=this;this.innerAudioContext.onTimeUpdate((function(){var t=e.innerAudioContext,n=t.currentTime;t.duration;if(e.playNow=parseInt(1e3*n),0==e.dialogList.length);else for(var i=e.dialogList[0].message,o=0;o<i.length;o++)if(Number(i[o].bg)<e.playNow&&Number(i[o].ed)>e.playNow){e.scrollId="dialog"+e.csdFileindex+"text"+i[o].bg;break}var s=e.formatTime(n);e.sliderValue=parseInt(n),e.currentTimeStr=s,e.sliderMax=e.luyinList[e.csdFileindex].recordDuration,e.$forceUpdate()}))},ltolower:function(){var t=this,n=this.newluyinList.length-1;this.textindex>=n?e.showToast({title:"到底了",duration:2e3}):(this.textindex=this.textindex+1,this.newluyinList[this.textindex].message.forEach((function(e){t.dialogList[0].message.push(e)})),console.log("下一页",this.textindex))},rolltoupper:function(){var e=this;if(0!=this.toptextindex&&void 0!=this.dialogList[0]){this.toptextindex=this.toptextindex-1;var t=this.newluyinList[this.toptextindex].message,n=t.reverse();n.forEach((function(t){e.dialogList[0].message.unshift(t)})),console.log("上一页",this.toptextindex)}},getdianzan:function(){var t=this;e.request({url:o.service.likegetLike+"?targetId="+this.customerId,method:"GET",header:{"content-type":"application/json","Access-Token":e.getStorageSync("weapp_session_login_data").token},success:function(n){1e4==n.data.code?t.isLiked=n.data.data.like:(e.hideLoading(),e.showModal({title:"提示",content:"请求数据失败,请重新尝试",showCancel:!1}))},fail:function(t){return e.hideLoading(),e.showModal({title:"提示",content:"网络异常,请重新尝试",showCancel:!1}),!1}})},getCommentList:function(){var e=this;i.getRequestPromise(o.service.cmmentList+"?targetId="+this.customerId,{},!1,"GET").then((function(t){var n=t;n.reverse(),e.commentList=n}))},getluyinList:function(e){var t=this;this.sliderMax=0,this.timeStr="00:00";var n={pageNum:1,pageSize:100,query:{customerId:this.customerId}};this.$u.post("/corpus/findByPage",n).then((function(n){if(n&&n.length){var i=1+n[0].recordDuration;t.alltimeStr=t.getTime(i),e.bg,t.luyinList=n,t.recordPath=n[0].recordPath,t.sliderMax=t.getTime(n[0].recordDuration),t.timeStr=t.getTime(n[0].recordDuration),t.date=n[0].receptionTime,t.getCorpusAnalysis(e),t.creatAudio()}}))},adasdasdasd:function(e){var t=this.formatTime(e);this.currentTimeStr=t,this.innerAudioContext.seek(e),this.innerAudioContext.play()},getCorpusAnalysis:function(t){var n=this;this.dialogList=[],e.request({url:o.service.getCorpusAnal+"?corpusId="+this.luyinList[this.csdFileindex].id+"&bg="+t.bg+"&speaker="+this.roleindex,method:"GET",header:{"content-type":"application/json","Access-Token":e.getStorageSync("weapp_session_login_data").token},success:function(e){var i=JSON.parse(e.data.data.audioContent);n.textindex=e.data.data.index,n.toptextindex=e.data.data.index,console.log(t.onebest+":66666666666666666666666666666"),i.forEach((function(e){e.message=JSON.parse(e.onebest),e.backindex=n.csdFileindex,t.onebest&&e.message.forEach((function(e){e.onebest==t.onebest&&(e.onebest="<font style='color: red'>".concat(e.onebest,"</font>"))}))})),n.newluyinList=i,n.dialogList.push(i[n.textindex]);var o=parseInt(t.bg/1e3);n.adasdasdasd(o)}})},getTime:function(e){return i.formatSecond(e)},creatAudio:function(){this.innerAudioContext=e.createInnerAudioContext(),this.innerAudioContext.autoplay=!0,this.innerAudioContext.src=this.recordPath,this.innerAudioContext.title="音频",this.onPlay(),this.onPause(),this.onCanplay(),this.onEnded(),this.onSeeking(),this.onSeeked(),this.TimeUpdate()},changePlayState:function(){0==this.audioPlay?this.innerAudioContext.play():this.innerAudioContext.pause()},sliderChangeComplate:function(t){var n=this,i=1e3*t.detail.value;this.dialogList=[],e.request({url:o.service.fastForward+"?corpusId="+this.luyinList[this.csdFileindex].id+"&bg="+i,method:"GET",header:{"content-type":"application/json","Access-Token":e.getStorageSync("weapp_session_login_data").token},success:function(e){n.textindex=e.data.data.index,n.toptextindex=e.data.data.index,n.dialogList.push(n.newluyinList[e.data.data.index]);var i=n.formatTime(t.detail.value);n.currentTimeStr=i,n.innerAudioContext.seek(t.detail.value),n.innerAudioContext.play()}})},formatTime:function(e){e=e.toFixed(0);var t=e%60;t<10&&(t="0"+t);var n=Math.floor(e/60);return n<10&&(n="0"+n),n+":"+t},changeVoiceShow:function(){this.voiceShow=!this.voiceShow},voiceStart:function(){a.start({lang:"zh_CN"})},voiceEnd:function(){this.isRecording&&e.showLoading({title:"识别中"}),this.voiceShow=!1,this.isRecording=!1,a.stop()},initRecord:function(){var t=this;a.onStart=function(e){t.isRecording=!0},a.onRecognize=function(e){console.log("ing"+e.result)},a.onStop=function(n){e.hideLoading();var i=t.content+n.result;i.length>140&&(i=i.substring(0,140)),t.content=i,t.textareaFocus=!0},a.onError=function(t){e.hideLoading()}},changeContent:function(e){this.content=e.detail.value},answer:function(e,t){this.answerId=t,this.answerUserId=e,this.editing=!0,this.textareaFocus=!0},sendComment:function(){if(""!=this.content){var t={targetId:this.customerId,content:this.content,commentType:1};this.answerUserId&&(t.replyCommentId=this.answerId,t.replyUser=this.answerUserId);var n=this;i.getRequestPromise(o.service.saveCmment,t,!1).then((function(t){n.getCommentList(),e.showToast({title:"评论成功",icon:"none"}),n.textareaFocus=!1,n.content=""}))}else e.showToast({icon:"none",title:"请输入标题"})},uploadImage:function(){var t=this,n={targetId:t.id,commentType:1};this.answerUserId&&(n.replyCommentId=this.answerId,n.replyUser=this.answerUserId),e.chooseImage({count:1,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(i){e.showLoading({title:"上传中"}),e.uploadFile({url:o.service.saveCmmentUpload,filePath:i.tempFilePaths[0],name:"file",header:{"Access-Token":e.getStorageSync("weapp_session_login_data").token},formData:n,success:function(n){t.getCommentList(),e.hideLoading(),e.showToast({icon:"none",title:"上传成功"}),console.log(n.data)}})}})},changeLike:function(){e.showLoading({title:"请求中",mask:!0}),this.isLiked?this.cancelLike():this.saveLike()},saveLike:function(){var t=this;i.getRequestPromise(o.service.saveLike,{targetId:this.customerId},!1).then((function(n){t.isLiked=!0,e.hideLoading(),e.showToast({icon:"none",title:"点赞成功"})}))},cancelLike:function(){var t=this;i.getRequestPromise(o.service.cancelLike,{targetId:this.customerId},!1).then((function(n){t.isLiked=!1,e.hideLoading(),e.showToast({icon:"none",title:"取消点赞成功"})}))},gotoChat:function(){var e=this;this.scrollId=null,this.$nextTick((function(){e.scrollId="hash"}))},gotoTop:function(){var e=this;console.log("asdasdasd"),this.scrollId=null,this.$nextTick((function(){e.scrollId="top"}))},changeEditing:function(e){this.editing=e,this.answerId=null,this.answerUserId=null,this.textareaFocus=!1}}};t.default=r}).call(this,n(1)["default"])},334:function(e,t,n){"use strict";n.r(t);var i=n(335),o=n.n(i);for(var s in i)"default"!==s&&function(e){n.d(t,e,(function(){return i[e]}))}(s);t["default"]=o.a},335:function(e,t,n){}},[[328,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/learning/Thefulltext/index2.js.map