Commit 3b9fa85b by 李伟康

提交

1 parent 69702b55

2.41 MB | W: | H:

2.45 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -346,7 +346,7 @@ export default {
flex-shrink: 0;
background-image: url('@/assets/images/home/left-bg.png');
background-size: 100% 100%;
z-index: 999;
z-index: 1;
.left-tabs {
width: 100%;
height: toRpx(1080);
......
<template>
<view class="view">
<view class="classify-wrap">
<template v-for="(item,index) in qualityData">
<view
:class="['classify-item flex',{active: index == activeIndex}]"
:key="index"
@click="activeIndex = index"
>
<view class="title">{{item.tagGroupName}}</view>
<view class="score">{{item.formatScore}}</view>
</view>
</template>
</view>
<scroll-view
class="scroll-view"
enhanced
scroll-y
scroll-with-animation
:scroll-into-view="activeId"
>
<template v-if="qualityData[activeIndex]">
<view class="quality-block">
<view class="title flex">
{{qualityData[activeIndex].tagGroupName}}
<view :class="['matched-btn flex', qualityData[activeIndex].matchedClass]">{{qualityData[activeIndex].matchedText}}</view>
<template v-if="qualityData.length">
<view class="classify-wrap">
<template v-for="(item,index) in qualityData">
<view
:class="['classify-item flex',{active: index == activeIndex}]"
:key="index"
@click="activeIndex = index"
>
<view class="title">{{item.tagGroupName}}</view>
<view class="score">{{item.formatScore}}</view>
</view>
<template v-for="(item,index) in qualityData[activeIndex].conversationDetailDTOList">
<block :key="index">
<view
v-if="item.text_id"
:id="item.text_id"
:class="['quality-item flex',{active:item.text_id == activeId}]"
@click="seekPlay(item)"
>
<view class="avatar-box">
<view :class="['sprite-icon',`icon-role-${item.role}`]"></view>
<view class="time">{{item.time}}</view>
</template>
</view>
<scroll-view
class="scroll-view"
enhanced
scroll-y
scroll-with-animation
:scroll-into-view="activeId"
>
<template v-if="qualityData[activeIndex]">
<view class="quality-block">
<view class="title flex">
{{qualityData[activeIndex].tagGroupName}}
<view :class="['matched-btn flex', qualityData[activeIndex].matchedClass]">{{qualityData[activeIndex].matchedText}}</view>
</view>
<template v-for="(item,index) in qualityData[activeIndex].conversationDetailDTOList">
<block :key="index">
<view
v-if="item.text_id"
:id="item.text_id"
:class="['quality-item flex',{active:item.text_id == activeId}]"
@click="seekPlay(item)"
>
<view class="avatar-box">
<view :class="['sprite-icon',`icon-role-${item.role}`]"></view>
<view class="time">{{item.time}}</view>
</view>
<view class="text flex">{{item.content}}</view>
</view>
<view class="text flex">{{item.content}}</view>
</view>
<template v-if="item.scriptRec">
<view class="script-rec">
<view class="suggestions-box">
<view class="suggestions-title">
<view class="sprite-icon icon-suggestions-icon"></view>
话术推荐
</view>
<view class="text">
<rich-text :nodes="item.scriptRec"></rich-text>
<template v-if="item.scriptRec">
<view class="script-rec">
<view class="suggestions-box">
<view class="suggestions-title">
<view class="sprite-icon icon-suggestions-icon"></view>
话术推荐
</view>
<view class="text">
<rich-text :nodes="item.scriptRec"></rich-text>
</view>
</view>
</view>
</view>
</template>
</block>
</template>
</view>
</template>
</scroll-view>
</template>
</block>
</template>
</view>
</template>
</scroll-view>
</template>
<template v-else>
<view class="nothing flex">
<view class="sprite-icon icon-quality-no-data"></view>
分析中,稍等...
</view>
</template>
</view>
</template>
......@@ -279,5 +287,15 @@ export default {
}
}
}
.nothing {
width: 100%;
height: 100%;
flex-direction: column;
justify-content: center;
color: #808291;
font-size: 28rpx;
background: #fff;
}
}
</style>
\ No newline at end of file
......@@ -25,11 +25,11 @@
<view class="tips flex">
<view :class="['tips-text',{deal:pageData.receptionStatus == 1}]">
{{
{ 1: '成交',0: '战败'}[pageData.receptionStatus]
{ 1: '成交',0: '未成交'}[pageData.receptionStatus]
}}</view>
<view
class="score-box"
v-if="pageData.score"
v-if="pageData.score != null"
>
{{pageData.score}}<view class="unit">分</view>
</view>
......@@ -53,13 +53,15 @@
class="sprite-icon icon-reception-share"
@click="share"
></view>
<view
class="play-box flex"
@click="onHandle"
>
<view :class="['sprite-icon', `icon-reception-${status=='pause'||status=='ending' ? 'play' :'pause'}`]"></view>
{{currentTime}}
</view>
<template v-if="showPlayControl">
<view
class="play-box flex"
@click="onHandle"
>
<view :class="['sprite-icon', `icon-reception-${status=='pause'||status=='ending' ? 'play' :'pause'}`]"></view>
{{currentTime}}
</view>
</template>
</view>
<view class="component-box">
<dialogue
......@@ -88,8 +90,16 @@
</view>
</view>
<view class="reception-right-box">
<tags :batchId="pageData.batchId" />
<quality-table :qualityData="qualityData" />
<template v-if="qualityData.length">
<tags :batchId="pageData.batchId" />
<quality-table :qualityData="qualityData" />
</template>
<template v-else>
<view class="nothing flex">
<view class="sprite-icon icon-quality-no-data"></view>
分析中,稍等...
</view>
</template>
</view>
</view>
</template>
......@@ -130,7 +140,8 @@ export default {
qualityAudio: {},
currentTime: '00:00',
status: 'pause',
isOperate: true
isOperate: true,
showPlayControl: false
}
},
onLoad (options) {
......@@ -174,12 +185,17 @@ export default {
const {
tabId
} = this
if (tabId == 1) this.dialogueRef.isPlayIng = false
// if (tabId == 2) this.qualityRef.clearData()
this.dialogueRef.isPlayIng = false
this.qualityAudio.pause()
},
//播放
onPlay () {
if (!this.showPlayControl) {
return uni.showToast({
title: '音频暂不能播放,稍等...',
icon: 'none'
})
}
const {
paused
} = this.qualityAudio
......@@ -197,6 +213,9 @@ export default {
this.qualityAudio.onPlay(() => {
this.status = 'play'
})
this.qualityAudio.onCanplay(() => {
this.showPlayControl = true
})
this.qualityAudio.onTimeUpdate(this.onTimeUpdate)
this.qualityAudio.onEnded(() => {
this.status = 'ending'
......@@ -211,8 +230,8 @@ export default {
} = this
this.currentTime = this.formatTime(this.qualityAudio.currentTime)
if (tabId == 1) this.dialogueRef?.onTimeUpdate()
if (tabId == 2) this.qualityRef?.onTimeUpdate()
this.dialogueRef?.onTimeUpdate()
this.qualityRef?.onTimeUpdate()
},
formatTime (num) {
num = Math.round(num)
......@@ -517,6 +536,15 @@ export default {
box-sizing: border-box;
overflow-y: auto;
padding: 0 toRpx(40);
.nothing {
width: 100%;
height: 100%;
flex-direction: column;
justify-content: center;
color: #808291;
font-size: 28rpx;
background: #fff;
}
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!