AI销管
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

index.vue 37 KiB

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