This commit is contained in:
shengchanzhe 2023-10-15 16:05:15 +08:00
parent 1df3187214
commit 9aec1b9871
8 changed files with 25 additions and 23 deletions

View File

@ -9,7 +9,7 @@
<style scoped> <style scoped>
.box { .box {
width: 24em; width: 32em;
height: 100%; height: 100%;
border-radius: 20px; border-radius: 20px;
/* background-color: rgba(97, 161, 140, 0.3); */ /* background-color: rgba(97, 161, 140, 0.3); */

View File

@ -28,8 +28,8 @@
bottom: -2em; bottom: -2em;
} }
.dots { .dots {
width: 20em; width: 28em;
height: 20em; height: 28em;
display: grid; display: grid;
grid-template-rows: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
@ -38,8 +38,8 @@
} }
.dots > div { .dots > div {
width: 4em; width: 6em;
height: 4em; height: 6em;
background-color: #7fe7c4; background-color: #7fe7c4;
border-radius: 50%; border-radius: 50%;
animation: fade 1.5s alternate ease-in-out infinite; animation: fade 1.5s alternate ease-in-out infinite;

View File

@ -18,8 +18,8 @@
bottom: -2em; bottom: -2em;
} }
.div { .div {
width: 20em; width: 28em;
height: 20em; height: 28em;
border: 3em solid transparent; border: 3em solid transparent;
border-top-color: #7fe7c4; border-top-color: #7fe7c4;
border-bottom-color: #7fe7c4; border-bottom-color: #7fe7c4;

View File

@ -27,9 +27,9 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 20em; width: 28em;
height: 20em; height: 28em;
transform: scale(5); transform: scale(7);
} }
.loader { .loader {
position: relative; position: relative;

View File

@ -20,9 +20,9 @@
.div { .div {
display: flex; display: flex;
width: 20em; width: 28em;
height: 20em; height: 28em;
border: 1em solid transparent; border: 2em solid transparent;
border-top-color: #7fe7c4; border-top-color: #7fe7c4;
border-bottom-color: #7fe7c4; border-bottom-color: #7fe7c4;
border-radius: 50%; border-radius: 50%;
@ -33,9 +33,9 @@
content: ''; content: '';
display: block; display: block;
margin: auto; margin: auto;
width: 10em; width: 13em;
height: 10em; height: 13em;
border: 1em solid #7fe7c4; border: 2em solid #7fe7c4;
border-radius: 50%; border-radius: 50%;
animation: pulse 1s alternate ease-in-out infinite; animation: pulse 1s alternate ease-in-out infinite;
} }

View File

@ -42,19 +42,19 @@ setInterval(() => {
text-align: center; text-align: center;
position: absolute; position: absolute;
left: 0; left: 0;
bottom: -6em; bottom: -8.5em;
} }
.div { .div {
display: flex; display: flex;
flex-flow: row nowrap; flex-flow: row nowrap;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
width: 20em; width: 28em;
} }
span { span {
width: 3em; width: 5em;
height: 6em; height: 9em;
background-color: #7fe7c4; background-color: #7fe7c4;
} }

View File

@ -170,7 +170,7 @@ const stopPlay = () => {
item.pause() item.pause()
item.currentTime = 0 item.currentTime = 0
}) })
audioElements.length = 0 // audioElements.length = 0
} }
onUpdated(() => { onUpdated(() => {
@ -180,7 +180,7 @@ onUpdated(() => {
} }
}) })
console.log('组件渲染 ', props.text, props.tts) // console.log(' ', props.text, props.tts)
const playStatus = ref('end') const playStatus = ref('end')
let playing = 0 let playing = 0

View File

@ -120,7 +120,9 @@ const reOrder = () => {
reRecordXunfei() reRecordXunfei()
prompt.value = '' prompt.value = ''
recordFalg.value = 1 recordFalg.value = 1
setTimeout(() => {
nowStatus.value = 'record' nowStatus.value = 'record'
}, 1600)
} }
else { else {
console.log('无效指令') console.log('无效指令')