Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

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