You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

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