Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

1573 linhas
38 KiB

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