|
|
@@ -39,7 +39,13 @@ |
|
|
|
:class="{active: item.bg < playNow && item.ed > playNow && i==0}" |
|
|
|
v-for="(item,index) in dialog.message" :key="index" :data-speaker="item.speaker"> |
|
|
|
<view class="avatar"> |
|
|
|
<view v-if="item.speaker == 1" style="color: #60CBEC;"> |
|
|
|
<view :style="[SPEAKERSTYLE(item.speaker)]"> |
|
|
|
<!-- <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image> --> |
|
|
|
<text v-if="item.isShow == 0">顾</text> |
|
|
|
<text v-else>{{ item.speaker | toCapital }}</text> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- <view v-if="item.speaker == 1" style="color: #60CBEC;"> |
|
|
|
<image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image> |
|
|
|
<text v-else>A</text> |
|
|
|
</view> |
|
|
@@ -103,12 +109,16 @@ |
|
|
|
<view v-if="item.speaker == 16" style="color: #9F61C8;"> |
|
|
|
<image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image> |
|
|
|
<text v-else>P</text> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="contentInfo"> |
|
|
|
<view class="info"> |
|
|
|
<text class="AudioUserName" v-if="item.isShow == 0">{{ item.username }}</text> |
|
|
|
<text class="AudioUserName" v-else>{{ item.speaker | toCapital }}</text> |
|
|
|
<text>{{conversionTiame(item.bg/1000)}}</text> |
|
|
|
</view> |
|
|
|
<view class="content"> |
|
|
|
<view @longpress="changanxiaoguo(item,index,i)" v-html="item.onebest"></view> |
|
|
|
<view class="tankuangcss" v-if="item.isshow"> |
|
|
@@ -126,6 +136,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</scroll-view> |
|
|
@@ -463,9 +474,27 @@ |
|
|
|
|
|
|
|
textItself:'', |
|
|
|
argtextindex1:0, |
|
|
|
argtextindex2:0 |
|
|
|
argtextindex2:0, |
|
|
|
isSw:false, |
|
|
|
}; |
|
|
|
}, |
|
|
|
filters: { |
|
|
|
// ASCII码转换 大写字母A是65 演讲人是从1开始所以num+64 |
|
|
|
toCapital(num) { |
|
|
|
let str = '' |
|
|
|
if (num) { |
|
|
|
str = String.fromCharCode(num + 64) |
|
|
|
} |
|
|
|
return str |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
conversionTiame() { |
|
|
|
return (e) => { |
|
|
|
return this.getTime(e); |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.intention=false; |
|
|
|
this.kehuyixiangcenterindex=0; |
|
|
@@ -520,6 +549,39 @@ |
|
|
|
this.innerAudioContext.destroy(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
SPEAKERSTYLE(index) { |
|
|
|
let obj = { |
|
|
|
color: '', |
|
|
|
} |
|
|
|
switch (index) { |
|
|
|
case 1: |
|
|
|
obj.color = '#60CBEC'; |
|
|
|
break; |
|
|
|
case 2: |
|
|
|
obj.color = '#EC8B47'; |
|
|
|
break; |
|
|
|
case 3: |
|
|
|
obj.color = '#4F861E'; |
|
|
|
break; |
|
|
|
case 5: |
|
|
|
obj.color = '#4980C8'; |
|
|
|
break; |
|
|
|
case 6: |
|
|
|
obj.color = '#60CBEC'; |
|
|
|
break; |
|
|
|
case 7: |
|
|
|
obj.color = '#EC8B47'; |
|
|
|
break; |
|
|
|
case 8: |
|
|
|
obj.color = '#4F861E'; |
|
|
|
break; |
|
|
|
default: |
|
|
|
obj.color = '#9F61C8'; |
|
|
|
break; |
|
|
|
} |
|
|
|
return obj |
|
|
|
}, |
|
|
|
|
|
|
|
//关键词点击 |
|
|
|
tapbadge(item){ |
|
|
|
//进搜索页面 |
|
|
@@ -922,11 +984,24 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.tablist[data.data.data.speaker].name=this.tablist[data.data.data.speaker].name+"顾问"; |
|
|
|
// this.tablist[data.data.data.speaker].name=this.tablist[data.data.data.speaker].name+"顾问"; |
|
|
|
if(data.data.data.viewNameFlag == 1){ |
|
|
|
this.tablist[data.data.data.speaker].name = this.tablist[data.data.data.speaker].name; |
|
|
|
}else{ |
|
|
|
this.tablist[data.data.data.speaker].name = this.tablist[data.data.data.speaker].name + "顾问"; |
|
|
|
} |
|
|
|
this.roleindexbiaoji=data.data.data.speaker-1; |
|
|
|
this.dshfkjsdkksodofydwfkhwdfkjh=data.data.data.speaker-1; |
|
|
|
this.speaker=data.data.data.speaker; |
|
|
|
|
|
|
|
if(data.data.data.viewNameFlag == 1){ |
|
|
|
let p = [{name:'顾问'}] |
|
|
|
this.tablist = [...this.tablist,...p] |
|
|
|
this.isSw = true |
|
|
|
}else{ |
|
|
|
this.isSw = false |
|
|
|
} |
|
|
|
|
|
|
|
//上拉标记点 |
|
|
|
this.textindex=data.data.data.index; |
|
|
|
//下拉标记点 |
|
|
@@ -1274,8 +1349,24 @@ |
|
|
|
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, //仅为示例,并非真实接口地址。 |
|
|
|
url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id+"&bg="+bgcd+"&speaker="+ tempRoleIndex + "&voFlag=" + voFlagValue, //仅为示例,并非真实接口地址。 |
|
|
|
method: "GET", |
|
|
|
header: { |
|
|
|
'content-type': 'application/json', |
|
|
@@ -1356,10 +1447,20 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.tablist[data.data.data.speaker].name=this.tablist[data.data.data.speaker].name+"顾问"; |
|
|
|
// this.tablist[data.data.data.speaker].name=this.tablist[data.data.data.speaker].name+"顾问"; |
|
|
|
if(data.data.data.viewNameFlag == 1){ |
|
|
|
this.tablist[data.data.data.speaker].name = this.tablist[data.data.data.speaker].name; |
|
|
|
}else{ |
|
|
|
this.tablist[data.data.data.speaker].name = this.tablist[data.data.data.speaker].name + "顾问"; |
|
|
|
} |
|
|
|
this.roleindexbiaoji=data.data.data.speaker-1; |
|
|
|
this.dshfkjsdkksodofydwfkhwdfkjh=data.data.data.speaker-1; |
|
|
|
this.speaker=data.data.data.speaker; |
|
|
|
|
|
|
|
if(data.data.data.viewNameFlag == 1){ |
|
|
|
let p = [{name:'顾问'}] |
|
|
|
this.tablist = [...this.tablist,...p] |
|
|
|
} |
|
|
|
//上拉标记点 |
|
|
|
this.textindex=data.data.data.index; |
|
|
|
//下拉标记点 |
|
|
@@ -2042,6 +2143,71 @@ |
|
|
|
color: #999999; |
|
|
|
} |
|
|
|
} |
|
|
|
.scroll-Y .text[data-speaker="2"], |
|
|
|
.scroll-Y .text[data-speaker="4"], |
|
|
|
.scroll-Y .text[data-speaker="6"] { |
|
|
|
.contentInfo { |
|
|
|
.info { |
|
|
|
.AudioUserName { |
|
|
|
margin-left: 10rpx; |
|
|
|
} |
|
|
|
|
|
|
|
display: flex; |
|
|
|
flex-direction: row-reverse; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.scroll-Y .text { |
|
|
|
.contentInfo { |
|
|
|
.info { |
|
|
|
.AudioUserName { |
|
|
|
margin-right: 10rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.scroll-Y .text .contentInfo .info { |
|
|
|
color: #ccc; |
|
|
|
font-size: 18rpx; |
|
|
|
font-size: 30rpx; |
|
|
|
padding: 0 28rpx; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.scroll-Y .text .contentInfo .content { |
|
|
|
margin-left: 30upx; |
|
|
|
line-height: 60rpx; |
|
|
|
text-align: left; |
|
|
|
padding: 0 5px; |
|
|
|
background: #2BC805; |
|
|
|
border-radius: 8upx; |
|
|
|
max-width: 442rpx; |
|
|
|
color: #FFFFFF; |
|
|
|
position: relative; |
|
|
|
|
|
|
|
.tankuangcss { |
|
|
|
position: absolute; |
|
|
|
top: -140rpx; |
|
|
|
left: -120rpx; |
|
|
|
width: 308rpx; |
|
|
|
height: 130rpx; |
|
|
|
background-color: #333333; |
|
|
|
font-size: 24rpx; |
|
|
|
color: #FFFFFF; |
|
|
|
padding-top: 4rpx; |
|
|
|
padding-bottom: 4rpx; |
|
|
|
display: flex; |
|
|
|
flex-wrap: wrap; |
|
|
|
border-radius: 15rpx; |
|
|
|
z-index: 1000; |
|
|
|
} |
|
|
|
|
|
|
|
.bottoms { |
|
|
|
top: unset; |
|
|
|
bottom: -140rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.scroll-Y .text .avatar { |
|
|
|
width: 64upx; |
|
|
|
height: 64upx; |
|
|
|