|
@@ -135,7 +135,8 @@
|
|
|
>
|
|
|
<view class="audio-popup-box">
|
|
|
<view class="title">{{currentAudioMsg.title}}</view>
|
|
|
- <view class="flex item " v-for="item in currentAudioMsg.list" :key="item.voiceUrl" @click="handleAudioChange(item)">
|
|
|
+ <view class="list">
|
|
|
+ <view class="flex item" v-for="item in currentAudioMsg.list" :key="item.voiceUrl" @click="handleAudioChange(item)">
|
|
|
<view>
|
|
|
<view :style="{color:item.voiceUrl==currentAudioMsg.audioCurrentUrl?'#D5AD79':''}">{{item.voiceName}}</view>
|
|
|
<view style="font-size:12px;color:#999">{{item.voicePlaySeconds|formatVoiceTime}}</view>
|
|
@@ -144,6 +145,7 @@
|
|
|
<image v-else-if="item.voiceUrl==currentAudioMsg.audioCurrentUrl&&!currentAudioMsg.play" src="../../static/audio-pause-3.png" mode="scaleToFill"/>
|
|
|
<image v-else src="../../static/audio-pause-2.png" mode="scaleToFill"/> -->
|
|
|
</view>
|
|
|
+ </view>
|
|
|
<view class="flex box">
|
|
|
<text>{{currentAudioMsg.audioCurrentTime|formatVoiceTime}}</text>
|
|
|
<slider
|
|
@@ -324,6 +326,7 @@ export default {
|
|
|
|
|
|
// 点击列表中播放音频
|
|
|
async handleGetAudio(item){
|
|
|
+ if(!(item.firstActivityTypeId===1&&item.activityState===3&&item.hasPlayBack)) return
|
|
|
// 获取音频
|
|
|
if(this.currentAudioMsg.activityId!=item.activityId){
|
|
|
const res=await apiActivityAudios({activity_id: Number(item.activityId)})
|
|
@@ -333,12 +336,34 @@ export default {
|
|
|
this.currentAudioMsg.list=res.data
|
|
|
this.currentAudioMsg.title=item.activityTypeName
|
|
|
this.handlePlayAudio(res.data[0])
|
|
|
+ this.currentAudioMsg.show=!this.currentAudioMsg.show
|
|
|
}else{
|
|
|
uni.showToast({
|
|
|
title:"无音频数据",
|
|
|
icon:"none"
|
|
|
})
|
|
|
}
|
|
|
+ }else if(res.code===403){
|
|
|
+ if(res.data.type=='contact'){
|
|
|
+ if(!res.data.customer_info.has_apply){
|
|
|
+ if(res.data.customer_info.status=='冻结'||(res.data.customer_info.status=='试用'&&res.data.customer_info.is_suspend==1)){
|
|
|
+ apiApplyPermission({
|
|
|
+ company_name:res.data.customer_info.company_name,
|
|
|
+ real_name:res.data.customer_info.name,
|
|
|
+ }).then(res=>{
|
|
|
+ if(res.code===200){
|
|
|
+ console.log('主动申请成功');
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.pupData.content=`<p>您暂无权限参加此活动,若想参加请联系对口销售--${res.data.name}:${res.data.mobile}</p>`
|
|
|
+ this.pupData.mobile=res.data.mobile
|
|
|
+ }else if(res.data.type=='apply'){
|
|
|
+ this.pupData.content=`<p>您暂无权限参加此活动,若想参加可以申请开通哦</p>`
|
|
|
+ }
|
|
|
+ this.pupData.show=true
|
|
|
+ this.pupData={...this.pupData,...res.data}
|
|
|
}
|
|
|
}else{
|
|
|
if(this.currentAudioMsg.play){
|
|
@@ -346,9 +371,10 @@ export default {
|
|
|
}else{
|
|
|
this.globalBgMusic.play()
|
|
|
}
|
|
|
+ this.currentAudioMsg.show=!this.currentAudioMsg.show
|
|
|
}
|
|
|
|
|
|
- this.currentAudioMsg.show=!this.currentAudioMsg.show
|
|
|
+
|
|
|
},
|
|
|
|
|
|
// 播放音频
|
|
@@ -467,7 +493,10 @@ export default {
|
|
|
userInfoRes=res.data
|
|
|
}
|
|
|
}
|
|
|
- if(['正式','试用','永续'].includes(userInfoRes.status)){
|
|
|
+ if(['正式','永续'].includes(userInfoRes.status)){
|
|
|
+ this.onlySeeAuth=true
|
|
|
+ }
|
|
|
+ if(userInfoRes.status=='试用'&&userInfoRes.is_suspend==0){
|
|
|
this.onlySeeAuth=true
|
|
|
}
|
|
|
this.getList()
|
|
@@ -772,6 +801,10 @@ export default {
|
|
|
font-weight: bold;
|
|
|
padding: 40rpx 34rpx;
|
|
|
}
|
|
|
+ .list{
|
|
|
+ max-height: 50vh;
|
|
|
+ overflow-y: auto;
|
|
|
+ }
|
|
|
.item{
|
|
|
padding: 34rpx 52rpx 34rpx 34rpx;
|
|
|
border-bottom: 1px solid $global-border-color;
|
|
@@ -864,7 +897,8 @@ export default {
|
|
|
.text{
|
|
|
color: $global-text-color-main;
|
|
|
font-size: $global-font-size-sm;
|
|
|
- width: 120rpx;
|
|
|
+ min-width: 120rpx;
|
|
|
+ white-space: nowrap;
|
|
|
}
|
|
|
}
|
|
|
}
|