|
@@ -4,21 +4,17 @@
|
|
<div class="o_content">
|
|
<div class="o_content">
|
|
<div class="word_box">
|
|
<div class="word_box">
|
|
<div class="word_box2" v-if="cjson.type == 'word' || cjson.type == 'QA'">
|
|
<div class="word_box2" v-if="cjson.type == 'word' || cjson.type == 'QA'">
|
|
- <div class="word_content">
|
|
|
|
- {{ cjson.content }}
|
|
|
|
- </div>
|
|
|
|
- <img
|
|
|
|
- class="word_img"
|
|
|
|
- :src="cjson.img"
|
|
|
|
- alt=""
|
|
|
|
- v-if="cjson.img"
|
|
|
|
- @click="previewImg(cjson.img)"
|
|
|
|
- />
|
|
|
|
|
|
+ <div class="word_content" v-html="cjson.content"></div>
|
|
|
|
+ <img class="word_img" :src="cjson.img" alt="" v-if="cjson.img" @click="previewImg(cjson.img)" />
|
|
</div>
|
|
</div>
|
|
<div class="sentence_box" v-if="cjson.type == 'sentence'">
|
|
<div class="sentence_box" v-if="cjson.type == 'sentence'">
|
|
<div class="word_content" v-html="cjson.content">
|
|
<div class="word_content" v-html="cjson.content">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="word_box2" v-if="cjson.type == 'theme'" style="flex-direction: column;">
|
|
|
|
+ <div class="word_content" v-html="cjson.content"></div>
|
|
|
|
+ <div class="word_content2" v-html="cjson.content2"></div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="o_bottom" v-loading="isloading">
|
|
<div class="o_bottom" v-loading="isloading">
|
|
@@ -71,7 +67,7 @@ const recorder = new Recorder({
|
|
});
|
|
});
|
|
|
|
|
|
// 绑定事件-打印的是当前录音数据
|
|
// 绑定事件-打印的是当前录音数据
|
|
-recorder.onprogress = function(params) {
|
|
|
|
|
|
+recorder.onprogress = function (params) {
|
|
// console.log('--------------START---------------')
|
|
// console.log('--------------START---------------')
|
|
// console.log('录音时长(秒)', params.duration);
|
|
// console.log('录音时长(秒)', params.duration);
|
|
// console.log('录音大小(字节)', params.fileSize);
|
|
// console.log('录音大小(字节)', params.fileSize);
|
|
@@ -102,7 +98,7 @@ export default {
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
checkType: {
|
|
checkType: {
|
|
- handler: function(newVal, oldVal) {
|
|
|
|
|
|
+ handler: function (newVal, oldVal) {
|
|
this.cjson = JSON.parse(JSON.stringify(this.checkJson[newVal]));
|
|
this.cjson = JSON.parse(JSON.stringify(this.checkJson[newVal]));
|
|
this.LuAudioUrl = this.work[newVal]
|
|
this.LuAudioUrl = this.work[newVal]
|
|
? JSON.parse(JSON.stringify(this.work[newVal]))
|
|
? JSON.parse(JSON.stringify(this.work[newVal]))
|
|
@@ -141,7 +137,7 @@ export default {
|
|
recorder.destroy(); // 销毁录音
|
|
recorder.destroy(); // 销毁录音
|
|
_this.isRecord = true;
|
|
_this.isRecord = true;
|
|
recorder.start().then(
|
|
recorder.start().then(
|
|
- () => {},
|
|
|
|
|
|
+ () => { },
|
|
error => {
|
|
error => {
|
|
_this.isRecord = false;
|
|
_this.isRecord = false;
|
|
// _this.$message.error(`${error.name} : ${error.message}`);
|
|
// _this.$message.error(`${error.name} : ${error.message}`);
|
|
@@ -268,12 +264,12 @@ export default {
|
|
};
|
|
};
|
|
bucket
|
|
bucket
|
|
.upload(params, options)
|
|
.upload(params, options)
|
|
- .on("httpUploadProgress", function(evt) {
|
|
|
|
|
|
+ .on("httpUploadProgress", function (evt) {
|
|
//这里可以写进度条
|
|
//这里可以写进度条
|
|
// console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
|
|
// console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
|
|
// _this.progress = parseInt((evt.loaded * 80) / evt.total);
|
|
// _this.progress = parseInt((evt.loaded * 80) / evt.total);
|
|
})
|
|
})
|
|
- .send(function(err, data) {
|
|
|
|
|
|
+ .send(function (err, data) {
|
|
_this.isloading = false;
|
|
_this.isloading = false;
|
|
// _this.progress = 100;
|
|
// _this.progress = 100;
|
|
if (err) {
|
|
if (err) {
|
|
@@ -340,9 +336,10 @@ export default {
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
+
|
|
.word_box2 {
|
|
.word_box2 {
|
|
- max-height: calc(100% - 20px);
|
|
|
|
- max-width: calc(100% - 20px);
|
|
|
|
|
|
+ max-height: calc(100% - 20px);
|
|
|
|
+ max-width: calc(100% - 20px);
|
|
min-width: 350px;
|
|
min-width: 350px;
|
|
display: flex;
|
|
display: flex;
|
|
width: auto;
|
|
width: auto;
|
|
@@ -353,14 +350,15 @@ export default {
|
|
overflow: auto;
|
|
overflow: auto;
|
|
color: #000;
|
|
color: #000;
|
|
}
|
|
}
|
|
|
|
+
|
|
.sentence_box {
|
|
.sentence_box {
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
color: #000;
|
|
color: #000;
|
|
line-height: 20px;
|
|
line-height: 20px;
|
|
word-break: break-word;
|
|
word-break: break-word;
|
|
white-space: pre-line;
|
|
white-space: pre-line;
|
|
- max-height: calc(100% - 20px);
|
|
|
|
- max-width: calc(100% - 20px);
|
|
|
|
|
|
+ max-height: calc(100% - 20px);
|
|
|
|
+ max-width: calc(100% - 20px);
|
|
min-width: 350px;
|
|
min-width: 350px;
|
|
display: flex;
|
|
display: flex;
|
|
width: auto;
|
|
width: auto;
|
|
@@ -370,15 +368,19 @@ export default {
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
overflow: auto;
|
|
overflow: auto;
|
|
}
|
|
}
|
|
-.sentence_box > .word_content {
|
|
|
|
|
|
+
|
|
|
|
+.sentence_box>.word_content {
|
|
position: relative;
|
|
position: relative;
|
|
- z-index: 999;
|
|
|
|
- /* text-align: center; */
|
|
|
|
- color: #000;
|
|
|
|
- width: calc(100%);
|
|
|
|
|
|
+ z-index: 999;
|
|
|
|
+ /* text-align: center; */
|
|
|
|
+ color: #000;
|
|
|
|
+ width: calc(100%);
|
|
|
|
+ word-break: break-word;
|
|
|
|
+ white-space: pre-line;
|
|
}
|
|
}
|
|
|
|
|
|
-.word_box2 > .word_img {
|
|
|
|
|
|
+
|
|
|
|
+.word_box2>.word_img {
|
|
min-width: 100px;
|
|
min-width: 100px;
|
|
width: 100px;
|
|
width: 100px;
|
|
height: 50px;
|
|
height: 50px;
|
|
@@ -391,14 +393,30 @@ export default {
|
|
object-fit: cover;
|
|
object-fit: cover;
|
|
}
|
|
}
|
|
|
|
|
|
-.word_box2 > .word_content {
|
|
|
|
|
|
+.word_box2>.word_content {
|
|
|
|
+ position: relative;
|
|
|
|
+ z-index: 999;
|
|
|
|
+ text-align: center;
|
|
|
|
+ font-size: 30px;
|
|
|
|
+ margin: 7px 0 7px 0px;
|
|
|
|
+ color: #000;
|
|
|
|
+ width: calc(100%);
|
|
|
|
+ word-break: break-word;
|
|
|
|
+ white-space: pre-line;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.word_box2>.word_content2 {
|
|
position: relative;
|
|
position: relative;
|
|
- z-index: 999;
|
|
|
|
- text-align: center;
|
|
|
|
- font-size: 30px;
|
|
|
|
- margin: 7px 0 7px 0px;
|
|
|
|
- color: #000;
|
|
|
|
- width: calc(100%);
|
|
|
|
|
|
+ z-index: 999;
|
|
|
|
+ /* text-align: center; */
|
|
|
|
+ /* font-size: 30px; */
|
|
|
|
+ margin: 7px 0 7px 0px;
|
|
|
|
+ color: #727272;
|
|
|
|
+ width: calc(100%);
|
|
|
|
+ word-break: break-word;
|
|
|
|
+ white-space: pre-line;
|
|
|
|
+ font-size: 16px;
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
.o_bottom .audio {
|
|
.o_bottom .audio {
|
|
@@ -407,7 +425,7 @@ export default {
|
|
justify-content: center;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
|
|
-.o_bottom .audio > img {
|
|
|
|
|
|
+.o_bottom .audio>img {
|
|
width: 75px;
|
|
width: 75px;
|
|
height: 75px;
|
|
height: 75px;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
@@ -440,8 +458,8 @@ export default {
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
|
|
-.audio_index_last > img,
|
|
|
|
-.audio_index_next > img {
|
|
|
|
|
|
+.audio_index_last>img,
|
|
|
|
+.audio_index_next>img {
|
|
width: 15px;
|
|
width: 15px;
|
|
height: auto;
|
|
height: auto;
|
|
}
|
|
}
|
|
@@ -451,7 +469,7 @@ export default {
|
|
opacity: 0.6;
|
|
opacity: 0.6;
|
|
}
|
|
}
|
|
|
|
|
|
-.audio_index_last > img {
|
|
|
|
|
|
+.audio_index_last>img {
|
|
transform: rotate(180deg);
|
|
transform: rotate(180deg);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -491,7 +509,7 @@ export default {
|
|
margin-bottom: 15px;
|
|
margin-bottom: 15px;
|
|
}
|
|
}
|
|
|
|
|
|
-.audio_rerecord > span {
|
|
|
|
|
|
+.audio_rerecord>span {
|
|
display: flex;
|
|
display: flex;
|
|
border: 1px solid #3981fa;
|
|
border: 1px solid #3981fa;
|
|
align-items: center;
|
|
align-items: center;
|
|
@@ -501,7 +519,7 @@ export default {
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
|
|
-.audio_rerecord > span::before {
|
|
|
|
|
|
+.audio_rerecord>span::before {
|
|
content: "";
|
|
content: "";
|
|
width: 15px;
|
|
width: 15px;
|
|
height: 15px;
|
|
height: 15px;
|
|
@@ -516,15 +534,15 @@ export default {
|
|
margin: 0 !important;
|
|
margin: 0 !important;
|
|
}
|
|
}
|
|
|
|
|
|
-.audio_b >>> .vueAudioBetter span:before{
|
|
|
|
|
|
+.audio_b>>>.vueAudioBetter span:before {
|
|
color: #fff;
|
|
color: #fff;
|
|
}
|
|
}
|
|
|
|
|
|
-.audio_class >>> .slider .process {
|
|
|
|
|
|
+.audio_class>>>.slider .process {
|
|
background: #000;
|
|
background: #000;
|
|
}
|
|
}
|
|
|
|
|
|
-.audio_b >>> .vueAudioBetter .iconfont:active{
|
|
|
|
|
|
+.audio_b>>>.vueAudioBetter .iconfont:active {
|
|
position: unset;
|
|
position: unset;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|