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">
<template v-if="qualityData.length">
<view class="classify-wrap">
<template v-for="(item,index) in qualityData">
<view
......@@ -58,6 +59,13 @@
</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,6 +53,7 @@
class="sprite-icon icon-reception-share"
@click="share"
></view>
<template v-if="showPlayControl">
<view
class="play-box flex"
@click="onHandle"
......@@ -60,6 +61,7 @@
<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">
<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!