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

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