AI销管
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

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