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.
 
 
 

1587 lines
39 KiB

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