No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

1669 líneas
37 KiB

  1. <template>
  2. <view class="translation" @click="changeEditing(false)">
  3. <view style="width: 690rpx;height: 64rpx;margin: 0 auto;margin-top: 30rpx;background: #F2F2F2;border-radius: 32rpx;
  4. display: flex;align-items: center;" @tap="toKeywordsearch()">
  5. <image style="width: 28rpx;height: 28rpx;margin-left: 30rpx;" src="/static/images/search.png" mode=""></image>
  6. <text style="margin-left: 10rpx;color: #999999;font-size: 24rpx;">请输入关键字</text>
  7. </view>
  8. <view class="top" style="margin-top: 30rpx;">
  9. <view class="title">
  10. <view class="call_record_time">{{date}}</view>
  11. <view class="hash" @click="gotoChat" v-if="commentList.length != 0">
  12. 查看全部评论
  13. </view>
  14. </view>
  15. <view class="call_record_time_one" >接待时长 {{alltimeStr}}
  16. <u-icon name="list-dot" color="#333" size="48" @click="showFile"></u-icon>
  17. <view class="file-change" v-if="isshowFile">
  18. <view class="file-item" @click="filechange(item,index)"
  19. :class="csdFileindex == index ? 'fileactive' : ''"
  20. v-for="(item,index) in luyinList"
  21. :key="index">录音文件{{index+1}}</view>
  22. </view>
  23. </view>
  24. <view class="audio-container">
  25. <view class="audio-play" @tap="changePlayState">
  26. <image class="image" mode="widthFix" :src="audioPlay ? 'https://qufang.oss-cn-beijing.aliyuncs.com/upload/icon/xcx/jjycrm/pause.png' : 'https://qufang.oss-cn-beijing.aliyuncs.com/upload/icon/xcx/jjycrm/play.png'"></image>
  27. </view>
  28. <view class="audio-slider">
  29. <view class="audio-time">
  30. <text>{{currentTimeStr}}</text>
  31. </view>
  32. <slider class="slider" min="0" :max="sliderMax" @change="sliderChangeComplate" block-size="14"
  33. :value="sliderValue" activeColor="blue"></slider>
  34. <view class="audio-time">
  35. <text>{{timeStr}}</text>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. <scroll-view :scroll-top="scrollTop"
  41. lower-threshold='20px' @scrolltolower="ltolower()" :scroll-into-view="scrollId" scroll-y="true"
  42. class="text scroll-Y">
  43. <!-- 音频识别模块 -->
  44. <view>
  45. <!-- 聊天记录-->
  46. <view class="dialog-block" v-for="(dialog,i) in dialogList" :key="i">
  47. <view :id="'dialog'+i" class="fileName">录音文件</view>
  48. <view class="text" :id="'dialog'+csdFileindex+'text'+index"
  49. :class="{active: item.bg < playNow && item.ed > playNow && i== 0}"
  50. v-for="(item,index) in dialog.message" :key="index" :data-speaker="item.speaker"
  51. >
  52. <view class="avatar">
  53. <text v-if="item.speaker == 1" style="color: #60CBEC;">A</text>
  54. <text v-if="item.speaker == 2" style="color: #EC8B47;">B</text>
  55. <text v-if="item.speaker == 3" style="color: #4F861E;">C</text>
  56. <text v-if="item.speaker == 4" style="color: #9F61C8;">D</text>
  57. <text v-if="item.speaker == 5" style="color: #4980C8;">E</text>
  58. <text v-if="item.speaker == 6" style="color: #60CBEC;">F</text>
  59. <text v-if="item.speaker == 7" style="color: #EC8B47;">G</text>
  60. <text v-if="item.speaker == 8" style="color: #4F861E;">H</text>
  61. <text v-if="item.speaker == 9" style="color: #9F61C8;">I</text>
  62. </view>
  63. <view class="content">
  64. <view v-html="item.onebest"></view>
  65. </view>
  66. </view>
  67. </view>
  68. <!-- 点赞 -->
  69. <view class="likeArea" :class="{'liked':isLiked}">
  70. <image :src="isLiked?'/static/images/recordingManagement/likeActive.png':'/static/images/recordingManagement/like_gray.png'"
  71. mode=""></image>
  72. </view>
  73. <view class="hash" id="hash">
  74. </view>
  75. <!-- 评语列表 -->
  76. <view class="chat" v-if="commentList.length != 0">
  77. <view class="total">
  78. 全部评论(共{{commentList.length}}条)
  79. </view>
  80. <view class="list">
  81. <view class="message" v-for="(item,index) in commentList" :key="index">
  82. <u-avatar class="avator" size="72" :src="item.commentPic ||'https://qufang.oss-cn-beijing.aliyuncs.com/upload/icon/xcx/jjycrm/my/headPicture.png'"></u-avatar>
  83. <view class="right">
  84. <view class="name">
  85. {{item.commentName||"未知昵称"}}
  86. </view>
  87. <view class="subtitle" v-if="item.commentAutoGraph">
  88. {{item.commentAutoGraph}}
  89. </view>
  90. <view class="answer" v-if="item.replyName">
  91. 回复@{{item.replyName}}
  92. </view>
  93. <view class="content" v-if="item.content">
  94. {{item.content}}
  95. </view>
  96. <view class="pic" v-if="item.picUrl">
  97. <image style="width: 100%;max-width: 240px;" :src="item.picUrl" mode="widthFix"></image>
  98. </view>
  99. <view class="bottom">
  100. <view class="time">
  101. {{item.createTime}}
  102. </view>
  103. <view class="button" v-if="myId != item.commentUser" @click.stop="answer(item.commentUser,item.id)">
  104. 回复
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. </scroll-view>
  113. <!-- 写评价 -->
  114. <view class="bottomArea">
  115. <image class="voice" @click.stop="changeVoiceShow" src="/static/images/recordingManagement/voice.png" mode=""></image>
  116. <view class="inputArea">
  117. <textarea :value="content" :focus="textareaFocus" type="text" @input="changeContent" :auto-height="true" class="editor"
  118. :class="{'active':editing}" @click.stop="changeEditing(true)" @confirm="sendComment">
  119. </textarea>
  120. <view class="placeholder" :class="{'editing':editing}" v-if="!content">写评价</view>
  121. <image class="edit" v-if="!editing && content == ''" src="/static/images/recordingManagement/edit.png" mode=""></image>
  122. </view>
  123. <image class="like" v-if="myId != createUser && !editing" @click="changeLike" src="/static/images/recordingManagement/like.png"
  124. mode=""></image>
  125. <image class="add" @click.stop="uploadImage" v-if="!editing && content == ''" src="/static/images/recordingManagement/add.png"
  126. mode=""></image>
  127. <view class="send" @click="sendComment" v-if="content!=''">
  128. 发送
  129. </view>
  130. </view>
  131. <!-- 回到顶部 -->
  132. <!-- <view class="backTop" @click="gotoTop">
  133. <image src="/static/images/backTop.png" mode=""></image>
  134. </view> -->
  135. <!-- 语音输入 -->
  136. <cover-view class="voiceContent" v-if="voiceShow" @click="changeVoiceShow">
  137. <cover-view class="box" @click.stop="" @touchstart="voiceStart" @touchend="voiceEnd">
  138. <cover-view class="center">
  139. <cover-image class="voice" src="/static/images/voice.png" mode="widthFix"></cover-image>
  140. <cover-view class="text">
  141. {{isRecording?'正在输入':'长按语音输入'}}
  142. </cover-view>
  143. </cover-view>
  144. </cover-view>
  145. </cover-view>
  146. </view>
  147. </template>
  148. <script>
  149. var app = getApp();
  150. var util = require("../../../utils/util.js");
  151. var config = require("../../../config");
  152. var plugin = requirePlugin("WechatSI")
  153. let manager = plugin.getRecordRecognitionManager();
  154. export default {
  155. data() {
  156. return {
  157. dialogList: [], // 录音对话转移列表
  158. isshowFile: false, // 录音文件默认隐藏
  159. luyinList: [], //录音文件列表
  160. id: "",
  161. customerId: '',
  162. message: "", //聊天记录表
  163. durationTimeStr: "",
  164. autoLoad: true,
  165. playNow: 0,
  166. scrollTop: 0,
  167. scrollId: "",
  168. editing: false,
  169. isLiked: null,
  170. createUser: null,
  171. commentList: [], //评论列表
  172. content: "",
  173. voiceShow: false,
  174. isRecording: false,
  175. answerUserId: null,
  176. answerId: null,
  177. textareaFocus: false,
  178. myId: uni.getStorageSync("weapp_session_userInfo_data").accountId,
  179. audioPlay: false, //当前的播放状态控制
  180. sliderValue: 0, //进度条最小值
  181. end: false,
  182. sliderMax: 0, //进度条最大值
  183. innerAudioContext: "", //播放实例
  184. currentTimeStr: "00:00", //当前进度的时间
  185. timeStr: "00:00", //总的时间
  186. recordPath: "",
  187. csdFileindex:0,
  188. date: "", //年月日
  189. alltimeStr:"00:00",
  190. num: 0, //上拉 转写文件下标
  191. Bnum: 0, //下拉 转写文件下标
  192. status:0,
  193. timer:null
  194. };
  195. },
  196. onLoad: function(options) {
  197. this.customerId=options.customerId,
  198. this.getdianzan()
  199. this.getCommentList();
  200. // 当进入页面时调一次接口添加浏览量
  201. this.getView()
  202. let that=this
  203. this.timer=setTimeout(function(){
  204. that.addHot()
  205. },30000)
  206. },
  207. onShow: function() {
  208. wx.enableAlertBeforeUnload({
  209. message: "是否确认退出详情页面?",
  210. success: function (res) {
  211. console.log("方法注册成功:", res);
  212. },
  213. fail: function (errMsg) {
  214. console.log("方法注册失败:", errMsg);
  215. },
  216. });
  217. this.initRecord();
  218. let pages = getCurrentPages();
  219. let currPage = pages[pages.length - 1]; //当前页面
  220. let info = currPage.data.info
  221. this.innerAudioContext = uni.createInnerAudioContext();
  222. this.innerAudioContext.autoplay = false;
  223. this.innerAudioContext.title = '音频';
  224. this.onPlay()
  225. this.onPause()
  226. this.onCanplay()
  227. this.onEnded()
  228. this.onSeeking()
  229. this.onSeeked()
  230. this.TimeUpdate()
  231. this.getluyinList(info);
  232. },
  233. // 在组件实例被从页面节点树移除时执行
  234. destroyed: function() {
  235. clearTimeout(this.timer)
  236. //暂停
  237. this.innerAudioContext.pause()
  238. // 销毁
  239. this.innerAudioContext.destroy();
  240. },
  241. // 销毁实例
  242. onUnload: function() {
  243. //暂停
  244. this.innerAudioContext.pause()
  245. // 销毁
  246. this.innerAudioContext.destroy();
  247. },
  248. methods: {
  249. toKeywordsearch(){
  250. this.innerAudioContext.destroy();
  251. uni.navigateTo({
  252. url: '/pages/learning/Keywordsearch?customerId='+this.customerId +"&status="+this.status
  253. })
  254. },
  255. getView(){
  256. this.$u.get('/addtodigest/addPageviews',{
  257. id:this.customerId
  258. })
  259. .then(res=>{
  260. // console.log(res)
  261. })
  262. },
  263. addHot(){
  264. // console.log('30')
  265. this.$u.get('/addtodigest/addHeat',{
  266. id:this.customerId
  267. })
  268. .then(res=>{
  269. // console.log(res)
  270. })
  271. },
  272. onPlay(){
  273. this.innerAudioContext.onPlay(() => {
  274. // 播放监听
  275. console.log('播放!');
  276. this.audioPlay = true;
  277. });
  278. },
  279. onPause(){
  280. this.innerAudioContext.onPause(() => {
  281. // 暂停监听
  282. console.log('暂停播放!');
  283. this.audioPlay = false
  284. });
  285. },
  286. onCanplay() {
  287. this.innerAudioContext.onCanplay((callback) => {
  288. console.log("缓冲回调",this.innerAudioContext.duration);
  289. })
  290. },
  291. onEnded(){
  292. this.innerAudioContext.onEnded(() => {
  293. // 结束播放监听
  294. console.log('播放结束!');
  295. this.audioPlay = false;
  296. this.qeihuanwenjian()
  297. });
  298. },
  299. onSeeking(){
  300. this.innerAudioContext.onSeeking((res) => {
  301. console.log("进行跳转", res);
  302. })
  303. },
  304. onSeeked(){
  305. this.innerAudioContext.onSeeked((res) => {
  306. console.log("结束跳转", res);
  307. this.$forceUpdate()
  308. });
  309. },
  310. TimeUpdate(){
  311. this.innerAudioContext.onTimeUpdate(() => {
  312. const {
  313. currentTime,
  314. duration
  315. } = this.innerAudioContext;
  316. this.playNow = parseInt(currentTime * 1000)
  317. if (this.dialogList.length == 0) {
  318. } else {
  319. const message = this.dialogList[0].message
  320. for (let i = 0; i < message.length; i++) {
  321. if (Number(message[i].bg) < this.playNow && Number(message[i].ed) > this.playNow) {
  322. this.scrollId = "dialog" + this.csdFileindex + "text" + i;
  323. break;
  324. }
  325. }
  326. }
  327. const currTimeStr = this.formatTime(currentTime);
  328. this.sliderValue = parseInt(currentTime);
  329. // 变动的时间
  330. this.currentTimeStr = currTimeStr;
  331. //进度条最大值
  332. this.sliderMax = this.luyinList[this.csdFileindex].recordDuration;
  333. this.$forceUpdate()
  334. });
  335. },
  336. //下一页
  337. ltolower() {
  338. var lengthcz=this.luyinList.length-1;
  339. if (this.num >= lengthcz) {
  340. uni.showToast({
  341. title: '到底了',
  342. duration: 2000
  343. });
  344. return
  345. }else {
  346. this.num=this.num+1;
  347. uni.showLoading({
  348. title: '加载中'
  349. });
  350. setTimeout(function() {
  351. uni.hideLoading();
  352. }, 2000);
  353. uni.request({
  354. url: config.service.getCorpusAnalysis + '?corpusId=' + this.luyinList[this.num].id+"&customerId="+this.customerId, //仅为示例,并非真实接口地址。
  355. method: "GET",
  356. header: {
  357. 'content-type': 'application/json',
  358. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  359. },
  360. success: (data) => {
  361. if (data.data.code == 10000) {
  362. if (data.data.data.audioContent.length == 0) {
  363. setTimeout(function() {
  364. uni.hideLoading();
  365. }, 2000);
  366. } else {
  367. const jsonInfo = JSON.parse(data.data.data.audioContent);
  368. this.dialogList.push({
  369. message: jsonInfo
  370. });
  371. this.dialogList.forEach((asd, idx) => {
  372. asd.message.forEach((qwe, inde) => {
  373. qwe.isshow = false;
  374. })
  375. })
  376. }
  377. }
  378. },
  379. })
  380. }
  381. },
  382. //上一页
  383. rolltoupper() {
  384. if (this.csdFileindex == 0) {
  385. uni.showToast({
  386. title: '到头了',
  387. duration: 2000
  388. });
  389. return
  390. } else if(this.Bnum == 0){
  391. uni.showToast({
  392. title: '到头了',
  393. duration: 2000
  394. });
  395. return
  396. }else {
  397. this.Bnum=this.Bnum-1;
  398. uni.showLoading({
  399. title: '加载中'
  400. });
  401. setTimeout(function() {
  402. uni.hideLoading();
  403. }, 2000);
  404. uni.request({
  405. url: config.service.getCorpusAnalysis + '?corpusId=' + this.luyinList[this.Bnum].id+"&customerId="+this.customerId, //仅为示例,并非真实接口地址。
  406. method: "GET",
  407. header: {
  408. 'content-type': 'application/json',
  409. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  410. },
  411. success: (data) => {
  412. if (data.data.code == 10000) {
  413. if (data.data.data.audioContent.length == 0) {
  414. setTimeout(function() {
  415. uni.hideLoading();
  416. }, 2000);
  417. } else {
  418. const jsonInfo = JSON.parse(data.data.data.audioContent);
  419. this.dialogList.unshift({
  420. message: jsonInfo
  421. });
  422. this.dialogList.forEach((asd, idx) => {
  423. asd.message.forEach((qwe, inde) => {
  424. qwe.isshow = false;
  425. })
  426. })
  427. }
  428. }
  429. },
  430. })
  431. }
  432. },
  433. //获取点赞列表isLiked likegetLike
  434. getdianzan(){
  435. uni.request({
  436. url: config.service.likegetLike + '?targetId=' + this.customerId, //仅为示例,并非真实接口地址。
  437. method:"GET",
  438. header: {
  439. 'content-type': 'application/json',
  440. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  441. },
  442. success: (data) => {
  443. if(data.data.code==10000){
  444. this.isLiked=data.data.data.like;
  445. }else{
  446. uni.hideLoading();
  447. uni.showModal({
  448. title: '提示',
  449. content: '请求数据失败,请重新尝试',
  450. showCancel: false
  451. });
  452. }
  453. },
  454. fail(error) {
  455. uni.hideLoading();
  456. uni.showModal({
  457. title: '提示',
  458. content: '网络异常,请重新尝试',
  459. showCancel: false
  460. });
  461. return false;
  462. }
  463. });
  464. },
  465. // 获取评论列表
  466. getCommentList() {
  467. const that = this;
  468. util.getRequestPromise(config.service.cmmentList + '?targetId=' + this.customerId, {}, false, "GET").then(data => {
  469. let tmp = data;
  470. tmp.reverse();
  471. that.commentList = tmp;
  472. });
  473. },
  474. // 获取录音记录列表
  475. getluyinList(info) {
  476. this.sliderMax = 0; //进度条最大值
  477. this.timeStr = "00:00"; //总的时间
  478. const parames = {
  479. pageNum: 1,
  480. pageSize: 100,
  481. query: {
  482. customerId: this.customerId
  483. }
  484. }
  485. this.$u.post("/corpus/findByPage", parames).then(res => {
  486. if (res && res.length) {
  487. let alltime = 1;
  488. res.forEach(item => {
  489. alltime += item.recordDuration
  490. })
  491. this.alltimeStr = this.getTime(alltime)
  492. if(info){
  493. res.forEach((item,index) => {
  494. if(item.id==info.id){
  495. this.csdFileindex=index;
  496. this.recordPath = res[index].recordPath
  497. this.sliderMax = this.getTime(res[index].recordDuration)
  498. this.timeStr = this.getTime(res[index].recordDuration)
  499. this.date = res[index].receptionTime;
  500. this.isshowFile = false;
  501. this.getCorpusAnalysis(info);
  502. this.creatAudio()
  503. var itc=parseInt(info.bg/1000)
  504. this.adasdasdasd(itc)
  505. }
  506. })
  507. }else{
  508. this.recordPath = res[0].recordPath
  509. this.sliderMax = this.getTime(res[0].recordDuration)
  510. this.timeStr = this.getTime(res[0].recordDuration)
  511. this.date = res[0].receptionTime
  512. this.innerAudioContext.src = this.recordPath;
  513. this.changePlayState()
  514. this.luyinList = res;
  515. this.getCorpusAnalysis()
  516. }
  517. }
  518. })
  519. },
  520. //搜索跳转
  521. adasdasdasd(e) {
  522. const currTimeStr = this.formatTime(e)
  523. this.currentTimeStr = currTimeStr
  524. this.innerAudioContext.seek(e);
  525. this.innerAudioContext.play();
  526. },
  527. // 获取转义后的对话结果
  528. getCorpusAnalysis(info){
  529. this.dialogList = [];
  530. uni.showLoading({
  531. title: '加载中'
  532. });
  533. uni.request({
  534. url: config.service.getCorpusAnalysis + '?corpusId=' + this.luyinList[this.csdFileindex].id+"&customerId="+this.customerId, //仅为示例,并非真实接口地址。
  535. method:"GET",
  536. header: {
  537. 'content-type': 'application/json',
  538. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  539. },
  540. success: (data) => {
  541. if(data.data.code==10000){
  542. if(data.data.data.audioContent.length==0){
  543. setTimeout(function () {
  544. uni.hideLoading();
  545. }, 2000);
  546. }else{
  547. const jsonInfo = JSON.parse(data.data.data.audioContent);
  548. this.dialogList.push({
  549. message: jsonInfo
  550. });
  551. setTimeout(function () {
  552. uni.hideLoading();
  553. }, 2000);
  554. }
  555. }else{
  556. uni.hideLoading();
  557. uni.showModal({
  558. title: '提示',
  559. content: '请求数据失败,请重新尝试',
  560. showCancel: false
  561. });
  562. }
  563. },
  564. fail(error) {
  565. uni.hideLoading();
  566. uni.showModal({
  567. title: '提示',
  568. content: '网络异常,请重新尝试',
  569. showCancel: false
  570. });
  571. return false;
  572. }
  573. });
  574. },
  575. getTime(time) {
  576. return util.formatSecond(time)
  577. },
  578. // 文件切换播放
  579. filechange(item, i) {
  580. this.num=i;//下拉起始位置
  581. this.Bnum=i;
  582. this.innerAudioContext.destroy()
  583. this.csdFileindex=i;
  584. this.recordPath = item.recordPath;
  585. this.sliderMax = this.getTime(item.recordDuration);
  586. this.timeStr = this.getTime(item.recordDuration);
  587. this.date=item.receptionTime;
  588. this.isshowFile=false;
  589. this.creatAudio()
  590. this.getCorpusAnalysis()
  591. },
  592. //录音实例
  593. creatAudio() {
  594. this.innerAudioContext = uni.createInnerAudioContext();
  595. this.innerAudioContext.autoplay = true;
  596. this.innerAudioContext.src = this.recordPath;
  597. this.innerAudioContext.title = '音频';
  598. this.onPlay()
  599. this.onPause()
  600. this.onCanplay()
  601. this.onEnded()
  602. this.onSeeking()
  603. this.onSeeked()
  604. this.TimeUpdate()
  605. },
  606. // 自动播放下一个文件
  607. qeihuanwenjian(){
  608. let index=this.csdFileindex+1;
  609. if(index<this.luyinList.length){
  610. this.csdFileindex=index;
  611. this.getCorpusAnalysis()
  612. let item=this.luyinList[this.csdFileindex];
  613. let i=this.csdFileindex;
  614. this.filechange(item,i)
  615. }
  616. },
  617. // 录音暂停播放
  618. changePlayState() {
  619. if (this.audioPlay == false) {
  620. this.innerAudioContext.play();
  621. } else {
  622. this.innerAudioContext.pause()
  623. }
  624. },
  625. sliderChange() {
  626. },
  627. //音频前进回退
  628. sliderChangeComplate(e) {
  629. const currTimeStr = this.formatTime(e.detail.value)
  630. this.currentTimeStr = currTimeStr
  631. this.innerAudioContext.seek(e.detail.value);
  632. this.innerAudioContext.play();
  633. },
  634. formatTime(num) {
  635. //格式化时间格式
  636. num = num.toFixed(0);
  637. let second = num % 60;
  638. if (second < 10) second = '0' + second;
  639. let min = Math.floor(num / 60);
  640. if (min < 10) min = '0' + min;
  641. return min + ":" + second;
  642. },
  643. //录音文件切换隐藏
  644. showFile() {
  645. this.isshowFile = !this.isshowFile
  646. },
  647. changeVoiceShow() {
  648. this.voiceShow = !this.voiceShow;
  649. },
  650. voiceStart: function() {
  651. manager.start({
  652. lang: "zh_CN"
  653. });
  654. },
  655. voiceEnd: function() {
  656. // uni.showToast();
  657. if (this.isRecording) {
  658. uni.showLoading({
  659. title: "识别中"
  660. })
  661. }
  662. this.voiceShow = false;
  663. this.isRecording = false;
  664. manager.stop();
  665. },
  666. // 语音初始化
  667. initRecord() {
  668. const that = this;
  669. manager.onStart = function(res) {
  670. that.isRecording = true;
  671. // this.voiceState = "onStart:" + res.msg + "正在录音"
  672. };
  673. //有新的识别内容返回,则会调用此事件
  674. manager.onRecognize = (res) => {
  675. console.log('ing' + res.result);
  676. }
  677. // 识别结束事件
  678. manager.onStop = (res) => {
  679. uni.hideLoading();
  680. let newText = that.content + res.result;
  681. if (newText.length > 140) {
  682. newText = newText.substring(0, 140)
  683. }
  684. that.content = newText;
  685. that.textareaFocus = true;
  686. }
  687. // 识别错误事件
  688. manager.onError = (res) => {
  689. uni.hideLoading();
  690. }
  691. },
  692. changeContent(e) {
  693. this.content = e.detail.value;
  694. },
  695. answer(userId, tid) {
  696. this.answerId = tid;
  697. this.answerUserId = userId;
  698. this.editing = true;
  699. this.textareaFocus = true;
  700. },
  701. // 保存评论
  702. sendComment() {
  703. if (this.content == "") {
  704. uni.showToast({
  705. icon: "none",
  706. title: "请输入标题"
  707. })
  708. return;
  709. }
  710. let parames = {
  711. targetId: this.customerId,
  712. content: this.content,
  713. commentType: 1
  714. };
  715. if (this.answerUserId) {
  716. parames.replyCommentId = this.answerId;
  717. parames.replyUser = this.answerUserId;
  718. }
  719. const that = this;
  720. util.getRequestPromise(config.service.saveCmment, parames, false).then(data => {
  721. that.getCommentList();
  722. uni.showToast({
  723. title: "评论成功",
  724. icon: "none"
  725. })
  726. that.textareaFocus = false;
  727. that.content = "";
  728. });
  729. },
  730. uploadImage() {
  731. const that = this;
  732. var parames = {
  733. targetId: that.id,
  734. commentType: 1
  735. };
  736. if (this.answerUserId) {
  737. parames.replyCommentId = this.answerId;
  738. parames.replyUser = this.answerUserId;
  739. }
  740. uni.chooseImage({
  741. count: 1, //默认9
  742. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  743. sourceType: ['album', 'camera'],
  744. success: function(res) {
  745. uni.showLoading({
  746. title: "上传中"
  747. })
  748. uni.uploadFile({
  749. url: config.service.saveCmmentUpload,
  750. filePath: res.tempFilePaths[0],
  751. name: 'file',
  752. header: {
  753. "Access-Token": uni.getStorageSync('weapp_session_login_data').token
  754. },
  755. formData: parames,
  756. success: (uploadFileRes) => {
  757. that.getCommentList();
  758. uni.hideLoading();
  759. uni.showToast({
  760. icon: "none",
  761. title: "上传成功"
  762. })
  763. console.log(uploadFileRes.data);
  764. }
  765. });
  766. }
  767. });
  768. },
  769. uploadAudio() {
  770. },
  771. changeLike() {
  772. uni.showLoading({
  773. title: "请求中",
  774. mask: true
  775. })
  776. if (this.isLiked) {
  777. this.cancelLike();
  778. } else {
  779. this.saveLike();
  780. }
  781. },
  782. // 点赞
  783. saveLike() {
  784. const that = this;
  785. util.getRequestPromise(config.service.saveLike, {
  786. targetId: this.customerId
  787. }, false).then(data => {
  788. that.isLiked = true;
  789. uni.hideLoading();
  790. uni.showToast({
  791. icon: "none",
  792. title: "点赞成功"
  793. })
  794. });
  795. },
  796. // 取消点赞
  797. cancelLike() {
  798. const that = this;
  799. util.getRequestPromise(config.service.cancelLike, {
  800. targetId: this.customerId
  801. }, false).then(data => {
  802. that.isLiked = false;
  803. uni.hideLoading();
  804. uni.showToast({
  805. icon: "none",
  806. title: "取消点赞成功"
  807. })
  808. });
  809. },
  810. gotoChat() {
  811. this.scrollId = null;
  812. this.$nextTick(() => {
  813. this.scrollId = "hash";
  814. })
  815. },
  816. gotoTop() {
  817. this.scrollId = null;
  818. this.$nextTick(() => {
  819. this.scrollId = "top";
  820. })
  821. },
  822. changeEditing(type) {
  823. this.editing = type;
  824. this.answerId = null;
  825. this.answerUserId = null;
  826. this.textareaFocus = false;
  827. this.dialogList.forEach(res=>{
  828. res.message.forEach(asd=>{
  829. asd.isshow=false;
  830. })
  831. })
  832. }
  833. }
  834. };
  835. </script>
  836. <style lang="scss" scoped>
  837. .biaoqiantom{
  838. background-color: #008EF2;
  839. color: #FFFFFF;
  840. border: none;
  841. }
  842. // 表单
  843. .tian-view{
  844. width: 570upx;
  845. background-color: #FFFFFF;
  846. border-bottom: 1px solid #ededee;
  847. display: flex;
  848. min-height: 96rpx;
  849. .tian-view-t1{
  850. width: 20rpx;
  851. font-size: 34rpx;
  852. height: 34rpx;
  853. line-height: 110rpx;
  854. letter-spacing: 0px;
  855. color: red;
  856. }
  857. .tian-view-t2{
  858. width:30%;
  859. min-height: 96rpx;
  860. line-height: 96rpx;
  861. font-size: 34rpx;
  862. color: #333;
  863. }
  864. .tian-view-t3{
  865. width: 61%;
  866. padding-top: 31rpx;
  867. padding-bottom:31rpx;
  868. display:flex;
  869. .tian-input{
  870. width:98%;
  871. font-size: 34rpx;
  872. border: none;
  873. }
  874. }
  875. }
  876. .zhezhoa {
  877. position: fixed;
  878. top: 0;
  879. left: 0;
  880. z-index: 999;
  881. width: 100%;
  882. height: 100vh;
  883. opacity: 0.5;
  884. background-color: #666666;
  885. }
  886. .bounced {
  887. width: 570upx;
  888. background: #FFFFFF;
  889. z-index: 1000;
  890. border-radius: 10upx;
  891. position: fixed;
  892. left: 50%;
  893. top: 50%;
  894. transform: translate(-50%, -50%);
  895. /* 50%为自身尺寸的一半 */
  896. .jiajinghuatit{
  897. width: 100%;
  898. height: 68rpx;
  899. font-size: 30rpx;
  900. text-align: center;
  901. line-height: 68rpx;
  902. }
  903. .jiajinghuaview{
  904. padding: 18rpx 18rpx 18rpx 18rpx;
  905. display: flex;
  906. flex-wrap:wrap;
  907. .jiajinghuaview1{
  908. padding: 8rpx 8rpx 8rpx 8rpx;
  909. font-size: 26rpx;
  910. border-radius: 12rpx;
  911. border: 1px solid #979797;
  912. margin-left: 8rpx;
  913. }
  914. .jighuaview2{
  915. padding: 8rpx 8rpx 8rpx 8rpx;
  916. font-size: 26rpx;
  917. border-radius: 12rpx;
  918. border: 1px solid #979797;
  919. margin-left: 8rpx;
  920. display: flex;
  921. .view1-text{
  922. text-align: center;
  923. // border-right: 1rpx solid red;
  924. }
  925. .view1-img{
  926. width: 50rpx;
  927. }
  928. }
  929. }
  930. .bounced3 {
  931. height: 100upx;
  932. width: 100%;
  933. margin-top: 40upx;
  934. border-top: 1px solid #dddddd;
  935. display: flex;
  936. }
  937. .bounced3-1 {
  938. width: 50%;
  939. height: 100%;
  940. text-align: center;
  941. line-height: 100upx;
  942. border-right: 1px solid #dddddd;
  943. font-size: 36upx;
  944. color: #999999;
  945. }
  946. .bounced3-2 {
  947. width: 50%;
  948. height: 100%;
  949. text-align: center;
  950. line-height: 100upx;
  951. font-size: 36upx;
  952. color: #108ee9;
  953. }
  954. }
  955. .bosdttom{
  956. color: #008EF2;
  957. }
  958. .tab-box {
  959. width: 100%;
  960. display: flex;
  961. justify-content: center;
  962. align-items: center;
  963. .yinpinshibie {
  964. width: 156rpx;
  965. height: 50rpx;
  966. font-size: 36rpx;
  967. font-weight: 400;
  968. color: #333333;
  969. text-align: center;
  970. line-height: 50rpx;
  971. letter-spacing: 2rpx;
  972. margin-right: 188rpx;
  973. &.active {
  974. position: relative;
  975. &::after {
  976. position: absolute;
  977. content: '';
  978. width: 119rpx;
  979. height: 8rpx;
  980. background: #008EF2;
  981. border-radius: 4rpx;
  982. top: 50rpx;
  983. right: 0;
  984. left: 0;
  985. margin: 0 auto;
  986. }
  987. }
  988. }
  989. .rate {
  990. width: 156rpx;
  991. height: 50rpx;
  992. font-size: 36rpx;
  993. font-weight: 400;
  994. color: #333333;
  995. line-height: 50rpx;
  996. letter-spacing: 2rpx;
  997. text-align: center;
  998. &.active {
  999. position: relative;
  1000. &::after {
  1001. position: absolute;
  1002. content: '';
  1003. width: 119rpx;
  1004. height: 8rpx;
  1005. background: #008EF2;
  1006. border-radius: 4rpx;
  1007. top: 50rpx;
  1008. right: 0;
  1009. left: 0;
  1010. margin: 0 auto;
  1011. }
  1012. }
  1013. }
  1014. }
  1015. .dialog-block {
  1016. margin: 20rpx 0;
  1017. border-bottom: 1px solid #ccc;
  1018. .fileName {
  1019. text-align: center;
  1020. margin: 10rpx auto;
  1021. width: 115rpx;
  1022. height: 42rpx;
  1023. line-height: 42rpx;
  1024. background: #EFEFEF;
  1025. border-radius: 4rpx;
  1026. font-size: 20rpx;
  1027. font-weight: 400;
  1028. color: #333333;
  1029. }
  1030. }
  1031. // 评分
  1032. .rate-box {
  1033. padding: 10rpx 20rpx;
  1034. .date {
  1035. width: 300rpx;
  1036. height: 33rpx;
  1037. font-size: 24rpx;
  1038. font-weight: 400;
  1039. color: #333333;
  1040. line-height: 33rpx;
  1041. letter-spacing: 1rpx;
  1042. margin-bottom: 8rpx;
  1043. }
  1044. .title {
  1045. width: 100%;
  1046. height: 42rpx;
  1047. font-size: 30rpx;
  1048. font-weight: 500;
  1049. color: #333333;
  1050. line-height: 42rpx;
  1051. letter-spacing: 2rpx;
  1052. margin-bottom: 20rpx;
  1053. }
  1054. .level1 {
  1055. display: flex;
  1056. align-items: center;
  1057. .level-name {
  1058. width: 104rpx;
  1059. height: 33rpx;
  1060. font-size: 24rpx;
  1061. font-weight: 500;
  1062. color: #333333;
  1063. line-height: 33rpx;
  1064. letter-spacing: 1rpx;
  1065. margin-right: 10rpx;
  1066. }
  1067. .level-progress {
  1068. flex: 1;
  1069. border-radius: 11rpx;
  1070. height: 21rpx;
  1071. background-color: #BEE4FF;
  1072. position: relative;
  1073. .color {
  1074. width: 0;
  1075. position: absolute;
  1076. top: 0;
  1077. left: 0;
  1078. height: 21rpx;
  1079. border-radius: 11rpx 0 0 11rpx;
  1080. background-color: #008EF2;
  1081. }
  1082. }
  1083. .level-rate {
  1084. width: 65rpx;
  1085. height: 33rpx;
  1086. font-size: 24rpx;
  1087. font-weight: 500;
  1088. color: #333333;
  1089. line-height: 33rpx;
  1090. letter-spacing: 1rpx;
  1091. margin: 0 20rpx 0 15rpx;
  1092. }
  1093. .arrow {
  1094. width: 37rpx;
  1095. height: 21rpx;
  1096. padding: 5rpx 20rpx;
  1097. }
  1098. .rotatearrow {
  1099. transform: rotate(270deg);
  1100. }
  1101. }
  1102. .level1-subbox {
  1103. display: flex;
  1104. margin-top: 20rpx;
  1105. flex-wrap: wrap;
  1106. .sub-name {
  1107. width: 50%;
  1108. display: flex;
  1109. margin-bottom: 18rpx;
  1110. .subitem-name {
  1111. width: 104rpx;
  1112. height: 33rpx;
  1113. font-size: 24rpx;
  1114. font-weight: 400;
  1115. color: #999999;
  1116. line-height: 33rpx;
  1117. letter-spacing: 1rpx;
  1118. margin-right: 12rpx;
  1119. }
  1120. .checkimg {
  1121. width: 27rpx;
  1122. height: 27rpx;
  1123. }
  1124. }
  1125. }
  1126. }
  1127. .luyin {
  1128. height: 100rpx;
  1129. width: 100%;
  1130. }
  1131. .translation {
  1132. padding-left: 30rpx;
  1133. padding-right: 30rpx;
  1134. background: #FFFFFF;
  1135. display: flex;
  1136. flex-direction: column;
  1137. height: 100vh;
  1138. }
  1139. .translation .top {
  1140. margin: 0 -30upx;
  1141. padding: 0 30upx;
  1142. background: #ffffff;
  1143. border-bottom: 1rpx solid #F2F2F2;
  1144. padding-bottom: 10rpx;
  1145. }
  1146. .translation .top .title {
  1147. display: flex;
  1148. justify-content: space-between;
  1149. .hash {
  1150. color: rgba(21, 144, 233, 1);
  1151. font-size: 24upx;
  1152. }
  1153. }
  1154. .call_record_time {
  1155. height: 44rpx;
  1156. font-size: 28rpx;
  1157. font-weight: 600;
  1158. color: #008EF2;
  1159. line-height: 44rpx;
  1160. }
  1161. .call_record_time_one {
  1162. height: 48rpx;
  1163. font-size: 24rpx;
  1164. font-weight: 500;
  1165. color: #70798d;
  1166. line-height: 48rpx;
  1167. display: flex;
  1168. justify-content: space-between;
  1169. position: relative;
  1170. .diangweitupian{
  1171. width: 46rpx;
  1172. height: 46rpx;
  1173. // border: 1px solid red;
  1174. position: absolute;
  1175. top: 0rpx;
  1176. right: 75rpx;
  1177. }
  1178. .file-change {
  1179. position: absolute;
  1180. top: 50rpx;
  1181. right: 0rpx;
  1182. width: 184rpx;
  1183. background: #FFFFFF;
  1184. box-shadow: 0rpx 0rpx 6rpx 2rpx rgba(230, 230, 230, 0.5);
  1185. border-radius: 4rpx;
  1186. z-index: 99;
  1187. height: auto;
  1188. max-height: 600rpx;
  1189. overflow: auto;
  1190. }
  1191. .file-item {
  1192. width: 184rpx;
  1193. height: 60rpx;
  1194. line-height: 60rpx;
  1195. text-align: center;
  1196. font-size: 30rpx;
  1197. font-weight: 400;
  1198. color: #333333;
  1199. border-bottom: 1rpx solid #E2E2E2;
  1200. }
  1201. .file-item:last-child {
  1202. border: 0
  1203. }
  1204. .fileactive {
  1205. color: #008EF2
  1206. }
  1207. }
  1208. .scroll-Y {
  1209. font-size: 36upx;
  1210. color: #999999;
  1211. background: #FFFFFF;
  1212. margin-top: 30upx;
  1213. flex: 1;
  1214. overflow-y: scroll;
  1215. width: 100%;
  1216. }
  1217. .scroll-Y .text {
  1218. margin: 50upx 30upx;
  1219. line-height: 80upx;
  1220. display: flex;
  1221. align-items: center;
  1222. }
  1223. .scroll-Y .text[data-speaker="2"],
  1224. .scroll-Y .text[data-speaker="4"],
  1225. .scroll-Y .text[data-speaker="6"] {
  1226. flex-direction: row-reverse;
  1227. text-align: right;
  1228. .content {
  1229. margin-left: 0;
  1230. margin-right: 30upx;
  1231. background: #F6F6F6;
  1232. color: #999999;
  1233. }
  1234. }
  1235. .scroll-Y .text .avatar {
  1236. width: 64upx;
  1237. height: 64upx;
  1238. line-height: 64upx;
  1239. text-align: center;
  1240. // border: 1rpx solid red;
  1241. font-size: 36rpx;
  1242. border-radius: 50%;
  1243. background: #F2F2F2;
  1244. color: #008EF2;
  1245. // display: flex;
  1246. // justify-content: center;
  1247. // align-items: center;
  1248. // image {
  1249. // width: 40upx;
  1250. // }
  1251. }
  1252. .scroll-Y .text .content {
  1253. margin-left: 30upx;
  1254. line-height: 60rpx;
  1255. text-align: left;
  1256. padding: 0 5px;
  1257. background: #2BC805;
  1258. border-radius: 8upx;
  1259. max-width: 442rpx;
  1260. color: #FFFFFF;
  1261. position: relative;
  1262. .tankuangcss{
  1263. position: absolute;
  1264. top: -53rpx;
  1265. left: -80rpx;
  1266. width: 318rpx;
  1267. height: 68rpx;
  1268. background-color: #333333;
  1269. font-size: 24rpx;
  1270. color: #FFFFFF;
  1271. padding-top: 4rpx;
  1272. padding-bottom:4rpx;
  1273. display: flex;
  1274. align-items: center;
  1275. border-radius: 15rpx;
  1276. }
  1277. }
  1278. .scroll-Y .text.active .content {
  1279. color: #38FFF1;
  1280. position: relative;
  1281. }
  1282. .scroll-Y .text.active[data-speaker="2"] .content,
  1283. .scroll-Y .text.active[data-speaker="4"] .content,
  1284. .scroll-Y .text.active[data-speaker="6"] .content {
  1285. color: #FF7538;
  1286. position: relative;
  1287. }
  1288. .likeArea {
  1289. width: 86upx;
  1290. height: 84upx;
  1291. margin: 20upx auto 38upx auto;
  1292. border-radius: 50%;
  1293. display: flex;
  1294. justify-content: center;
  1295. align-items: center;
  1296. border: 1upx solid #C1C2C1;
  1297. &.liked {
  1298. border: 1upx solid rgba(21, 144, 233, 1);
  1299. }
  1300. image {
  1301. width: 38upx;
  1302. height: 39upx;
  1303. }
  1304. }
  1305. .chat {
  1306. display: flex;
  1307. flex-direction: column;
  1308. border-top: 1upx solid rgba(151, 151, 151, 0.4);
  1309. padding-top: 20upx;
  1310. .total {
  1311. color: rgba(21, 144, 233, 1);
  1312. font-size: 24upx;
  1313. }
  1314. .list {
  1315. display: flex;
  1316. flex-direction: column;
  1317. .message {
  1318. display: flex;
  1319. margin-top: 20upx;
  1320. border-bottom: 1upx solid rgba(151, 151, 151, 0.4);
  1321. padding-bottom: 20upx;
  1322. &:last-child {
  1323. border-bottom: 0;
  1324. }
  1325. .avator {
  1326. margin-left: 120upx;
  1327. }
  1328. &:first-child {
  1329. .avator {
  1330. margin-left: 0;
  1331. }
  1332. }
  1333. .right {
  1334. display: flex;
  1335. flex-direction: column;
  1336. margin-left: 20upx;
  1337. flex: 1;
  1338. .name {
  1339. color: rgba(16, 16, 16, 1);
  1340. font-size: 30upx;
  1341. }
  1342. .subtitle {
  1343. color: rgba(120, 120, 120, 1);
  1344. font-size: 24upx;
  1345. margin-top: 16upx;
  1346. }
  1347. .answer {
  1348. font-size: 24upx;
  1349. color: #787878;
  1350. }
  1351. .content {
  1352. color: rgba(49, 48, 48, 1);
  1353. font-size: 30upx;
  1354. margin-top: 20upx;
  1355. position: relative;
  1356. }
  1357. .bottom {
  1358. margin-top: 16upx;
  1359. display: flex;
  1360. justify-content: space-between;
  1361. .time {
  1362. color: rgba(185, 185, 185, 1);
  1363. font-size: 20upx;
  1364. }
  1365. .button {
  1366. color: rgba(144, 144, 144, 1);
  1367. font-size: 30upx;
  1368. width: 111upx;
  1369. height: 44upx;
  1370. border-radius: 22upx;
  1371. border: 1upx solid rgba(151, 151, 151, 1);
  1372. text-align: center;
  1373. }
  1374. }
  1375. }
  1376. }
  1377. }
  1378. }
  1379. .bottomArea {
  1380. min-height: 90upx;
  1381. background: #F0F2F5;
  1382. width: 100vw;
  1383. margin: 0 -30rpx;
  1384. display: flex;
  1385. align-items: center;
  1386. border-top: 1upx solid rgba(151, 151, 151, 0.25);
  1387. .voice {
  1388. width: 44upx;
  1389. height: 44upx;
  1390. margin-left: 38upx;
  1391. }
  1392. .inputArea {
  1393. margin-left: 38upx;
  1394. margin-right: 38upx;
  1395. flex: 1;
  1396. display: flex;
  1397. position: relative;
  1398. .edit {
  1399. width: 30upx;
  1400. height: 28upx;
  1401. position: absolute;
  1402. top: 31upx;
  1403. left: 27upx;
  1404. }
  1405. .editor {
  1406. background: rgba(0, 139, 245, 0.17);
  1407. border-radius: 29upx;
  1408. flex: 1;
  1409. min-height: 58upx;
  1410. width: unset;
  1411. padding: 0 32upx;
  1412. font-size: 30upx;
  1413. margin: 16rpx 0;
  1414. line-height: 29px;
  1415. }
  1416. .placeholder {
  1417. position: absolute;
  1418. left: 70rpx;
  1419. top: 22rpx;
  1420. color: #26A2FF;
  1421. &.editing {
  1422. left: 36rpx;
  1423. }
  1424. }
  1425. }
  1426. .download {
  1427. width: 41upx;
  1428. height: 35upx;
  1429. margin-right: 36upx;
  1430. }
  1431. .like {
  1432. width: 38upx;
  1433. height: 39upx;
  1434. margin-right: 38upx;
  1435. }
  1436. .add {
  1437. width: 50upx;
  1438. height: 50upx;
  1439. margin-right: 38upx;
  1440. }
  1441. .send {
  1442. background: #1590e9;
  1443. color: white;
  1444. padding: 10rpx 20rpx;
  1445. margin: 5px;
  1446. border-radius: 8rpx;
  1447. }
  1448. }
  1449. .backTop {
  1450. width: 60upx;
  1451. height: 60upx;
  1452. background: rgba(211, 235, 253, 1);
  1453. box-shadow: 0upx 0upx 2upx 4upx rgba(38, 161, 255, 0.04);
  1454. border-radius: 50%;
  1455. position: fixed;
  1456. bottom: 200upx;
  1457. right: 8upx;
  1458. display: flex;
  1459. justify-content: center;
  1460. align-items: center;
  1461. image {
  1462. width: 26upx;
  1463. height: 34upx;
  1464. }
  1465. }
  1466. .voiceContent {
  1467. position: fixed;
  1468. top: 0;
  1469. bottom: 0;
  1470. left: 0;
  1471. right: 0;
  1472. width: 100vw;
  1473. height: 100vh;
  1474. display: flex;
  1475. justify-content: center;
  1476. align-items: center;
  1477. background: rgba(30, 30, 30, 0.4592);
  1478. z-index: 10001;
  1479. }
  1480. .box {
  1481. background: rgba(21, 144, 233, 0.299);
  1482. width: 524upx;
  1483. height: 524upx;
  1484. border-radius: 50%;
  1485. display: flex;
  1486. align-items: center;
  1487. justify-content: center;
  1488. .center {
  1489. width: 412upx;
  1490. height: 412upx;
  1491. background: #1590E9;
  1492. border-radius: 50%;
  1493. display: flex;
  1494. align-items: center;
  1495. justify-content: center;
  1496. flex-direction: column;
  1497. .voice {
  1498. width: 110upx;
  1499. height: 133upx;
  1500. }
  1501. .text {
  1502. color: #FFFFFF;
  1503. font-size: 36upx;
  1504. margin-top: 24upx;
  1505. }
  1506. }
  1507. }
  1508. .audio-container {
  1509. width: 100%;
  1510. display: flex;
  1511. justify-content: space-between;
  1512. align-items: center;
  1513. .audio-head {
  1514. width: 60rpx;
  1515. height: 60rpx;
  1516. flex-shrink: 0;
  1517. }
  1518. .audio-head .image {
  1519. width: 100%;
  1520. height: 100%;
  1521. }
  1522. .audio-slider {
  1523. width: 96%;
  1524. position: relative;
  1525. padding: 2px 0rpx 0px 20px;
  1526. display: flex;
  1527. justify-content: space-between;
  1528. align-items: center;
  1529. }
  1530. .audio-slider .slider {
  1531. width: 100%;
  1532. padding: 0px 15rpx;
  1533. box-sizing: border-box;
  1534. }
  1535. .audio-time {
  1536. width: 110rpx;
  1537. text-align: right;
  1538. font-size: 24rpx;
  1539. line-height: 28rpx;
  1540. color: #70798D;
  1541. display: flex;
  1542. justify-content: space-between;
  1543. }
  1544. .audio-play {
  1545. width: 40rpx;
  1546. height: 40rpx;
  1547. flex-shrink: 0;
  1548. }
  1549. .audio-play .image {
  1550. width: 100%;
  1551. height: 100%;
  1552. }
  1553. }
  1554. </style>