|
@@ -1,11 +1,7 @@
|
|
|
<template>
|
|
|
<div :class="['voicefull', bgIndex === 0 ? 'bg1' : 'bg2']">
|
|
|
- <div
|
|
|
- class="voicefull-top"
|
|
|
- @mouseover="setTopShow(true)"
|
|
|
- @mouseleave="setTopShow(false)"
|
|
|
- >
|
|
|
- <div :class="[isTopShow ? 'voicefull-top-show' : 'voicefull-top-hidden']">
|
|
|
+ <div class="voicefull-top">
|
|
|
+ <div :class="['voicefull-top-show']">
|
|
|
<div class="top-left">
|
|
|
<div :class="['select-bg', bgIndex === 1 ? 'select-bg-blue' : '']">
|
|
|
<div :class="['bg-green-box', bgIndex === 1 ? 'active' : '']">
|
|
@@ -69,18 +65,6 @@
|
|
|
/>
|
|
|
</template>
|
|
|
</div>
|
|
|
- <div
|
|
|
- :class="['op-btn', bgIndex === 1 ? 'op-btn-green' : '']"
|
|
|
- @click="changeStatus('isKeyboard')"
|
|
|
- >
|
|
|
- <span
|
|
|
- :class="[
|
|
|
- 'keyboard-icon',
|
|
|
- !isKeyboard ? 'disabled' : '',
|
|
|
- isKeyboard && bgIndex === 1 ? 'keyboard-icon-yellow' : ''
|
|
|
- ]"
|
|
|
- />
|
|
|
- </div>
|
|
|
</div>
|
|
|
<div class="top-middle">
|
|
|
<template v-if="mp3">
|
|
@@ -212,7 +196,7 @@
|
|
|
:class="[
|
|
|
'column-wrapper',
|
|
|
(i === 0 && curQue.voiceMatrix.firstLineHighlight) ||
|
|
|
- (j === row.length - 1 && curQue.voiceMatrix.lastColumnHighlight)
|
|
|
+ (j === row.length - 1 && curQue.voiceMatrix.lastColumnHighlight)
|
|
|
? `highlight-${themeColor}`
|
|
|
: ''
|
|
|
]"
|
|
@@ -225,15 +209,15 @@
|
|
|
:class="[
|
|
|
column.text.length === 0 ? 'space' : `column-${themeColor}`,
|
|
|
(selectCell.row === i && selectCell.column === j) ||
|
|
|
- (selectedLine.type === 'column' &&
|
|
|
- selectedLine.index === j) ||
|
|
|
- (selectedLine.type === 'row' && selectedLine.index === i)
|
|
|
+ (selectedLine.type === 'column' &&
|
|
|
+ selectedLine.index === j) ||
|
|
|
+ (selectedLine.type === 'row' && selectedLine.index === i)
|
|
|
? 'selected'
|
|
|
: '',
|
|
|
playing &&
|
|
|
- column.lrc_data.begin_time / 1000 <= curTime &&
|
|
|
- (curTime < column.lrc_data.end_time / 1000 ||
|
|
|
- column.lrc_data.end_time === -1)
|
|
|
+ column.lrc_data.begin_time / 1000 <= curTime &&
|
|
|
+ (curTime < column.lrc_data.end_time / 1000 ||
|
|
|
+ column.lrc_data.end_time === -1)
|
|
|
? 'playing'
|
|
|
: '',
|
|
|
column.isTitle ? 'title' : ''
|
|
@@ -260,15 +244,15 @@
|
|
|
:class="[
|
|
|
`sentence-${themeColor}`,
|
|
|
(selectCell.row === i && selectCell.column === j) ||
|
|
|
- (selectedLine.type === 'column' &&
|
|
|
- selectedLine.index === j) ||
|
|
|
- (selectedLine.type === 'row' && selectedLine.index === i)
|
|
|
+ (selectedLine.type === 'column' &&
|
|
|
+ selectedLine.index === j) ||
|
|
|
+ (selectedLine.type === 'row' && selectedLine.index === i)
|
|
|
? 'selected'
|
|
|
: '',
|
|
|
playing &&
|
|
|
- column.lrc_data.begin_time / 1000 <= curTime &&
|
|
|
- (curTime < column.lrc_data.end_time / 1000 ||
|
|
|
- column.lrc_data.end_time === -1)
|
|
|
+ column.lrc_data.begin_time / 1000 <= curTime &&
|
|
|
+ (curTime < column.lrc_data.end_time / 1000 ||
|
|
|
+ column.lrc_data.end_time === -1)
|
|
|
? 'playing'
|
|
|
: '',
|
|
|
column.isTitle ? 'title' : ''
|
|
@@ -342,15 +326,15 @@
|
|
|
:class="[
|
|
|
`pinyinEnglish-${themeColor}`,
|
|
|
(selectCell.row === i && selectCell.column === j) ||
|
|
|
- (selectedLine.type === 'column' &&
|
|
|
- selectedLine.index === j) ||
|
|
|
- (selectedLine.type === 'row' && selectedLine.index === i)
|
|
|
+ (selectedLine.type === 'column' &&
|
|
|
+ selectedLine.index === j) ||
|
|
|
+ (selectedLine.type === 'row' && selectedLine.index === i)
|
|
|
? 'selected'
|
|
|
: '',
|
|
|
playing &&
|
|
|
- column.lrc_data.begin_time / 1000 <= curTime &&
|
|
|
- (curTime < column.lrc_data.end_time / 1000 ||
|
|
|
- column.lrc_data.end_time === -1)
|
|
|
+ column.lrc_data.begin_time / 1000 <= curTime &&
|
|
|
+ (curTime < column.lrc_data.end_time / 1000 ||
|
|
|
+ column.lrc_data.end_time === -1)
|
|
|
? 'playing'
|
|
|
: '',
|
|
|
column.isTitle ? 'title' : ''
|
|
@@ -376,15 +360,15 @@
|
|
|
:class="[
|
|
|
`textBrackets-${themeColor}`,
|
|
|
(selectCell.row === i && selectCell.column === j) ||
|
|
|
- (selectedLine.type === 'column' &&
|
|
|
- selectedLine.index === j) ||
|
|
|
- (selectedLine.type === 'row' && selectedLine.index === i)
|
|
|
+ (selectedLine.type === 'column' &&
|
|
|
+ selectedLine.index === j) ||
|
|
|
+ (selectedLine.type === 'row' && selectedLine.index === i)
|
|
|
? 'selected'
|
|
|
: '',
|
|
|
playing &&
|
|
|
- column.lrc_data.begin_time / 1000 <= curTime &&
|
|
|
- (curTime < column.lrc_data.end_time / 1000 ||
|
|
|
- column.lrc_data.end_time === -1)
|
|
|
+ column.lrc_data.begin_time / 1000 <= curTime &&
|
|
|
+ (curTime < column.lrc_data.end_time / 1000 ||
|
|
|
+ column.lrc_data.end_time === -1)
|
|
|
? 'playing'
|
|
|
: '',
|
|
|
column.isTitle ? 'title' : ''
|
|
@@ -416,12 +400,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div
|
|
|
- class="voicefull-bottom"
|
|
|
- @mouseover="setBottomShow(true)"
|
|
|
- @mouseleave="setBottomShow(false)"
|
|
|
- >
|
|
|
- <div :class="['voicefull-bottom-show', isBottomShow ? '' : 'hidden']">
|
|
|
+ <div class="voicefull-bottom">
|
|
|
+ <div :class="['voicefull-bottom-show']">
|
|
|
<div class="bottom-left">
|
|
|
<soundrecorddiff
|
|
|
ref="Soundrecorddiff"
|
|
@@ -972,9 +952,13 @@ export default {
|
|
|
|
|
|
pauseAudio() {
|
|
|
let audio = document.getElementsByTagName("audio");
|
|
|
- if(audio&&audio.length>0&&window.location.href.indexOf('GCLS-Learn')==-1){
|
|
|
+ if (
|
|
|
+ audio &&
|
|
|
+ audio.length > 0 &&
|
|
|
+ window.location.href.indexOf("GCLS-Learn") == -1
|
|
|
+ ) {
|
|
|
audio.forEach(item => {
|
|
|
- item.pause();
|
|
|
+ item.pause();
|
|
|
});
|
|
|
}
|
|
|
},
|
|
@@ -1008,12 +992,14 @@ $dark-color: #ffc600;
|
|
|
$dark-color-play: #fff2c6;
|
|
|
|
|
|
.voicefull {
|
|
|
- width: 100%;
|
|
|
- height: 100vh;
|
|
|
+ width: 100vh;
|
|
|
+ height: 100vw;
|
|
|
overflow: hidden;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
-
|
|
|
+ transform: rotate(90deg);
|
|
|
+ transform-origin: 0% 0%;
|
|
|
+ margin-left: 100vw;
|
|
|
&.bg1 {
|
|
|
background: #fff;
|
|
|
color: #062211;
|
|
@@ -1091,21 +1077,21 @@ $dark-color-play: #fff2c6;
|
|
|
}
|
|
|
|
|
|
&-top {
|
|
|
- height: 136px;
|
|
|
+ height: 66px;
|
|
|
width: 100%;
|
|
|
- padding: 0 40px;
|
|
|
+ padding: 0 15px;
|
|
|
|
|
|
.voicefull-top-hidden {
|
|
|
width: 100%;
|
|
|
- height: 136px;
|
|
|
+ height: 66px;
|
|
|
visibility: hidden;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
- align-items: center;
|
|
|
+ align-items: end;
|
|
|
}
|
|
|
.voicefull-top-show {
|
|
|
width: 100%;
|
|
|
- height: 136px;
|
|
|
+ height: 66px;
|
|
|
visibility: visible;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
@@ -1120,14 +1106,14 @@ $dark-color-play: #fff2c6;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
- width: 96px;
|
|
|
- height: 56px;
|
|
|
+ width: 84px;
|
|
|
+ height: 48px;
|
|
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
|
border-radius: 40px;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
- margin-right: 32px;
|
|
|
+ margin-right: 15px;
|
|
|
|
|
|
&.select-bg-blue {
|
|
|
background: rgba(255, 255, 255, 0.1);
|
|
@@ -1172,8 +1158,8 @@ $dark-color-play: #fff2c6;
|
|
|
}
|
|
|
|
|
|
.set-fontSize {
|
|
|
- padding: 0 20px;
|
|
|
- height: 56px;
|
|
|
+ padding: 0 10px;
|
|
|
+ height: 48px;
|
|
|
background: #ffffff;
|
|
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
|
border-radius: 40px;
|
|
@@ -1260,8 +1246,8 @@ $dark-color-play: #fff2c6;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
.audio-box {
|
|
|
- width: 56px;
|
|
|
- height: 56px;
|
|
|
+ width: 48px;
|
|
|
+ height: 48px;
|
|
|
background: #ffffff;
|
|
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
|
border-radius: 40px;
|
|
@@ -1277,12 +1263,13 @@ $dark-color-play: #fff2c6;
|
|
|
}
|
|
|
|
|
|
.op-btn {
|
|
|
- width: 56px;
|
|
|
- height: 56px;
|
|
|
+ width: 48px;
|
|
|
+ height: 48px;
|
|
|
border-radius: 100%;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
+ flex-shrink: 0;
|
|
|
|
|
|
cursor: pointer;
|
|
|
margin-left: 32px;
|
|
@@ -1389,7 +1376,8 @@ $dark-color-play: #fff2c6;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- height: calc(100vh - 272px);
|
|
|
+ height: calc(100vw - 272px);
|
|
|
+ overflow: auto;
|
|
|
|
|
|
// 语音矩阵
|
|
|
|
|
@@ -1719,7 +1707,7 @@ $dark-color-play: #fff2c6;
|
|
|
}
|
|
|
|
|
|
&-bottom {
|
|
|
- height: 136px;
|
|
|
+ height: 66px;
|
|
|
width: 100%;
|
|
|
|
|
|
display: flex;
|
|
@@ -1728,11 +1716,11 @@ $dark-color-play: #fff2c6;
|
|
|
padding-right: 40px;
|
|
|
|
|
|
.voicefull-bottom-show {
|
|
|
- height: 136px;
|
|
|
+ height: 66px;
|
|
|
width: 100%;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
- align-items: center;
|
|
|
+ align-items: start;
|
|
|
visibility: visible;
|
|
|
|
|
|
&.hidden {
|