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.
 
 
 

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