diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index e5dd447..3faa361 100644 --- a/pages/mine/details2.vue +++ b/pages/mine/details2.vue @@ -603,6 +603,7 @@ fdFlag1:null, fdFlag2:null, tap: true, + isSw:false, }; }, computed: { @@ -1114,14 +1115,31 @@ this.fenjiaoseunfo() this.$forceUpdate() }, - //分角色标记刷新 + //------------------------------------分角色标记刷新 fenjiaoseunfo() { var bgcd = this.sliderValue * 1000; this.newluyinList = []; this.dialogList = []; + let voFlagValue; + if(this.roleindex==0){ + voFlagValue = 0 + }else{ + voFlagValue = 1 + } + let tempRoleIndex; + if(this.isSw){ + if(this.roleindex==this.tablist.length-1){ + tempRoleIndex = 0 + }else{ + tempRoleIndex = this.roleindex + } + }else{ + tempRoleIndex = this.roleindex + } + console.log() uni.request({ url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id + - "&bg=" + bgcd + "&speaker=" + this.roleindex, //仅为示例,并非真实接口地址。 + "&bg=" + bgcd + "&speaker=" + tempRoleIndex + "&voFlag=" + voFlagValue, //仅为示例,并非真实接口地址。 method: "GET", header: { 'content-type': 'application/json', @@ -1151,6 +1169,12 @@ this.roleindexbiaoji = data.data.data.speaker - 1; this.dshfkjsdkksodofydwfkhwdfkjh = data.data.data.speaker - 1; } + + if(data.data.data.viewNameFlag == 1){ + let p = [{name:'顾问'}] + this.tablist = [...this.tablist,...p] + } + if (this.roleindex > this.tablist.length - 1) { this.roleindex = this.tablist.length - 1 this.fenjiaoseunfo() @@ -1733,13 +1757,13 @@ } }, - // 获取转义后的对话结果 + //--------------------------------- 获取转义后的对话结果 getCorpusAnalysis(info) { this.dialogList = []; this.newluyinList = [] uni.request({ url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id + - "&bg=" + info.bg + "&speaker=" + this.roleindex, //仅为示例,并非真实接口地址。 + "&bg=" + info.bg + "&speaker=" + this.roleindex+'&voFlag=0', //仅为示例,并非真实接口地址。 method: "GET", header: { 'content-type': 'application/json', @@ -1770,7 +1794,15 @@ this.roleindexbiaoji = data.data.data.speaker - 1; this.dshfkjsdkksodofydwfkhwdfkjh = data.data.data.speaker - 1; } - + + if(data.data.data.viewNameFlag == 1){ + let p = [{name:'顾问'}] + this.tablist = [...this.tablist,...p] + this.isSw = true + }else{ + this.isSw = false + } + this.speaker = data.data.data.speaker; //上拉标记点 this.textindex = data.data.data.index;