record.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790
  1. <template>
  2. <div class="record_box">
  3. <div class="ca-b-o-main">
  4. <div class="ca-b-o-m-tape" v-show="controlsStatus == 0" @click.stop="onClickStartRecord()"
  5. v-loading="uploadFileLoading">
  6. <span class="el-icon-microphone"></span>
  7. <div class="ca-b-o-m-t-text">点击开始录音</div>
  8. </div>
  9. <div class="ca-b-o-m-tapeTwo" v-show="controlsStatus == 2" v-loading="uploadFileLoading">
  10. <mini-audio v-if="audioUrl" :audio-source="audioUrl" class="audio_class"></mini-audio>
  11. <div style="
  12. width: 32px;
  13. height: 32px;
  14. margin-left: 20px;
  15. cursor: pointer;
  16. background-color: #3681fc;
  17. border-radius: 50%;
  18. display: flex;
  19. justify-content: center;
  20. align-items: center;
  21. " @click="onClickStartRecord()">
  22. <img style="width: 10px; height: 16px" src="../../../assets/icon/classroomObservation/mai1.svg"
  23. alt="" />
  24. </div>
  25. </div>
  26. <div class="ca-b-o-m-TapeArea" v-show="controlsStatus == 1" v-loading="uploadFileLoading">
  27. <div class="ca-b-o-m-i-left">
  28. <img style="height: 120%" src="@/assets/icon/classroomObservation/isTape.svg" alt="" />
  29. <div>
  30. <div v-if="recordedForm.status == 1" style="color: #ee3e3e">
  31. 录音中...
  32. </div>
  33. <div v-if="recordedForm.status == 2" style="color: #6b798e">
  34. 已暂停...
  35. </div>
  36. <span>{{ recordedForm.time }}</span>
  37. </div>
  38. </div>
  39. <div style="width: 100px; display: flex; justify-content: space-between">
  40. <div class="lyStart" @click="onClickPauseOrContinueRecord()" v-loading="recordedForm.loading">
  41. <img style="width: 12px; height: 12px" src="@/assets/icon/classroomObservation/lyStart.svg"
  42. alt="" v-if="recordedForm.status == 1" />
  43. <img style="width: 12px; height: 12px" src="@/assets/icon/classroomObservation/start.png" alt=""
  44. v-if="recordedForm.status == 2" />
  45. </div>
  46. <div class="lyStart" @click="onClickFinishRecord()" v-loading="recordedForm.loading">
  47. <img style="width: 12px; height: 12px" src="@/assets/icon/classroomObservation/lyStop.svg"
  48. alt="" />
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="text_box">
  54. <textarea :disabled="recordedForm.status == 1" ref="videoTextTextarea" rows="2" class="binfo_input binfo_textarea" style="height: 100%;" cols v-model="videoText" placeholder="等待录音中..."></textarea>
  55. </div>
  56. <iframe allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  57. src="https://beta.cloud.cocorobo.cn/browser/public/index.html" ref="iiframe" v-show="false"></iframe>
  58. </div>
  59. </template>
  60. <script>
  61. export default {
  62. data() {
  63. return {
  64. videoText: "",
  65. recorderProvider: "microsoft",//shengyang
  66. uploadFileLoading: false,
  67. controlsStatus: 0, //0--点击开始录音 1--录音中 2--录音完毕预览 3--文字输入
  68. audioUrl: "",
  69. languageRadio: 2, //设置选择语言
  70. recordedForm: {
  71. time: "00:00:00", //时间
  72. status: 0, //0--未录音 1--正在录音 2--暂停 3--录音结束
  73. timer: null,
  74. timeDuration: 0,
  75. audioBlob: [],
  76. startTime: 0,
  77. endTime: 0,
  78. textList: [],
  79. loading: false
  80. },
  81. progressData: {
  82. uploadLoading: false,
  83. value: 0
  84. },
  85. }
  86. },
  87. methods: {
  88. updateRecordedTime({ duration }) {
  89. // 更新currentTime,将秒数转换为时分秒格式
  90. let hours = Math.floor(duration / 3600);
  91. let minutes = Math.floor((duration % 3600) / 60);
  92. let seconds = Math.floor(duration % 60);
  93. // this.recordedForm.time = `${hours.toString().padStart(2, "0")}:${minutes
  94. // .toString()
  95. // .padStart(2, "0")}:${seconds.toString().padStart(2, "0")}`;
  96. return `${hours
  97. .toString()
  98. .padStart(2, "0")}:${minutes
  99. .toString()
  100. .padStart(2, "0")}:${seconds.toString().padStart(2, "0")}`;
  101. },
  102. onClickStartRecord() {
  103. if (this.uploadFileLoading) return this.$message.info("请稍等...");
  104. // 开始录音
  105. if (this.audioUrl) {
  106. this.$confirm("是否删掉此音频并开始录音?", "提醒", {
  107. confirmButtonText: "确定",
  108. cancelButtonText: "取消",
  109. type: "warning"
  110. })
  111. .then(() => {
  112. this.recordedForm.status = 0;
  113. this.audioUrl = "";
  114. this.onClickStartRecord();
  115. })
  116. .catch(e => {
  117. console.log(e);
  118. console.log("不顶替");
  119. });
  120. } else if (this.controlsStatus != 1 && this.recordedForm.status == 0) {
  121. this.controlsStatus = 1;
  122. this.recordedForm.status = 1;
  123. this.$message.success("已开始录音");
  124. this.recordedForm.timer = setInterval(() => {
  125. this.recordedForm.timeDuration += 1;
  126. this.recordedForm.time = this.updateRecordedTime({
  127. duration: this.recordedForm.timeDuration
  128. });
  129. // console.log(this.recordedForm);
  130. }, 1000);
  131. this.recordedForm.textList = [];
  132. this.recordedForm.timeDuration = 0;
  133. this.recordedForm.startTime = 1;
  134. this.recordedForm.endTime = 0;
  135. // this.onStartRecordWithMicrosoft();
  136. switch (this.recorderProvider) {
  137. case "microsoft":
  138. this.onStartRecordWithMicrosoft();
  139. break;
  140. case "shengyang":
  141. // this.onStartRecordWithShengyang();
  142. break;
  143. default:
  144. break;
  145. }
  146. } else if ([1, 2].includes(this.recordedForm.status)) {
  147. this.controlsStatus = 1;
  148. this.$message.info("还在录音中");
  149. }
  150. },
  151. // ============ start 微软录音转译
  152. onStartRecordWithMicrosoft() {
  153. let iiframe = this.$refs["iiframe"];
  154. iiframe.contentWindow.window.document.getElementById(
  155. "languageOptions"
  156. ).selectedIndex = this.languageRadio;
  157. iiframe.contentWindow.testdoContinuousPronunciationAssessment();
  158. // 录音开始
  159. let flag = true;
  160. iiframe.contentWindow.onRecognizedResult = e => {
  161. // let e = {
  162. // privText:"测试测试"
  163. // }
  164. this.recordedForm.endTime = this.recordedForm.timeDuration;
  165. if (flag) {
  166. this.controlsStatus = 1;
  167. flag = false;
  168. this.uploadFileLoading = false;
  169. }
  170. let privText = e.privText;
  171. if (privText == undefined || privText == "undefined") return;
  172. console.log("👇转译对象👇");
  173. console.log(e);
  174. console.log("👇转译结果👇");
  175. console.log(privText);
  176. this.recordedForm.startTime = this.recordedForm.timeDuration + 1;
  177. this.videoText += privText;
  178. // 将textarea滚动到最底部
  179. this.$nextTick(() => {
  180. this.$refs.videoTextTextarea.scrollTop = this.$refs.videoTextTextarea.scrollHeight;
  181. });
  182. };
  183. },
  184. async onPauseRecordWithMicrosoft() {
  185. let _resolve;
  186. const p = new Promise(resolve => (_resolve = resolve));
  187. let iiframe = this.$refs["iiframe"];
  188. iiframe.contentWindow.window.document
  189. .getElementById("scenarioStopButton")
  190. .click();
  191. // 录音借宿
  192. iiframe.contentWindow.onSessionStopped = (s, e) => {
  193. this.recordedForm.status = 2;
  194. this.$message.success("已停止录音");
  195. console.log("停止录音👇");
  196. console.log("停止录音", e);
  197. this.recordedForm.audioBlob.push(e.preaudio);
  198. iiframe.contentWindow.onSessionStopped = null;
  199. iiframe.contentWindow.onRecognizedResult = null;
  200. _resolve();
  201. };
  202. return p;
  203. },
  204. onClickPauseOrContinueRecord() {
  205. if (this.recordedForm.loading) return this.$message.info("请稍等");
  206. if (this.recordedForm.status == 1) {
  207. //暂停
  208. this.recordedForm.loading = true;
  209. clearInterval(this.recordedForm.timer);
  210. switch (this.recorderProvider) {
  211. case "microsoft":
  212. this.onPauseRecordWithMicrosoft().then(() => {
  213. this.recordedForm.loading = false;
  214. });
  215. break;
  216. case "shengyang":
  217. // this.onPauseRecordWithShengyang().then(() => {
  218. // this.recordedForm.status = 2;
  219. // this.$message.success("已停止录音");
  220. // this.recordedForm.loading = false;
  221. // });
  222. break;
  223. default:
  224. break;
  225. }
  226. } else if (this.recordedForm.status == 2) {
  227. //开始
  228. this.recordedForm.loading = true;
  229. this.controlsStatus = 1;
  230. this.recordedForm.status = 1;
  231. this.$message.success("已开始录音");
  232. this.recordedForm.loading = false;
  233. this.recordedForm.timer = setInterval(() => {
  234. this.recordedForm.timeDuration += 1;
  235. this.recordedForm.time = this.updateRecordedTime({
  236. duration: this.recordedForm.timeDuration
  237. });
  238. }, 1000);
  239. switch (this.recorderProvider) {
  240. case "microsoft":
  241. this.onContinueRecordWithMicrosoft();
  242. break;
  243. case "shengyang":
  244. // this.onContinueRecordWithShengyang();
  245. break;
  246. default:
  247. break;
  248. }
  249. }
  250. },
  251. onClickFinishRecord() {
  252. clearInterval(this.recordedForm.timer);
  253. switch (this.recorderProvider) {
  254. case "microsoft":
  255. this.onFinishRecordWithMicrosoft();
  256. break;
  257. case "shengyang":
  258. // this.onFinishRecordWithShengyang();
  259. break;
  260. default:
  261. break;
  262. }
  263. },
  264. onFinishRecordWithMicrosoft() {
  265. if (this.recordedForm.status == 1) {
  266. //正在录音时
  267. let iiframe = this.$refs["iiframe"];
  268. iiframe.contentWindow.window.document
  269. .getElementById("scenarioStopButton")
  270. .click();
  271. // 录音借宿
  272. iiframe.contentWindow.onSessionStopped = (s, e) => {
  273. this.recordedForm.status = 3;
  274. this.controlsStatus = 2;
  275. this.showGetTextLoading = false;
  276. this.$message.success("已结束录音");
  277. console.log("结束录音👇");
  278. console.log("结束录音", e);
  279. this.recordedForm.audioBlob.push(e.preaudio);
  280. let blob = new Blob(this.recordedForm.audioBlob, {
  281. type: "audio/wav"
  282. });
  283. let file = new File([blob], "recordedFile.wav", {
  284. type: "audio/wav"
  285. });
  286. this.uploadFile(file, { changeText: false, flag: true });
  287. iiframe.contentWindow.onSessionStopped = null;
  288. iiframe.contentWindow.onRecognizedResult = null;
  289. };
  290. } else if (this.recordedForm.status == 2) {
  291. //暂停录音时
  292. this.recordedForm.status = 3;
  293. this.controlsStatus = 2;
  294. this.showGetTextLoading = false;
  295. let blob = new Blob(this.recordedForm.audioBlob, {
  296. type: "audio/wav"
  297. });
  298. let file = new File([blob], "recordedFile.wav", { type: "audio/wav" });
  299. this.uploadFile(file, { changeText: false, flag: true });
  300. }
  301. },
  302. uploadFile(file, { changeText = true, flag = true }) {
  303. var credentials = {
  304. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  305. secretAccessKey: "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"
  306. }; //秘钥形式的登录上传
  307. window.AWS.config.update(credentials);
  308. window.AWS.config.region = "cn-northwest-1"; //设置区域
  309. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  310. var _this = this;
  311. if (file) {
  312. // this.loading = true;
  313. this.progressData.uploadLoading = true;
  314. this.progressData.value = 0;
  315. var params = {
  316. Key:
  317. file.name.split(".")[0] +
  318. new Date().getTime() +
  319. "." +
  320. file.name.split(".")[file.name.split(".").length - 1],
  321. ContentType: file.type,
  322. Body: file,
  323. "Access-Control-Allow-Credentials": "*",
  324. ACL: "public-read"
  325. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  326. var options = {
  327. partSize: 2048 * 1024 * 1024,
  328. queueSize: 2,
  329. leavePartsOnError: true
  330. };
  331. bucket
  332. .upload(params, options)
  333. .on("httpUploadProgress", function (evt) {
  334. //这里可以写进度条
  335. _this.progressData.value = parseInt((evt.loaded * 100) / evt.total);
  336. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  337. })
  338. .send(function (err, data) {
  339. if (err) {
  340. _this.$message.error("上传失败");
  341. _this.uploadFileLoading = false;
  342. _this.loading = false;
  343. _this.progressData.uploadLoading = false;
  344. } else {
  345. // 判断是不是音频文件
  346. const audioRegex = /\.(mp3|wav|ogg|flac|m4a)$/i;
  347. const txtRegex = /\.(txt|csv)$/i;
  348. const otherRegex = /\.(pdf|xlsx|doc|docx)$/i;{
  349. console.log(data.Location);
  350. if (audioRegex.test(data.Location)) {
  351. _this.loading = false;
  352. _this.recordedForm.audioBlob = [];
  353. _this.recordedForm.time = "00:00:00";
  354. _this.recordedForm.timeDuration = 0;
  355. _this.progressData.uploadLoading = false;
  356. _this.recordedForm.textList = [];
  357. _this.changeAudioUrl(data.Location)
  358. }
  359. }
  360. }
  361. });
  362. }
  363. },
  364. changeAudioUrl(newValue) {
  365. if (!newValue) return;
  366. this.audioUrl = newValue;
  367. if (![1, 2].includes(this.pageStatus)) this.pageStatus = 1;
  368. this.controlsStatus = 2;
  369. },
  370. },
  371. }
  372. </script>
  373. <style scoped>
  374. .record_box {
  375. width: 100%;
  376. height: 500px;
  377. position: relative;
  378. }
  379. .ca-b-o-main {
  380. width: calc(100% - 20px);
  381. height: 50px;
  382. margin: 10px auto;
  383. border-radius: 5px;
  384. transition: 0.3s;
  385. position: relative;
  386. }
  387. .ca-b-o-main:hover {
  388. box-shadow: 0 5px 5px 5px #e1e8eb;
  389. }
  390. .ca-b-o-m-tape {
  391. width: 100%;
  392. height: 100%;
  393. cursor: pointer;
  394. display: flex;
  395. justify-content: center;
  396. align-items: center;
  397. font-size: 20px;
  398. color: #3681fc;
  399. border-radius: 16px;
  400. background-color: white;
  401. box-shadow: 0 5px 5px 5px #e6eaeb;
  402. transition: 0.3s;
  403. }
  404. .ca-b-o-m-tapeTwo {
  405. width: 100%;
  406. height: 100%;
  407. display: flex;
  408. justify-content: center;
  409. align-items: center;
  410. font-size: 20px;
  411. color: #3681fc;
  412. box-sizing: border-box;
  413. padding: 0 20px;
  414. border-radius: 16px;
  415. background-color: white;
  416. box-shadow: 0 5px 5px 5px #e6eaeb;
  417. transition: 0.3s;
  418. }
  419. .ca-b-o-m-tapeTwo>>>.vueAudioBetter {
  420. width: 90%;
  421. }
  422. .ca-b-o-m-tape>span {
  423. margin-right: 10px;
  424. font-size: 22px;
  425. }
  426. .ca-b-o-m-tape:hover {
  427. color: #1467ee;
  428. }
  429. .ca-b-o-m-inputAre {
  430. width: 100%;
  431. min-height: 100%;
  432. height: auto;
  433. display: flex;
  434. align-items: flex-end;
  435. border-radius: 16px;
  436. background-color: white;
  437. box-shadow: 0 5px 5px 5px #e6eaeb;
  438. transition: 0.3s;
  439. position: absolute;
  440. bottom: 0;
  441. }
  442. .ca-b-o-m-TapeArea {
  443. width: 100%;
  444. height: 100%;
  445. display: flex;
  446. justify-content: space-between;
  447. border-radius: 16px;
  448. background-color: #f0f2f5;
  449. box-shadow: 0 5px 5px 5px #e6eaeb;
  450. transition: 0.3s;
  451. align-items: center;
  452. padding-right: 20px;
  453. box-sizing: border-box;
  454. }
  455. .ca-b-o-m-i-left {
  456. display: flex;
  457. align-items: center;
  458. }
  459. .ca-b-o-m-i-left>div>div {
  460. color: #ee3e3e;
  461. font-weight: bold;
  462. }
  463. .ca-b-o-m-i-left>div>span {
  464. font-size: 14px;
  465. margin-top: 5px;
  466. }
  467. .ca-b-o-m-i-left>img {
  468. margin-left: 10px;
  469. border-radius: 50%;
  470. margin-right: 20px;
  471. }
  472. .ca-b-o-m-left {
  473. flex: 1;
  474. height: auto;
  475. min-height: 64px;
  476. display: flex;
  477. /* justify-content: center; */
  478. align-items: center;
  479. box-sizing: border-box;
  480. padding-left: 20px;
  481. }
  482. .ca-b-o-m-left>textarea {
  483. resize: none;
  484. min-height: 50px;
  485. margin: 7px 0;
  486. max-height: 500px;
  487. width: 100%;
  488. font-size: 18px;
  489. border: none;
  490. outline: none;
  491. resize: none;
  492. overflow: auto;
  493. }
  494. .ca-b-o-m-right {
  495. width: 100px;
  496. min-width: 80px;
  497. height: 64px;
  498. max-height: 64px;
  499. display: flex;
  500. justify-content: center;
  501. align-items: center;
  502. margin-right: 10px;
  503. }
  504. #myTextarea::-webkit-input-placeholder {
  505. /* Chrome, Opera, Safari */
  506. font-size: 14px;
  507. /* 修改placeholder字体大小 */
  508. color: grey;
  509. /* 修改placeholder文字颜色 */
  510. }
  511. #myTextarea:-moz-placeholder {
  512. /* Firefox 18- */
  513. font-size: 14px;
  514. /* 修改placeholder字体大小 */
  515. color: grey;
  516. /* 修改placeholder文字颜色 */
  517. opacity: 1;
  518. /* 修复Firefox的透明度问题 */
  519. }
  520. #myTextarea::-moz-placeholder {
  521. /* Firefox 19+ */
  522. font-size: 14px;
  523. /* 修改placeholder字体大小 */
  524. color: grey;
  525. /* 修改placeholder文字颜色 */
  526. opacity: 1;
  527. /* 修复Firefox的透明度问题 */
  528. }
  529. #myTextarea:-ms-input-placeholder {
  530. /* Internet Explorer 10-11 */
  531. font-size: 14px;
  532. /* 修改placeholder字体大小 */
  533. color: grey;
  534. /* 修改placeholder文字颜色 */
  535. }
  536. /* .ca-b-o-m-right > span {
  537. width: 24px;
  538. height: 24px;
  539. background: url("../../../../assets/icon/classroomObservation/tapeIng.png")
  540. no-repeat;
  541. background-size: 100% 100%;
  542. cursor: pointer;
  543. margin-right: 10px;
  544. } */
  545. .ca-b-o-m-right>div {
  546. width: 52px;
  547. height: 30px;
  548. display: flex;
  549. justify-content: center;
  550. align-items: center;
  551. color: white;
  552. font-size: 14px;
  553. border-radius: 5px;
  554. background-color: #1467ee;
  555. margin-right: 10px;
  556. cursor: pointer;
  557. }
  558. .ca-b-o-m-r-dsiableBtn {
  559. /* 禁止手势 */
  560. cursor: not-allowed !important;
  561. background-color: #aeccfe !important;
  562. }
  563. .lyStart {
  564. width: 38px;
  565. height: 32px;
  566. display: flex;
  567. align-items: center;
  568. justify-content: center;
  569. background-color: #fff;
  570. border-radius: 5px;
  571. cursor: pointer;
  572. }
  573. .ca_b_o_m_roleList {
  574. position: absolute;
  575. left: 0;
  576. width: 100%;
  577. height: auto;
  578. max-height: calc(100vh - 230px);
  579. margin-bottom: 70px;
  580. overflow: auto;
  581. background-color: white;
  582. border-radius: 10px;
  583. box-sizing: border-box;
  584. padding: 15px;
  585. }
  586. .ca_b_o_m_rl_item {
  587. width: 100%;
  588. height: auto;
  589. margin-bottom: 15px;
  590. background-color: #f3f7fd;
  591. border-radius: 10px;
  592. cursor: pointer;
  593. transition: 0.3s;
  594. box-sizing: border-box;
  595. padding: 10px;
  596. }
  597. .ca_b_o_m_rl_itemActive {
  598. background-color: #c3ddfa;
  599. }
  600. .ca_b_o_m_rl_i_left {
  601. width: 50px;
  602. height: 50px;
  603. border-radius: 50%;
  604. margin-right: 15px;
  605. }
  606. .ca_b-o_m_rl_i_top {
  607. display: flex;
  608. }
  609. .ca_b-o_m_rl_i_top>div {
  610. margin-left: 10px;
  611. }
  612. .ca_b-o_m_rl_i_top>div>span {
  613. font-size: 14px;
  614. margin-top: 5px;
  615. color: #6b798e;
  616. }
  617. .ca_b-o_m_rl_i_bottom {
  618. margin-top: 10px;
  619. width: 90%;
  620. overflow: hidden;
  621. display: block;
  622. white-space: nowrap;
  623. text-overflow: ellipsis;
  624. }
  625. .ca-top>>>.editorBar {
  626. height: 100%;
  627. position: relative;
  628. max-height: calc(100vh - 300px);
  629. }
  630. .ca-top>>>.editorBar .text {
  631. height: calc(100% - 42px);
  632. max-height: calc(100% - 42px);
  633. overflow: auto;
  634. }
  635. .chatAreaLoading {
  636. position: absolute;
  637. width: 100%;
  638. height: 100%;
  639. top: 0;
  640. left: 0;
  641. background-color: rgba(255, 255, 255, 0.7);
  642. display: flex;
  643. justify-content: center;
  644. align-items: center;
  645. }
  646. .cal_box {
  647. width: 300px;
  648. height: 150px;
  649. background-color: white;
  650. border-radius: 10px;
  651. box-shadow: 0 0 4px 4px #fff;
  652. display: flex;
  653. flex-direction: column;
  654. justify-content: center;
  655. align-items: center;
  656. box-sizing: border-box;
  657. padding: 20px;
  658. }
  659. .cal_box>div:nth-child(1) {
  660. margin-bottom: 10px;
  661. font-size: 18px;
  662. display: flex;
  663. align-items: center;
  664. }
  665. .cal_box>div:nth-child(1)>img {
  666. width: 30px;
  667. height: 30px;
  668. margin-right: 10px;
  669. }
  670. .cal_box>>>.el-progress-bar__innerText {
  671. color: #fff !important;
  672. }
  673. .text_box{
  674. width: calc(100% - 20px);
  675. margin: 0 auto;
  676. height: calc(100% - 75px);
  677. }
  678. .binfo_input {
  679. width: 100%;
  680. margin: 0;
  681. padding: 12px 14px;
  682. display: block;
  683. min-width: 0;
  684. outline: none;
  685. box-sizing: border-box;
  686. background: none;
  687. border: none;
  688. border-radius: 4px;
  689. background: #fff;
  690. font-size: 16px;
  691. resize: none;
  692. font-family: "Microsoft YaHei";
  693. min-height: 48px;
  694. /* border: 1px solid #3682fc00; */
  695. border: 1.5px solid #cad1dc;
  696. }
  697. .binfo_textarea {
  698. border: 1.5px solid #cad1dc;
  699. font-size: 16px;
  700. resize: none;
  701. /* background: #f6f6f6; */
  702. font-family: "Microsoft YaHei";
  703. }
  704. .binfo_input:focus-visible {
  705. border: 1.5px solid #3681fc !important;
  706. }
  707. .binfo_textarea::-webkit-scrollbar {
  708. /*滚动条整体样式*/
  709. width: 6px;
  710. /*高宽分别对应横竖滚动条的尺寸*/
  711. height: 6px;
  712. }
  713. /*定义滚动条轨道 内阴影+圆角*/
  714. .binfo_textarea::-webkit-scrollbar-track {
  715. border-radius: 10px;
  716. background-color: #eee;
  717. }
  718. /*定义滑块 内阴影+圆角*/
  719. .binfo_textarea::-webkit-scrollbar-thumb {
  720. border-radius: 10px;
  721. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  722. background-color: rgba(0, 0, 0, 0.1);
  723. }
  724. .audio_class {
  725. /* width: 100% !important; */
  726. /* height: 100% !important; */
  727. background: #ccc !important;
  728. margin: 0 !important;
  729. }
  730. .audio_class >>> .slider .process {
  731. background: #000;
  732. }
  733. </style>