This commit is contained in:
yanran200730
2022-06-10 16:12:44 +08:00
parent deecff9904
commit b1ff429c65
2 changed files with 23 additions and 10 deletions

View File

@@ -42,12 +42,12 @@ export default {
path: './addPlay', path: './addPlay',
bgClass: 'bg-67A3F4' bgClass: 'bg-67A3F4'
}, },
{ // {
title: '实时喊话', // title: '实时喊话',
text: '实时在线喊话,远程广播通知', // text: '实时在线喊话,远程广播通知',
imgUrl: require('./img/bigHorn-icon22@2x.png'), // imgUrl: require('./img/bigHorn-icon22@2x.png'),
bgClass: 'bg-4ED5BB' // bgClass: 'bg-4ED5BB'
}, // },
{ {
title: '音频录制', title: '音频录制',
text: '音频文件的录制', text: '音频文件的录制',

View File

@@ -1,6 +1,6 @@
<template> <template>
<div class="LiveBroadcast" @touchend="onTouchend" @touchmove="onTouchmove"> <div class="LiveBroadcast" @touchend="onTouchend" @touchmove="onTouchmove">
<div class="top"> <div class="top" @click="toChoose" hover-class="bg-hover">
<h2>请选择设备</h2> <h2>请选择设备</h2>
<image src="./img/right.png" /> <image src="./img/right.png" />
</div> </div>
@@ -76,7 +76,7 @@
y: 0, y: 0,
w: 0, w: 0,
h: 0, h: 0,
isShowRecord: true, isShowRecord: false,
close: require('./img/close.png'), close: require('./img/close.png'),
closeW: require('./img/close-w.png'), closeW: require('./img/close-w.png'),
isShow: false, isShow: false,
@@ -87,7 +87,8 @@
blobFile: null, blobFile: null,
counterDownTime: 0, counterDownTime: 0,
time: '00:00:00', time: '00:00:00',
timingTimeout: null timingTimeout: null,
equipmentList: []
} }
}, },
@@ -96,7 +97,6 @@
}, },
mounted () { mounted () {
const close = document.querySelector('.close') const close = document.querySelector('.close')
this.x = close.offsetLeft this.x = close.offsetLeft
this.y = close.offsetTop this.y = close.offsetTop
@@ -104,6 +104,13 @@
this.h = close.clientHeight this.h = close.clientHeight
}, },
onLoad () {
uni.$on('chooseEquipment', e => {
console.log(e)
this.equipmentList = e.equipmentList
})
},
methods: { methods: {
onLongtap () { onLongtap () {
this.isImpact = false this.isImpact = false
@@ -112,6 +119,12 @@
this.record() this.record()
}, },
toChoose () {
uni.navigateTo({
url: './selectEquipment'
})
},
record () { record () {
this.duration = 0 this.duration = 0
this.recorder = Recorder({ this.recorder = Recorder({