|
@@ -113,7 +113,6 @@
|
|
|
moodSize({
|
|
|
type: type.value
|
|
|
}).then(res => {
|
|
|
- console.log('res', res);
|
|
|
if (res.code == 0) {
|
|
|
bubbles.value = Array.from({
|
|
|
length: Number(res.data)
|
|
@@ -135,23 +134,19 @@
|
|
|
moodLess({
|
|
|
type: type.value
|
|
|
}).then(res => {
|
|
|
- console.log('res', res);
|
|
|
if (res.code == 0) {
|
|
|
|
|
|
- // if (isPlaying.value) {
|
|
|
- // console.log('1231231231241242314');
|
|
|
- // audioContext.value.stop();
|
|
|
- // } else {
|
|
|
- // console.log('bibo');
|
|
|
- // audioContext.value.play(); // 开始播放
|
|
|
- // }
|
|
|
+ if (isPlaying.value) {
|
|
|
+ audioContext.value.stop();
|
|
|
+ } else {
|
|
|
+ audioContext.value.play(); // 开始播放
|
|
|
+ }
|
|
|
bubbles.value[index].disabled = true;
|
|
|
bubbles.value[index].iconType = "polie-qipao-mask";
|
|
|
setTimeout(() => {
|
|
|
bubbles.value[index] = {};
|
|
|
- }, 1000)
|
|
|
+ }, 200)
|
|
|
|
|
|
- console.log('bubbles', bubbles.value);
|
|
|
// setTimeout(() => {
|
|
|
// bubbles.value.splice(index, 1)
|
|
|
// }, 1000)
|