Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 

1575 рядки
38 KiB

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