From 51f920f240c9fd9c8539353c2f4a83a1f0225d25 Mon Sep 17 00:00:00 2001 From: jyt <1592211625@qq.com> Date: Sat, 7 May 2022 01:08:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9D=E7=A6=81=E5=A3=B0=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/center/prohibited/details.vue | 44 +++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 3 deletions(-) diff --git a/pages/center/prohibited/details.vue b/pages/center/prohibited/details.vue index f9c0e0d..52638e3 100644 --- a/pages/center/prohibited/details.vue +++ b/pages/center/prohibited/details.vue @@ -49,7 +49,9 @@ - {{ item.speaker | toCapital }} + + {{ item.username }} + {{ item.speaker | toCapital }} {{conversionTiame(item.bg/1000)}} @@ -101,7 +103,9 @@ - {{ item.speaker | toCapital }} + + {{ item.username }} + {{ item.speaker | toCapital }} {{conversionTiame(item.bg/1000)}} @@ -252,6 +256,7 @@ findTabooWordsList: [], // 违禁词列表 nextPageObj: JSON.parse(uni.getStorageSync('nextPageObj')), // 当前页面筛选内容 isMerge: 0, // 默认合并 + isSw:false, } }, computed: { @@ -599,6 +604,14 @@ 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; @@ -679,9 +692,27 @@ 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 + } + 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', @@ -716,6 +747,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() @@ -1212,6 +1249,7 @@ .content { margin-left: 0; margin-right: 30upx; + margin: 0 30upx; } .play {