AI销管
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.
 
 
 
 

1759 regels
37 KiB

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