You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1581 lines
39 KiB

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