Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

index.vue 37 KiB

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