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.
 
 
 

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