answerDetail.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762
  1. <template>
  2. <view class="answerdetail-page flex-column">
  3. <template v-if="questionItem">
  4. <view class="question-wrap">
  5. <view class="question-item">
  6. <view class="question-info">
  7. <view style="flex: 1" class="question-title">
  8. <text class="item-label">{{
  9. questionItem.chart_permission_name
  10. }}</text>
  11. {{ questionItem.question_content }}
  12. </view>
  13. <view class="item-answer" v-if="questionItem.reply_status === 3">
  14. <view class="answer" @click.stop="handleAudio(questionItem)">
  15. <template v-if="!questionItem.loading">
  16. <image
  17. class="music-img"
  18. :src="questionItem.answer.isplay ? playImgSrc : pauseImgSrc"
  19. mode="widthFix"
  20. />
  21. <template
  22. v-if="
  23. questionItem.answer.isplay || questionItem.answer.ispause
  24. "
  25. >
  26. <text>{{
  27. questionItem.answer.audioTime -
  28. currentAudioMsg.audioCurrentTime >
  29. 0
  30. ? moment(
  31. (questionItem.answer.audioTime -
  32. currentAudioMsg.audioCurrentTime) *
  33. 1000
  34. ).format("mm:ss")
  35. : "00:00"
  36. }}</text>
  37. </template>
  38. <template v-else>
  39. <text>{{
  40. moment(questionItem.answer.audioTime * 1000).format(
  41. "mm:ss"
  42. )
  43. }}</text>
  44. </template>
  45. </template>
  46. <template v-else>
  47. <image
  48. class="load-img"
  49. src="../static/loading.png"
  50. mode="aspectFill"
  51. />
  52. <text>{{
  53. moment(questionItem.answer.audioTime).format("mm:ss")
  54. }}</text>
  55. </template>
  56. </view>
  57. </view>
  58. </view>
  59. <text class="item-time">提问时间:{{ questionItem.create_time }}</text>
  60. </view>
  61. </view>
  62. <view
  63. class="record-wrap flex-column"
  64. v-if="questionItem.reply_status === 2"
  65. >
  66. <view class="record flex-column" v-if="questionItem.recordStatus !== 4">
  67. <view class="no-record" v-if="questionItem.recordStatus === 1">
  68. <image
  69. src="./static/record.png"
  70. mode="widthFix"
  71. style="width: 90rpx; height: 180rpx"
  72. />
  73. <view>无录音(录音时长超过三分钟自动结束)</view>
  74. </view>
  75. <!-- <view class="record-time" v-else>{{ audioTime }}</view> -->
  76. <view class="recode-image" v-else>
  77. <scroll-view scroll-x style="height: 100rpx" class="scroll-view" :scroll-left="scrollTop" @scrolltolower="handleScrolltolower" :show-scrollbar="false">
  78. <view style="width:100%;height:100rpx;display:inline-block;"></view>
  79. <image
  80. src="./static/record-img.png"
  81. mode="scaleToFill"
  82. />
  83. <image
  84. src="./static/record-img.png"
  85. mode="scaleToFill"
  86. />
  87. <image
  88. src="./static/record-img.png"
  89. mode="scaleToFill"
  90. />
  91. </scroll-view>
  92. </view>
  93. </view>
  94. <view
  95. class="record-tool flex-column"
  96. v-if="questionItem.recordStatus !== 4"
  97. >
  98. <view class="hint" v-if="questionItem.recordStatus === 1"
  99. >点击开始录音</view
  100. >
  101. <view class="record-time" v-else>{{ audioTime }}</view>
  102. <view
  103. class="record-btn-wrap center"
  104. v-if="questionItem.recordStatus === 1"
  105. >
  106. <view class="switch" @click="changeRecodeStatus"> </view>
  107. </view>
  108. <view class="record-btn-wrap" v-else>
  109. <text
  110. @click="questionItem.recordStatus === 3 && handleRecode('delete')"
  111. v-if="questionItem.recordStatus >= 2"
  112. :class="{ active: questionItem.recordStatus === 3 }"
  113. >删除</text
  114. >
  115. <view class="switch" @click="changeRecodeStatus">
  116. <image
  117. v-if="questionItem.recordStatus >= 2"
  118. :src="
  119. questionItem.recordStatus === 2 ? playImgSrc : pauseImgSrc
  120. "
  121. :key="playIconKey"
  122. :style="{
  123. 'margin-left': questionItem.recordStatus !== 2 ? '7rpx' : 0,
  124. width: '36rpx',
  125. height: '44rpx',
  126. }"
  127. mode="widthFix"
  128. />
  129. </view>
  130. <text
  131. @click="handleRecode('finish')"
  132. v-if="questionItem.recordStatus >= 2"
  133. :class="{ active: questionItem.recordStatus >= 2 }"
  134. >完成</text
  135. >
  136. </view>
  137. </view>
  138. <view class="record-play" v-if="questionItem.recordStatus === 4">
  139. <view class="audio-wrap">
  140. <view v-if="pageLoading">音频生成中...</view>
  141. <view class="play" v-else>
  142. <van-icon
  143. :name="isplay ? 'pause' : 'play'"
  144. @click="handleAudioByReplay"
  145. color="#E6B77DFF"
  146. size="64rpx"
  147. style="align-items: flex-start; margin-left: -20rpx"
  148. />
  149. <!-- 进度条 -->
  150. <view class="slider-box">
  151. <slider
  152. :value="currentAudioMsg.audioCurrentTime"
  153. :max="currentAudioMsg.audioTime"
  154. @change="sliderChange($event)"
  155. @changing="sliderChanging"
  156. activeColor="#E6B77DFF"
  157. backgroundColor="#EBEBEBFF"
  158. block-color="#E6B77DFF"
  159. block-size="12"
  160. />
  161. <view class="slider-time">
  162. <text>{{
  163. moment(currentAudioMsg.audioCurrentTime * 1000).format(
  164. "mm:ss.SS"
  165. )
  166. }}</text>
  167. <text>{{
  168. moment(currentAudioMsg.audioTime * 1000).format("mm:ss.SS")
  169. }}</text>
  170. </view>
  171. </view>
  172. </view>
  173. </view>
  174. <view class="audio-delete" @click="handleRecode('delete')">
  175. <image
  176. src="./static/delerecord.png"
  177. mode="heightFix"
  178. style="width: 32rpx; height: 35rpx"
  179. />
  180. <text>删除</text></view
  181. >
  182. <view class="audio-pub" @click="handleRecode('pub')">发布</view>
  183. </view>
  184. </view>
  185. </template>
  186. </view>
  187. </template>
  188. <script>
  189. import mixin from "../mixin/questionMixin";
  190. import { apiReplayAsk, apiGetQuestion, apiSetRead } from "@/api/question";
  191. import { uploadAudioToServer } from "@/utils/upload";
  192. export default {
  193. mixins: [mixin],
  194. data() {
  195. return {
  196. questionItem: null /* {
  197. recordStatus: 1, //1:未录音;2:正在录音;3:已暂停;4:完成录音
  198. }, */,
  199. pauseImgSrc: "../static/question/recordplay.png",
  200. playImgSrc: "../static/question/recordpause.png",
  201. innerAudio: null, //该页面的音频
  202. audioCount: 0, //录音计时,毫秒
  203. recordStartTime: null, //录音开始时间
  204. recordStopTime: null, //录音停止的时间
  205. audioTime: "00:00", //录音时间(格式化后):string
  206. timer: null,
  207. audioItem: null,
  208. pageLoading: false,
  209. playIconKey: 0,
  210. isplay: false,
  211. isSlider: false,
  212. scrollTop:0,
  213. isStart:false,//判断录音是否开始
  214. //globalRecorder:uni.getRecorderManager(),
  215. };
  216. },
  217. onLoad(options) {
  218. this.initAudio();
  219. this.getQuestionItem(options.id);
  220. },
  221. onUnload() {
  222. this.resetAudio();
  223. this.destroyAudio();
  224. //录音时误操作退出页面的情况
  225. if(this.questionItem.recordStatus!==4){
  226. this.globalRecorder.stop()
  227. }
  228. },
  229. methods: {
  230. //初始化audio
  231. initAudio() {
  232. this.innerAudio = uni.createInnerAudioContext();
  233. this.handleAudioFun();
  234. this.handleRecorderFun();
  235. },
  236. resetAudio(){
  237. this.innerAudio.stop();
  238. this.isplay = false;
  239. this.changeCurrentAudio({
  240. id: '',
  241. answer: {
  242. source: '',
  243. audioTime: 0
  244. }
  245. })
  246. },
  247. //audio事件
  248. handleAudioFun() {
  249. this.innerAudio.onPlay(() => {
  250. this.isplay = true;
  251. console.log("播放录音了");
  252. this.questionItem.loading = false;
  253. });
  254. this.innerAudio.onTimeUpdate(() => {
  255. //console.log("时间更新", this.innerAudio.currentTime);
  256. /* this.currentAudioMsg.audioCurrentTime = parseInt(
  257. this.innerAudio.currentTime
  258. ); */
  259. this.currentAudioMsg.audioCurrentTime = this.innerAudio.currentTime;
  260. });
  261. this.innerAudio.onSeeked(() => {
  262. //取this.innerAudio.currentTime为0
  263. console.log("seek完成");
  264. this.isSlider = false;
  265. });
  266. this.innerAudio.onPause(() => {
  267. this.isplay = false;
  268. console.log("暂停");
  269. console.log(this.innerAudio.paused);
  270. });
  271. this.innerAudio.onEnded(() => {
  272. console.log("音频播放完毕");
  273. this.questionItem.answer.isplay = false;
  274. this.questionItem.answer.ispause = false;
  275. /* this.changeCurrentAudio({
  276. id: "",
  277. answer: {
  278. source: "",
  279. audioTime: 0,
  280. },
  281. }); */
  282. this.currentAudioMsg.audioCurrentTime = 0;
  283. this.isplay = false;
  284. });
  285. },
  286. //录音事件
  287. handleRecorderFun() {
  288. this.globalRecorder.onStart(() => {
  289. console.log("开始录音");
  290. uni.hideToast();
  291. this.clockTime();
  292. });
  293. this.globalRecorder.onPause(() => {
  294. console.log("暂停录音");
  295. this.cleanTime();
  296. });
  297. this.globalRecorder.onStop((res) => {
  298. console.log("录音完成");
  299. //录音自动结束 和 暂停时点击删除 的情况
  300. if (this.questionItem.recordStatus === 2) {
  301. this.questionItem.recordStatus = 4;
  302. }
  303. console.log('status',this.questionItem.recordStatus)
  304. console.log("res", JSON.stringify(res));
  305. this.cleanTime();
  306. //初始化音频播放
  307. this.innerAudio.stop();
  308. this.isplay = false;
  309. this.innerAudio.src = res.tempFilePath;
  310. console.log('秒数',this.audioCount)
  311. this.changeCurrentAudio({
  312. id: "",
  313. answer: {
  314. source: res.tempFilePath,
  315. audioTime: this.audioCount/1000,
  316. },
  317. });
  318. this.pageLoading = false;
  319. });
  320. this.globalRecorder.onError((res) => {
  321. console.log('err',res.errMsg)
  322. uni.showToast({
  323. title:res.errMsg,
  324. icon:'none'
  325. })
  326. //开始录音失败
  327. if(res.errMsg.includes('start')){
  328. this.questionItem.recordStatus = 1;
  329. }
  330. });
  331. /* this.globalRecorder.onFrameRecorded((res) => {
  332. console.log("?", res);
  333. }); */
  334. },
  335. async getQuestionItem(id) {
  336. const res = await apiGetQuestion({
  337. question_id: id,
  338. });
  339. if (res.code === 200) {
  340. this.questionItem = res.data;
  341. const { audio_list } = res.data;
  342. let temp = {};
  343. if (audio_list.length > 0) {
  344. temp = {
  345. source: res.data.audio_list[0].audio_url,
  346. audioTime: parseInt(res.data.audio_list[0].audio_play_seconds),
  347. isplay: false,
  348. ispause: false,
  349. };
  350. } else {
  351. temp = {
  352. source: "",
  353. audioTime: 0,
  354. isplay: false,
  355. ispause: false,
  356. };
  357. }
  358. let readKey = "";
  359. const { is_inner } = this.userInfo;
  360. if (is_inner === 1) {
  361. readKey = "replier_is_read";
  362. } else {
  363. readKey = "is_read";
  364. }
  365. //console.log('readKey',readKey)
  366. this.questionItem[readKey] !== 1 &&
  367. (await apiSetRead({
  368. question_ids: this.questionItem.community_question_id + "",
  369. }));
  370. this.questionItem.id = res.data.community_question_id;
  371. this.questionItem.answer = temp;
  372. this.questionItem.loading = false;
  373. this.questionItem.recordStatus = res.data.reply_status === 3 ? 4 : 1;
  374. }else{
  375. //问题被删除的情况,返回小程序首页
  376. setTimeout(()=>{
  377. uni.switchTab({ url:'/pages/report/report' });
  378. },1000)
  379. }
  380. },
  381. changeRecodeStatus() {
  382. console.log('a',this.questionItem.recordStatus)
  383. //根据questionItem.recordStatus
  384. if (this.questionItem.recordStatus === 1) {
  385. const that = this
  386. //检查是否有权限
  387. uni.getSetting({
  388. success(res){
  389. if(res.authSetting['scope.record']){
  390. that.startRecord()
  391. }else{
  392. that.getRecordAuth()
  393. }
  394. }
  395. });
  396. } else if (this.questionItem.recordStatus === 2) {
  397. //暂停录音
  398. this.globalRecorder.pause();
  399. this.questionItem.recordStatus = 3;
  400. } else if (this.questionItem.recordStatus === 3) {
  401. //继续录音
  402. this.globalRecorder.resume();
  403. this.clockTime();
  404. this.questionItem.recordStatus = 2;
  405. } else {
  406. //结束录音
  407. this.globalRecorder.stop();
  408. //this.cleanTime();
  409. }
  410. },
  411. //获取录音授权
  412. getRecordAuth(){
  413. const {community_question_id} = this.questionItem
  414. uni.openSetting({
  415. success(res){
  416. //刷新页面
  417. if(res.authSetting['scope.record']){
  418. uni.redirectTo({url: `/pages-question/answerDetail?id=${community_question_id}`})
  419. }
  420. }
  421. })
  422. //this.questionItem.recordStatus = 1
  423. },
  424. //开启录音
  425. startRecord(){
  426. console.log(this.globalRecorder)
  427. this.globalRecorder.start({ duration: 180000, format: "mp3" });
  428. uni.showToast({
  429. title:'加载中',
  430. icon:'loading'
  431. })
  432. this.questionItem.recordStatus = 2;
  433. },
  434. //上传音频
  435. async uploadAudio() {
  436. const res = await uploadAudioToServer(this.innerAudio.src);
  437. if (res.code === 200) {
  438. this.audioItem = res.data;
  439. } else {
  440. //重新录
  441. this.questionItem.recordStatus = 1;
  442. this.audioCount = 0;
  443. this.audioTime = this.moment(this.audioCount).format("mm:ss");
  444. }
  445. },
  446. //录音操作:完成/删除/发布
  447. async handleRecode(type) {
  448. if (type==='finish') {
  449. this.questionItem.recordStatus = 4;
  450. this.changeRecodeStatus();
  451. }
  452. if (type === "finish") {
  453. //生成音频,更改页面布局
  454. this.pageLoading = true;
  455. } else if (type === "delete") {
  456. //重新录
  457. if(this.questionItem.recordStatus===3)this.globalRecorder.stop();
  458. this.questionItem.recordStatus = 1;
  459. this.innerAudio.stop();
  460. this.isplay = false;
  461. this.audioItem = null;
  462. this.audioCount = 0;
  463. this.scrollTop = 0;
  464. this.recordStartTime = null;
  465. this.audioTime = this.moment(this.audioCount * 1000).format("mm:ss");
  466. } else {
  467. //发布
  468. if (!this.audioItem) {
  469. await this.uploadAudio();
  470. }
  471. //如果上传音频成功
  472. if (this.questionItem.recordStatus === 4) {
  473. //发布回答
  474. const res = await apiReplayAsk({
  475. question_id: this.questionItem.community_question_id,
  476. audio_list: [{ ...this.audioItem, sort: 1 }],
  477. });
  478. if (res.code === 200) {
  479. uni.showToast({
  480. title: "发布成功",
  481. icon: "success",
  482. duration: 500,
  483. });
  484. setTimeout(() => {
  485. //关闭当前页面,跳转到我的回答
  486. uni.navigateBack({ delta: 1 });
  487. }, 500);
  488. }
  489. }
  490. }
  491. },
  492. //(提问者)问题已被回答,点击回答音频
  493. handleAudio(item) {
  494. const { source, isplay, ispause } = item.answer;
  495. if (isplay) {
  496. //说明是播放->暂停
  497. this.innerAudio.pause();
  498. this.questionItem.answer.isplay = false;
  499. this.questionItem.answer.ispause = true;
  500. } else if (ispause) {
  501. //说明是暂停->播放
  502. this.innerAudio.play();
  503. this.questionItem.answer.isplay = true;
  504. this.questionItem.answer.ispause = false;
  505. } else {
  506. //console.log("aaa", source, this.innerAudio.src);
  507. //说明是第一次播放或播放完
  508. this.changeCurrentAudio(item);
  509. this.innerAudio.stop();
  510. this.innerAudio.src = source;
  511. this.handleAudioPlay();
  512. this.questionItem.answer.isplay = true;
  513. }
  514. },
  515. //(回答者)问题被回答,点击回答音频
  516. handleAudioByReplay() {
  517. this.isplay = !this.isplay;
  518. if (this.innerAudio.paused) {
  519. this.innerAudio.play();
  520. } else {
  521. this.innerAudio.pause();
  522. }
  523. this.playIconKey++; //更新音频播放图标
  524. },
  525. //拖动音频进度条
  526. sliderChange(e) {
  527. console.log("拖动完成?");
  528. //this.innerAudio.pause();
  529. const value = e.detail.value;
  530. this.innerAudio.seek(value);
  531. this.currentAudioMsg.audioCurrentTime = value;
  532. },
  533. sliderChanging() {
  534. this.isSlider = true;
  535. },
  536. //切换当前播放音频
  537. changeCurrentAudio(item) {
  538. const { id } = item;
  539. const { source, audioTime } = item.answer;
  540. this.currentAudioMsg = {
  541. id: id,
  542. audioCurrentTime: 0 * 1000,
  543. audioTime: audioTime,
  544. audioCurrentUrl: source,
  545. };
  546. if (id) {
  547. console.log("?");
  548. this.questionItem.loading = true;
  549. }
  550. },
  551. //录音计时
  552. clockTime() {
  553. console.log("开始录音计时");
  554. if (!this.recordStartTime) {
  555. this.recordStartTime = Date.now();
  556. }
  557. //console.log(this.recordStartTime);
  558. this.timer = setInterval(() => {
  559. if (this.timer) {
  560. this.audioCount += 30;
  561. this.audioTime = this.moment(this.audioCount).format("mm:ss.SS");
  562. //this.audioTime = this.moment(Date.now() - this.recordStartTime).format("mm:ss.SS");
  563. this.scrollTop+=1;
  564. }
  565. }, 30);
  566. },
  567. //清除录音计时
  568. cleanTime() {
  569. console.log("结束录音计时");
  570. //console.log('aa',this.recordStopTime)
  571. clearTimeout(this.timer);
  572. this.playIconKey++; //更新录音暂停播放图标
  573. //this.audioTime = this.moment(this.audioCount).format("mm:ss.SS");
  574. },
  575. //scroll-view滑动到最右
  576. handleScrolltolower(){
  577. console.log('a',this.scrollTop)
  578. this.scrollTop-=150;
  579. }
  580. },
  581. };
  582. </script>
  583. <style scoped lang="scss">
  584. .flex-column {
  585. display: flex;
  586. flex-direction: column;
  587. }
  588. .answerdetail-page {
  589. padding: 50rpx 30rpx 0 30rpx;
  590. height: calc(100vh - calc(50px + env(safe-area-inset-bottom)));
  591. box-sizing: border-box;
  592. .question-wrap {
  593. .question-item::after {
  594. height: 0;
  595. }
  596. }
  597. .record-wrap {
  598. margin: 0 -30rpx;
  599. flex: 1;
  600. .record {
  601. flex: 1;
  602. justify-content: center;
  603. align-items: center;
  604. .no-record {
  605. text-align: center;
  606. color: #999999ff;
  607. font-size: 28rpx;
  608. height:130rpx;
  609. image {
  610. width: 94rpx;
  611. }
  612. }
  613. /* .record-time {
  614. justify-self: flex-end;
  615. font-size: 60rpx;
  616. } */
  617. .recode-image {
  618. width: 100%;
  619. height: 100%;
  620. background-color: #fafafaff;
  621. display: flex;
  622. align-items: center;
  623. .scroll-view {
  624. width: 100%;
  625. white-space: nowrap;
  626. ::-webkit-scrollbar{
  627. width:0;
  628. height:0;
  629. display:none;
  630. color:transparent;
  631. }
  632. image {
  633. width: 421rpx;
  634. height: 100rpx;
  635. margin-right: 6rpx;
  636. }
  637. }
  638. }
  639. }
  640. .record-tool {
  641. justify-content: center;
  642. align-items: center;
  643. border-top: 1rpx solid #e6e6e6ff;
  644. height: 400rpx;
  645. position: relative;
  646. .hint {
  647. color: #ee3636ff;
  648. font-size: 28rpx;
  649. position: absolute;
  650. top: 50rpx;
  651. }
  652. .record-time{
  653. font-size: 60rpx;
  654. }
  655. .record-btn-wrap {
  656. margin-top: 38rpx;
  657. display: flex;
  658. width: 100%;
  659. justify-content: space-around;
  660. align-items: center;
  661. &.center {
  662. justify-content: center;
  663. }
  664. text {
  665. color: #999999ff;
  666. font-size: 32rpx;
  667. &.active {
  668. color: #ee3636ff;
  669. }
  670. }
  671. .switch {
  672. width: 118rpx;
  673. height: 118rpx;
  674. padding: 12rpx;
  675. box-sizing: border-box;
  676. border-radius: 50%;
  677. border: 1rpx solid #ee3636ff;
  678. /* background-color: rgb(68, 46, 46); */
  679. position: relative;
  680. display: flex;
  681. align-items: center;
  682. justify-content: center;
  683. image {
  684. position: absolute;
  685. width: 36rpx;
  686. z-index: 5;
  687. }
  688. &::after {
  689. content: "";
  690. display: inline-block;
  691. width: 100%;
  692. height: 100%;
  693. border-radius: 50%;
  694. background-color: #ee3636ff;
  695. }
  696. }
  697. }
  698. }
  699. .record-play {
  700. margin: 20rpx 30rpx;
  701. .audio-wrap {
  702. background-color: #fdf8f2ff;
  703. padding: 30rpx;
  704. border-radius: 16rpx;
  705. }
  706. .play {
  707. display: flex;
  708. justify-content: space-between;
  709. .slider-box {
  710. margin-left: 15rpx;
  711. flex: 1;
  712. slider {
  713. margin: 15rpx 0 0 0;
  714. }
  715. .slider-time {
  716. display: flex;
  717. justify-content: space-between;
  718. text {
  719. color: #999999ff;
  720. font-size: 22rpx;
  721. }
  722. }
  723. }
  724. }
  725. .audio-delete {
  726. margin-top: 20rpx;
  727. width: 100%;
  728. height: 40rpx;
  729. display: flex;
  730. justify-content: flex-end;
  731. align-items: center;
  732. image {
  733. height: 40rpx;
  734. }
  735. text {
  736. margin-left: 10rpx;
  737. color: #999999ff;
  738. font-size: 28rpx;
  739. }
  740. }
  741. .audio-pub {
  742. margin-top: 120rpx;
  743. background-color: #e6b77dff;
  744. color: #fff;
  745. height: 80rpx;
  746. line-height: 80rpx;
  747. border-radius: 40rpx;
  748. text-align: center;
  749. position: relative;
  750. width: 390rpx;
  751. left: 50%;
  752. margin-left: -170rpx;
  753. }
  754. }
  755. }
  756. }
  757. </style>