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.
 
 
 

1856 line
46 KiB

  1. <template>
  2. <view class="translation">
  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>
  12. <view class="call_record_time_one">接待时长 {{alltimeStr}}
  13. <u-icon name="list-dot" color="#333" size="48" @click="showFile"></u-icon>
  14. <view class="audoioyouxiao" @click="alllogo()" v-if="Menulistisshow==true">
  15. {{userlistobj.validInvalidName||''}}
  16. </view>
  17. <view class="file-change" v-if="isshowFile">
  18. <view class="file-item" @click="filechange(item,index)"
  19. :class="csdFileindex == index ? 'fileactive' : ''" v-for="(item,index) in luyinList"
  20. :key="index">录音文件{{index+1}}</view>
  21. </view>
  22. <view class="diangweitupian" v-if="jiaoseshow">
  23. <image v-if="status==1" @click="tappick()" style="width: 100%;height: 100%;"
  24. src="../../static/images/pike.png" mode=""></image>
  25. <image v-if="status==0" @click="notappick()" style="width: 100%;height: 100%;"
  26. src="../../static/images/nopike.png" mode=""></image>
  27. </view>
  28. </view>
  29. <view class="audio-container">
  30. <view class="audio-play" @tap="changePlayState">
  31. <image class="image" mode="widthFix"
  32. :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'">
  33. </image>
  34. </view>
  35. <view class="audio-slider">
  36. <view class="audio-time">
  37. <text>{{currentTimeStr}}</text>
  38. </view>
  39. <slider class="slider" min="0" :max="sliderMax"
  40. @change="sliderChangeComplate" block-size="14" :value="sliderValue" activeColor="blue"></slider>
  41. <view class="audio-time">
  42. <text>{{timeStr}}</text>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. <scroll-view :scroll-top="scrollTop"
  48. lower-threshold='20px' @scrolltolower="ltolower()" :scroll-into-view="scrollId" scroll-y="true"
  49. class="text scroll-Y">
  50. <!-- tab 栏切换 -->
  51. <view class="tab-box" id="top">
  52. <view class="yinpinshibie" @click="changeTab(0)" :class="{active: tab==0}">
  53. 音频识别
  54. </view>
  55. <view class="rate" @click="changeTab(1)" :class="{active: tab==1}">
  56. 评分
  57. </view>
  58. </view>
  59. <!-- 音频识别模块 -->
  60. <view v-if="tab==0">
  61. <!-- 聊天记录-->
  62. <view class="dialog-block" v-for="(dialog,i) in dialogList" :key="i">
  63. <view :id="'dialog'+i" class="fileName">录音文件
  64. <!-- {{i+1}} -->
  65. </view>
  66. <view class="text" :id="'dialog'+csdFileindex+'text'+item.bg"
  67. :class="{active: item.bg < playNow && item.ed > playNow && i==0}"
  68. v-for="(item,index) in dialog.message" :key="index" :data-speaker="item.speaker">
  69. <view class="avatar">
  70. <view :style="[SPEAKERSTYLE(item.speaker)]">
  71. <!-- <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image> -->
  72. <text v-if="item.speaker == 0">顾</text>
  73. <text v-else>{{ item.speaker | toCapital }}</text>
  74. </view>
  75. <!-- <text v-if="item.speaker == 1" style="color: #60CBEC;">A</text>
  76. <text v-if="item.speaker == 2" style="color: #EC8B47;">B</text>
  77. <text v-if="item.speaker == 3" style="color: #4F861E;">C</text>
  78. <text v-if="item.speaker == 4" style="color: #9F61C8;">D</text>
  79. <text v-if="item.speaker == 5" style="color: #4980C8;">E</text>
  80. <text v-if="item.speaker == 6" style="color: #60CBEC;">F</text>
  81. <text v-if="item.speaker == 7" style="color: #EC8B47;">G</text>
  82. <text v-if="item.speaker == 8" style="color: #4F861E;">H</text>
  83. <text v-if="item.speaker == 9" style="color: #9F61C8;">I</text> -->
  84. </view>
  85. <view class="contentInfo">
  86. <view class="info">
  87. <text class="AudioUserName" v-if="item.speaker == 0">{{ item.username }}</text>
  88. <text class="AudioUserName" v-else>{{ item.speaker | toCapital }}</text>
  89. <text>{{conversionTiame(item.bg/1000)}}</text>
  90. </view>
  91. <view class="content">
  92. <view @longpress="changanxiaoguo(item,index,i)" v-html="item.onebest"></view>
  93. <view class="tankuangcss" :class="{bottoms:index == 0}" v-if="item.isshow">
  94. <view @click="clickcopy()"
  95. style="width: 60rpx;font-size: 24rpx;text-align: center;margin-left: 24rpx;">复制
  96. </view>
  97. <view @click="Oftenthewrongword()"
  98. style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 22rpx;">常错词
  99. </view>
  100. <view v-if="jiaoseshow" @click="Addtheessence()"
  101. style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 22rpx;">加精华
  102. </view>
  103. <view @click="clickbofang(dialog.backindex,item)"
  104. style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 14rpx;">播放
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. <!-- 评分模块 -->
  113. <view v-if="tab==1" class="rate-box">
  114. <view class="title">总执行率 {{totalRate}}%</view>
  115. <view v-for="(item,index) in ratelist" :key="index" class="u-m-b-14">
  116. <view class="level1">
  117. <view class="level-name u-line-1">
  118. {{item.name}}
  119. </view>
  120. <view class="level-progress">
  121. <view class="color" :style="{width: item.ratepercent/item.rate*100+'%'}"></view>
  122. </view>
  123. <view class="level-rate">{{((item.ratepercent/item.rate).toFixed(2)*100).toFixed()}}%</view>
  124. <image v-if="!item.show" class="arrow rotatearrow" @click="changeshow(item,1)"
  125. src="/static/images/down.png" mode="" />
  126. <image v-else class="arrow" @click="changeshow(item,0)" src="/static/images/up.png"
  127. mode="" />
  128. </view>
  129. <view class="level1-subbox" v-if="item.show">
  130. <view class="sub-name" v-for="(subitem,i) in item.children" :key="i">
  131. <view class="subitem-name u-line-1">{{subitem.name}}</view>
  132. <image class="checkimg" v-if="!subitem.selected"
  133. src="/static/images/rate-checked.png" mode="" />
  134. <image class="checkimg" v-else src="/static/images/rate-nocheck.png" mode="" />
  135. </view>
  136. </view>
  137. </view>
  138. </view>
  139. </scroll-view>
  140. <!-- 回到顶部 -->
  141. <view class="backTop" @click="gotoTop">
  142. <image src="/static/images/backTop.png" mode=""></image>
  143. </view>
  144. <!-- 加入常错词 -->
  145. <view class="zhezhoa" v-if="isshow2" @tap="Cancelout"></view>
  146. <view class="bounced" v-if="isshow2">
  147. <view class="tian-view">
  148. <viwe class="tian-view-t1"></viwe>
  149. <viwe class="tian-view-t2">常错词:</viwe>
  150. <viwe class="tian-view-t3">
  151. <input type="text" v-model="thewrongword" :disabled="true" class="tian-input" placeholder="请输入" />
  152. </viwe>
  153. </view>
  154. <view class="tian-view">
  155. <viwe class="tian-view-t1"></viwe>
  156. <viwe class="tian-view-t2">正确词:</viwe>
  157. <viwe class="tian-view-t3">
  158. <input class="tian-input" v-model="reswrongword" type="text" placeholder="请输入" />
  159. </viwe>
  160. </view>
  161. <view class="bounced3">
  162. <view class="bounced3-1" @tap="Cancelout">取消</view>
  163. <view class="bounced3-2" @tap="Confirmtheexit">确认</view>
  164. </view>
  165. </view>
  166. <!-- 加精华 -->
  167. <view class="zhezhoa" v-if="isshow3" @tap="Cancelout2"></view>
  168. <view class="bounced" v-if="isshow3">
  169. <view class="jiajinghuatit">加精华</view>
  170. <view style="width: 100%;text-indent: 20rpx;font-size: 28rpx;">选择标签</view>
  171. <view class="jiajinghuaview">
  172. <view class="jighuaview2" v-for="(item,index) in biaoqianlist" :key="index"
  173. :class="biaoqianindex == index ? 'biaoqiantom' : ''">
  174. <view class="view1-text" @click="tapbiaoqianclisck(index)">{{item.name}}</view>
  175. </view>
  176. </view>
  177. <view class="bounced3">
  178. <view class="bounced3-1" @tap="Cancelout2">取消</view>
  179. <view class="bounced3-2" @tap="Confirmtheexit2">确认</view>
  180. </view>
  181. </view>
  182. <view class="zhezhoa" v-if="effective"></view>
  183. <view class="bounced" v-if="effective">
  184. <view class="jiajinghuatit">选择</view>
  185. <view>
  186. <view class="uni-list">
  187. <radio-group @change="radioChange">
  188. <label style="display: flex;align-items: center;font-size: 30rpx;
  189. width: 94%;height: 80rpx;margin: 0 auto;" v-for="(item, index) in effectiveitems" :key="item.value">
  190. <view style="margin-top: 2rpx;flex: 1; text-indent: 20rpx;">{{item.name}}</view>
  191. <view style="width: 80rpx;">
  192. <radio :value="item.value" :checked="index == effectiveindex" />
  193. </view>
  194. </label>
  195. </radio-group>
  196. </view>
  197. <view v-if="effectiveindex==4">
  198. <textarea class="ffectivetext" v-model="effectiveitext" placeholder="备注" />
  199. </view>
  200. </view>
  201. <view class="bounced3">
  202. <view class="bounced3-1" @click="effective=false">取消</view>
  203. <view class="bounced3-2" @click="effectiveAdd()">确认</view>
  204. </view>
  205. </view>
  206. <u-toast ref="uToast" />
  207. </view>
  208. </template>
  209. <script>
  210. var util = require("../../utils/util.js");
  211. var config = require("../../config");
  212. export default {
  213. data() {
  214. return {
  215. audioPlay: false, //当前的播放状态控制
  216. sliderValue: 0, //进度条最小值
  217. sliderMax: 0, //进度条最大值
  218. innerAudioContext: "", //播放实例
  219. currentTimeStr: "00:00", //当前进度的时间
  220. timeStr: "00:00", //总的时间
  221. recordPath: "",
  222. customerId: "",
  223. luyinList: [], //录音文件
  224. dialogList: [], //录音识别列表
  225. csdFileindex: 0,
  226. isshowFile: false, //录音列表隐藏
  227. date: "", //年月日
  228. tab: 0, // 默认是音频识别
  229. scrollTop: 0,
  230. scrollId: "",
  231. playNow: 0,
  232. alltimeStr: "00:00:00",
  233. ratelist: [], //评分列表
  234. totalRate: "",
  235. thewrongword: "", //错误词
  236. reswrongword: "", //正确词
  237. isshow2: false,
  238. messagelisy: [],
  239. isshow3: false,
  240. biaoqianlist: [],
  241. biaoqianindex: 0,
  242. changanitem: {},
  243. duihuawenjianid: "",
  244. biaoqianid: "",
  245. status: 0,
  246. userInfo: {},
  247. jiaoseshow: true,
  248. num: 0, //上拉 转写文件下标
  249. Bnum: 0, //下拉 转写文件下标
  250. itemobj:{},
  251. buildingID:'',
  252. userlistobj:{},
  253. Menulist:[],
  254. Menulistisshow:false,
  255. effective:false,
  256. effectiveindex:'0',
  257. effectiveitems: [
  258. {value: '1',name: '没电指派无录音',checked:true},
  259. {value: '2',name: '离线指派无录音',},
  260. {value: '3',name: '系统测试误操作'},
  261. {value: '4',name: '非接访场景录音'},
  262. {value: '5',name: '其他'}
  263. ],
  264. effectiveitext:'',
  265. textItself:'',
  266. argtextindex1:0,
  267. argtextindex2:0
  268. };
  269. },
  270. onLoad: function(options) {
  271. this.status = options.status;
  272. this.customerId = options.customerId;
  273. this.itemobj = uni.getStorageSync('searchobj');
  274. this.stateisshow=options.stateisshow;
  275. },
  276. onShow() {
  277. this.Menulist = uni.getStorageSync('weapp_session_Menu_data');
  278. this.Menulist.forEach(item=>{
  279. if(item.name=='标记有效无效接待'){
  280. this.Menulistisshow=true;
  281. }
  282. })
  283. this.buildingID = uni.getStorageSync('buildingID').id;
  284. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  285. if (this.userInfo.dataCode == 6) {
  286. this.jiaoseshow = false
  287. }
  288. if(this.stateisshow==2){
  289. var info =this.itemobj;
  290. console.log(info)
  291. }else{
  292. var pages = getCurrentPages();
  293. var currPage = pages[pages.length - 1]; //当前页面
  294. var info = currPage.data.info;
  295. }
  296. this.gituserlist()
  297. this.innerAudioContext = uni.createInnerAudioContext();
  298. this.innerAudioContext.autoplay = false;
  299. this.innerAudioContext.title = '音频';
  300. this.onPlay()
  301. this.onPause()
  302. this.onCanplay()
  303. this.onEnded()
  304. this.onSeeking()
  305. this.onSeeked()
  306. this.TimeUpdate()
  307. this.init(info)
  308. },
  309. onUnload() {
  310. //暂停
  311. this.innerAudioContext.pause()
  312. // 销毁
  313. // this.innerAudioContext.destroy();
  314. },
  315. computed: {
  316. conversionTiame() {
  317. return (e) => {
  318. return this.getTime(e);
  319. }
  320. },
  321. },
  322. filters: {
  323. // ASCII码转换 大写字母A是65 演讲人是从1开始所以num+64
  324. toCapital(num) {
  325. let str = ''
  326. if (num) {
  327. str = String.fromCharCode(num + 64)
  328. }
  329. return str
  330. }
  331. },
  332. methods: {
  333. SPEAKERSTYLE(index) {
  334. let obj = {
  335. color: '',
  336. }
  337. switch (index) {
  338. case 1:
  339. obj.color = '#60CBEC';
  340. break;
  341. case 2:
  342. obj.color = '#EC8B47';
  343. break;
  344. case 3:
  345. obj.color = '#4F861E';
  346. break;
  347. case 5:
  348. obj.color = '#4980C8';
  349. break;
  350. case 6:
  351. obj.color = '#60CBEC';
  352. break;
  353. case 7:
  354. obj.color = '#EC8B47';
  355. break;
  356. case 8:
  357. obj.color = '#4F861E';
  358. break;
  359. default:
  360. obj.color = '#9F61C8';
  361. break;
  362. }
  363. return obj
  364. },
  365. effectiveAdd(){
  366. if(this.effectiveindex==4){
  367. if(this.effectiveitext.length==0){
  368. uni.showToast({
  369. title: '备注不能为空',
  370. icon:"none",
  371. duration: 2000
  372. });
  373. return
  374. }
  375. }
  376. this.effective=false;
  377. let parames={
  378. id:this.customerId,
  379. validInvalid:'',
  380. validInvalid:1,
  381. invalidReason:Number(this.effectiveindex)+1,
  382. invalidNote:this.effectiveitext
  383. }
  384. this.$u.post("/customer/updateValidInvalid", parames).then(res => {
  385. console.log(res)
  386. this.gituserlist()
  387. })
  388. },
  389. radioChange(evt) {
  390. this.effectiveitext="";
  391. for (let i = 0; i < this.effectiveitems.length; i++) {
  392. if (this.effectiveitems[i].value === evt.detail.value) {
  393. this.effectiveindex = i;
  394. break;
  395. }
  396. }
  397. },
  398. //标记
  399. alllogo(){
  400. var that=this;
  401. let msg='';
  402. if(this.userlistobj.validInvalid!=0){
  403. msg='是否标记为"有效录音"?';
  404. uni.showModal({
  405. title: '提示',
  406. content: msg,
  407. success: function (res) {
  408. if (res.confirm) {
  409. let parames={
  410. id:that.customerId,
  411. validInvalid:'',
  412. invalidReason:0
  413. }
  414. if(that.userlistobj.validInvalid==0){
  415. parames.validInvalid=1;
  416. }else{
  417. parames.validInvalid=0;
  418. }
  419. that.$u.post("/customer/updateValidInvalid", parames).then(res => {
  420. console.log(res)
  421. that.gituserlist()
  422. })
  423. }
  424. }
  425. });
  426. }else{
  427. this.effective=true;
  428. }
  429. },
  430. //获取用户信息
  431. gituserlist(){
  432. this.$u.get("/matchKeywords/personalReceptionRecord", {
  433. customerId: this.customerId
  434. }).then(res => {
  435. res.endTime1=res.endTime.substring(0, 19);
  436. this.userlistobj=res;
  437. })
  438. },
  439. toKeywordsearch(){
  440. this.innerAudioContext.destroy();
  441. this.stateisshow=1;
  442. uni.navigateTo({
  443. url: '/pages/learning/Keywordsearch?customerId='+this.customerId +"&status="+this.status +"&skpl="+"1"
  444. })
  445. },
  446. onPlay(){
  447. this.innerAudioContext.onPlay(() => {
  448. // 播放监听
  449. console.log('播放!');
  450. this.audioPlay = true;
  451. wx.enableAlertBeforeUnload({
  452. message: "是否确认退出详情页面?",
  453. success: function (res) {
  454. console.log("方法注册成功:", res);
  455. },
  456. fail: function (errMsg) {
  457. console.log("方法注册失败:", errMsg);
  458. },
  459. });
  460. });
  461. },
  462. onPause(){
  463. this.innerAudioContext.onPause(() => {
  464. wx.disableAlertBeforeUnload({
  465. success:function(res){
  466. console.log(res)
  467. },
  468. fail:function(e){
  469. console.log(e)
  470. }
  471. });
  472. // 暂停监听
  473. console.log('暂停播放!');
  474. this.audioPlay = false
  475. });
  476. },
  477. onCanplay() {
  478. this.innerAudioContext.onCanplay((callback) => {
  479. console.log("缓冲回调",this.innerAudioContext.duration);
  480. })
  481. },
  482. onEnded(){
  483. this.innerAudioContext.onEnded(() => {
  484. // 结束播放监听
  485. console.log('播放结束!');
  486. this.audioPlay = false;
  487. this.qeihuanwenjian()
  488. });
  489. },
  490. onSeeking(){
  491. this.innerAudioContext.onSeeking((res) => {
  492. console.log("进行跳转", res);
  493. })
  494. },
  495. onSeeked(){
  496. this.innerAudioContext.onSeeked((res) => {
  497. console.log("结束跳转", res);
  498. this.$forceUpdate()
  499. });
  500. },
  501. TimeUpdate(){
  502. this.innerAudioContext.onTimeUpdate(() => {
  503. const {
  504. currentTime,
  505. duration
  506. } = this.innerAudioContext;
  507. console.log(duration)
  508. this.playNow = parseInt(currentTime * 1000)
  509. if (this.dialogList.length == 0) {
  510. } else {
  511. const message = this.dialogList[0].message
  512. for (let i = 0; i < message.length; i++) {
  513. if (Number(message[i].bg) < this.playNow && Number(message[i].ed) > this.playNow) {
  514. this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg;
  515. break;
  516. }
  517. }
  518. }
  519. const currTimeStr = this.formatTime(currentTime);
  520. this.sliderValue = parseInt(currentTime);
  521. // 变动的时间
  522. this.currentTimeStr = currTimeStr;
  523. //进度条最大值
  524. this.sliderMax = this.luyinList[this.csdFileindex].recordDuration;
  525. this.$forceUpdate()
  526. });
  527. },
  528. init(info) {
  529. this.sliderMax = 0; //进度条最大值
  530. this.timeStr = "00:00"; //总的时间
  531. const parames = {
  532. pageNum: 1,
  533. pageSize: 100,
  534. query: {
  535. customerId: this.customerId
  536. }
  537. }
  538. this.$u.post("/corpus/findByPage", parames).then(res => {
  539. if (res && res.length) {
  540. let alltime = 1;
  541. res.forEach(item => {
  542. alltime += item.recordDuration
  543. })
  544. this.alltimeStr = this.getTime(alltime)
  545. if(info){
  546. res.forEach((item,index) => {
  547. if(item.id==info.customerId){
  548. console.log(item.id)
  549. this.luyinList = res;
  550. this.csdFileindex=index;
  551. this.recordPath = res[index].recordPath
  552. this.sliderMax = this.getTime(res[index].recordDuration)
  553. this.timeStr = this.getTime(res[index].recordDuration)
  554. this.date = res[index].receptionTime;
  555. this.isshowFile = false;
  556. this.getCorpusAnalysis(info);
  557. this.creatAudio()
  558. var itc=parseInt(info.bg/1000)
  559. this.adasdasdasd(itc)
  560. console.log("999999999999999999999")
  561. }
  562. })
  563. }else{
  564. this.recordPath = res[0].recordPath
  565. this.sliderMax = this.getTime(res[0].recordDuration)
  566. this.timeStr = this.getTime(res[0].recordDuration)
  567. this.date = res[0].receptionTime
  568. this.innerAudioContext.src = this.recordPath;
  569. // if(uni.getStorageSync('entrance')==2){
  570. // this.changePlayState()
  571. // }
  572. console.log("11111111111111111111111")
  573. this.luyinList = res;
  574. this.getCorpusAnalysis()
  575. }
  576. }
  577. })
  578. },
  579. //搜索跳转
  580. adasdasdasd(e) {
  581. console.log(e)
  582. const currTimeStr = this.formatTime(e)
  583. this.currentTimeStr = currTimeStr
  584. this.innerAudioContext.seek(e);
  585. this.innerAudioContext.play();
  586. },
  587. //下一页
  588. ltolower() {
  589. var lengthcz=this.luyinList.length-1;
  590. if (this.num >= lengthcz) {
  591. uni.showToast({
  592. title: '到底了',
  593. duration: 2000
  594. });
  595. return
  596. }else {
  597. this.num=this.num+1;
  598. uni.showLoading({
  599. title: '加载中'
  600. });
  601. setTimeout(function() {
  602. uni.hideLoading();
  603. }, 2000);
  604. uni.request({
  605. url: config.service.getCorpusAnalysis + '?corpusId=' + this.luyinList[this.num].id+"&customerId="+this.customerId, //仅为示例,并非真实接口地址。
  606. method: "GET",
  607. header: {
  608. 'content-type': 'application/json',
  609. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  610. },
  611. success: (data) => {
  612. if (data.data.code == 10000) {
  613. if (data.data.data.audioContent.length == 0) {
  614. setTimeout(function() {
  615. uni.hideLoading();
  616. }, 2000);
  617. } else {
  618. const jsonInfo = JSON.parse(data.data.data.audioContent);
  619. this.dialogList.push({
  620. message: jsonInfo,
  621. backindex:this.num
  622. });
  623. this.dialogList.forEach((asd, idx) => {
  624. asd.message.forEach((qwe, inde) => {
  625. qwe.isshow = false;
  626. })
  627. })
  628. }
  629. }
  630. },
  631. })
  632. }
  633. },
  634. //上一页
  635. rolltoupper() {
  636. if (this.csdFileindex == 0) {
  637. uni.showToast({
  638. title: '到头了',
  639. duration: 2000
  640. });
  641. return
  642. } else if(this.Bnum == 0){
  643. uni.showToast({
  644. title: '到头了',
  645. duration: 2000
  646. });
  647. return
  648. }else {
  649. this.Bnum=this.Bnum-1;
  650. uni.showLoading({
  651. title: '加载中'
  652. });
  653. setTimeout(function() {
  654. uni.hideLoading();
  655. }, 2000);
  656. uni.request({
  657. url: config.service.getCorpusAnalysis + '?corpusId=' + this.luyinList[this.Bnum].id+"&customerId="+this.customerId, //仅为示例,并非真实接口地址。
  658. method: "GET",
  659. header: {
  660. 'content-type': 'application/json',
  661. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  662. },
  663. success: (data) => {
  664. if (data.data.code == 10000) {
  665. if (data.data.data.audioContent.length == 0) {
  666. setTimeout(function() {
  667. uni.hideLoading();
  668. }, 2000);
  669. } else {
  670. const jsonInfo = JSON.parse(data.data.data.audioContent);
  671. this.dialogList.unshift({
  672. message: jsonInfo
  673. });
  674. this.dialogList.forEach((asd, idx) => {
  675. asd.message.forEach((qwe, inde) => {
  676. qwe.isshow = false;
  677. })
  678. })
  679. }
  680. }
  681. },
  682. })
  683. }
  684. },
  685. // 取消全部加精
  686. notappick() {
  687. var that = this;
  688. uni.showModal({
  689. title: '提示',
  690. content: '确认取消加精?',
  691. success: function(res) {
  692. if (res.confirm) {
  693. console.log('用户点击确定');
  694. uni.request({
  695. url: config.service.delATD + "?carId=" + that.customerId,
  696. method: "GET",
  697. header: {
  698. 'content-type': 'application/json',
  699. 'Access-Token': uni.getStorageSync('weapp_session_login_data')
  700. .token
  701. },
  702. success: (data) => {
  703. if (data.data.code == 10000) {
  704. that.status = 1
  705. uni.showToast({
  706. title: '取消成功',
  707. duration: 2000
  708. });
  709. } else {
  710. uni.showToast({
  711. title: data.data.message,
  712. duration: 2000
  713. });
  714. }
  715. }
  716. })
  717. } else if (res.cancel) {
  718. console.log('用户点击取消');
  719. }
  720. }
  721. });
  722. },
  723. //全部加精
  724. tappick(i) {
  725. var that = this;
  726. uni.showModal({
  727. title: '提示',
  728. content: '确认加精?',
  729. success: function(res) {
  730. if (res.confirm) {
  731. console.log('用户点击确定');
  732. let objdata = {
  733. "carId": that.customerId, //客户id
  734. "status": 0,
  735. "itemId":that.buildingID,
  736. }
  737. uni.request({
  738. url: config.service.addATD,
  739. method: "POST",
  740. header: {
  741. 'content-type': 'application/json',
  742. 'Access-Token': uni.getStorageSync('weapp_session_login_data')
  743. .token
  744. },
  745. data: objdata,
  746. success: (data) => {
  747. if (data.data.code == 10000) {
  748. that.status = 0
  749. uni.showToast({
  750. title: '加精成功',
  751. duration: 2000
  752. });
  753. } else {
  754. uni.showToast({
  755. title: data.data.message,
  756. duration: 2000
  757. });
  758. }
  759. }
  760. })
  761. } else if (res.cancel) {
  762. console.log('用户点击取消');
  763. }
  764. }
  765. });
  766. },
  767. //标签选择
  768. tapbiaoqianclisck(index) {
  769. this.biaoqianindex = index;
  770. this.biaoqianid = this.biaoqianlist[index].id
  771. },
  772. //复制
  773. clickcopy() {
  774. var that = this;
  775. uni.setClipboardData({
  776. data: that.thewrongword,
  777. success: function() {
  778. that.dialogList.forEach(res => {
  779. res.message.forEach(asd => {
  780. asd.isshow = false;
  781. })
  782. })
  783. that.$forceUpdate();
  784. console.log('success');
  785. }
  786. });
  787. },
  788. //确认加入常错词
  789. Confirmtheexit() {
  790. let reg = /^[0-9]+$/
  791. if(reg.test(this.thewrongword)){
  792. this.$refs.uToast.show({
  793. title: '错误词不能为纯数字',
  794. type: 'warning',
  795. })
  796. }else{
  797. if (this.thewrongword) {
  798. if (this.reswrongword) {
  799. let parames = {
  800. customerId:this.customerId,
  801. cupid: this.luyinList[this.csdFileindex].id,
  802. wrongWord: this.thewrongword, //错误词
  803. correctWord: this.reswrongword, //正确词
  804. translateHtmlContent: this.messagelisy,
  805. }
  806. this.isshow2 = false;
  807. let sas=this.textItself.replace(this.thewrongword,this.reswrongword)
  808. this.dialogList[this.argtextindex1].message[this.argtextindex2].onebest=sas
  809. this.dialogList.forEach(res => {
  810. res.message.forEach(asd => {
  811. asd.isshow = false;
  812. })
  813. })
  814. this.$u.post("/corpus/addCorrectWord", parames).then(data => {
  815. this.thewrongword = "";
  816. this.reswrongword = "";
  817. })
  818. } else {
  819. uni.showToast({
  820. title: '正确值不能为空',
  821. duration: 2000
  822. });
  823. return
  824. }
  825. } else {
  826. uni.showToast({
  827. title: '错误词不能为空',
  828. duration: 2000
  829. });
  830. return
  831. }
  832. }
  833. },
  834. //取消加入常错词
  835. Cancelout() {
  836. this.isshow2 = false;
  837. this.dialogList.forEach(res => {
  838. res.message.forEach(asd => {
  839. asd.isshow = false;
  840. })
  841. })
  842. },
  843. //加入长错词
  844. Oftenthewrongword() {
  845. this.reswrongword = "";
  846. this.isshow2 = true;
  847. },
  848. //加精华
  849. Addtheessence() {
  850. this.isshow3 = true;
  851. this.biaoqianlist = []
  852. let parames={
  853. "itemId":this.buildingID
  854. }
  855. this.$u.post("/addtodigest/findAllYi", parames).then(data => {
  856. this.biaoqianlist = data
  857. this.biaoqianlist.unshift({
  858. name: "逼单话术",
  859. id: 0
  860. })
  861. })
  862. },
  863. // 取消加精
  864. Cancelout2() {
  865. this.isshow3 = false;
  866. this.dialogList.forEach(res => {
  867. res.message.forEach(asd => {
  868. asd.isshow = false;
  869. })
  870. })
  871. },
  872. // 确认加精
  873. Confirmtheexit2() {
  874. if (this.biaoqianid) {
  875. this.biaoqianid = this.biaoqianid
  876. } else {
  877. this.biaoqianid = 0
  878. }
  879. this.isshow3 = false;
  880. this.dialogList.forEach(res => {
  881. res.message.forEach(asd => {
  882. asd.isshow = false;
  883. })
  884. })
  885. let objdata = {
  886. "carId": this.customerId, //客户id
  887. "startTime": this.changanitem.bg, //开始时间
  888. "startFile": this.duihuawenjianid, //对话所在录音文件id
  889. "endTime": this.changanitem.ed, //结束时间
  890. "marketingId": this.biaoqianid, //对应一级父id
  891. "jjTransfer": this.changanitem.onebest, //选中对话
  892. "status": 1
  893. }
  894. uni.request({
  895. url: config.service.addATD,
  896. method: "POST",
  897. header: {
  898. 'content-type': 'application/json',
  899. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  900. },
  901. data: objdata,
  902. success: (data) => {
  903. if (data.data.code == 10000) {
  904. uni.showToast({
  905. title: '加精成功',
  906. duration: 2000
  907. });
  908. } else {
  909. uni.showToast({
  910. title: data.data.message,
  911. duration: 2000
  912. });
  913. }
  914. }
  915. })
  916. },
  917. //长按对话
  918. changanxiaoguo(item, index, i) {
  919. this.messagelisy = [];
  920. this.changanitem = {};
  921. this.duihuawenjianid = "",
  922. this.dialogList.forEach(res => {
  923. res.message.forEach(asd => {
  924. asd.isshow = false;
  925. })
  926. })
  927. this.changanitem = item;
  928. this.duihuawenjianid = this.luyinList[this.csdFileindex].id;
  929. this.dialogList[i].message[index].isshow = !this.dialogList[i].message[index].isshow;
  930. this.textItself=item.onebest;
  931. let onebest=item.onebest;
  932. this.thewrongword =onebest.replace(/<.*?>/ig,"");
  933. // this.thewrongword = item.onebest;
  934. this.messagelisy = this.dialogList[i].message
  935. this.argtextindex1=i;
  936. this.argtextindex2=index;
  937. },
  938. //回到顶部
  939. gotoTop() {
  940. this.scrollId = null;
  941. this.$nextTick(() => {
  942. this.scrollId = "top";
  943. })
  944. },
  945. //切换tab
  946. changeTab(type) {
  947. if (type == 0) {
  948. this.tab = 0
  949. } else {
  950. this.tab = 1;
  951. this.getRatelist();
  952. }
  953. },
  954. //录音列表显示隐藏
  955. showFile() {
  956. this.isshowFile = !this.isshowFile;
  957. this.audioPlay == false;
  958. this.innerAudioContext.pause()
  959. },
  960. //评分上下显隐
  961. changeshow(item, type) {
  962. if (type == 1) {
  963. item.show = true
  964. } else {
  965. item.show = false
  966. }
  967. },
  968. // 获取评分
  969. getRatelist() {
  970. if (this.ratelist.length == 0) {
  971. uni.showLoading({
  972. title: '加载中'
  973. });
  974. this.$u.get("/customer/findzkMByCusId", {
  975. cusId: this.customerId
  976. }).then(res => {
  977. if (res.length) {
  978. let level1 = []
  979. let level2rate = 0
  980. res.forEach(item => {
  981. if (item.pid == 0) {
  982. level1.push({
  983. id: item.marketingId,
  984. rate: item.fraction,
  985. name: item.name,
  986. sort: item.sort,
  987. show: false,
  988. ratepercent: 0,
  989. children: []
  990. })
  991. } else {
  992. if (item.selected == 0) {
  993. level2rate += item.fraction
  994. }
  995. }
  996. })
  997. this.totalRate = level2rate
  998. res.forEach(subitem => {
  999. let subitempid = subitem.pid
  1000. level1.forEach(item => {
  1001. if (subitempid == item.id) {
  1002. if (subitem.selected == 0) {
  1003. item.ratepercent += subitem.fraction
  1004. }
  1005. item.children.push({
  1006. id: subitem.id,
  1007. rate: subitem.fraction,
  1008. selected: subitem.selected,
  1009. name: subitem.name
  1010. })
  1011. }
  1012. })
  1013. })
  1014. level1[0].show = true;
  1015. this.ratelist = level1
  1016. }
  1017. setTimeout(function() {
  1018. uni.hideLoading();
  1019. }, 1000);
  1020. })
  1021. }
  1022. },
  1023. // 获取转义后的对话结果
  1024. getCorpusAnalysis(info) {
  1025. // let cc=JSON.parse(this.userlistobj.sensitiveWords)[0]
  1026. this.dialogList = [];
  1027. uni.showLoading({
  1028. title: '加载中'
  1029. });
  1030. uni.request({
  1031. url: config.service.getCorpusAnalysis + '?corpusId=' + this.luyinList[this.csdFileindex].id+"&customerId="+this.customerId, //仅为示例,并非真实接口地址。
  1032. method: "GET",
  1033. header: {
  1034. 'content-type': 'application/json',
  1035. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  1036. },
  1037. success: (data) => {
  1038. if (data.data.code == 10000) {
  1039. if (data.data.data.audioContent.length == 0) {
  1040. setTimeout(function() {
  1041. uni.hideLoading();
  1042. }, 2000);
  1043. } else {
  1044. const jsonInfo = JSON.parse(data.data.data.audioContent);
  1045. if(this.luyinList[this.csdFileindex].recordDuration>360){
  1046. //拿到总条数
  1047. var stusnum=jsonInfo.length;
  1048. this.dialogList.push({
  1049. message: jsonInfo.splice(0,80),
  1050. backindex:this.csdFileindex
  1051. });
  1052. var auth_timetimer = setInterval(() => {
  1053. stusnum-=100;
  1054. console.log("还剩下"+stusnum)
  1055. if (stusnum <= 0) {
  1056. console.log("停止")
  1057. clearInterval(auth_timetimer);
  1058. }else{
  1059. console.log("添加")
  1060. var newlistwang=[];
  1061. newlistwang=jsonInfo.splice(0,100);
  1062. console.log("新数组",newlistwang)
  1063. newlistwang.forEach(item=>{
  1064. this.dialogList[0].message.push(item)
  1065. })
  1066. }
  1067. }, 1000);
  1068. }else{
  1069. this.dialogList.push({
  1070. message: jsonInfo,
  1071. backindex:this.csdFileindex
  1072. });
  1073. }
  1074. this.dialogList.forEach((asd, idx) => {
  1075. asd.message.forEach((qwe, inde) => {
  1076. qwe.isshow = false;
  1077. })
  1078. })
  1079. setTimeout(function() {
  1080. uni.hideLoading();
  1081. }, 2000);
  1082. }
  1083. } else {
  1084. uni.hideLoading();
  1085. uni.showModal({
  1086. title: '提示',
  1087. content: '请求数据失败,请重新尝试',
  1088. showCancel: false
  1089. });
  1090. }
  1091. },
  1092. fail(error) {
  1093. uni.hideLoading();
  1094. uni.showModal({
  1095. title: '提示',
  1096. content: '网络异常,请重新尝试',
  1097. showCancel: false
  1098. });
  1099. return false;
  1100. }
  1101. });
  1102. },
  1103. //替换方法
  1104. brightKeyword(val,cc) {
  1105. if (val.indexOf(cc) !== -1) {
  1106. return val.replace(cc, `<font style='color: red'>${cc}</font>`);
  1107. } else {
  1108. return val;
  1109. }
  1110. },
  1111. getTime(time) {
  1112. return util.formatSecond(time)
  1113. },
  1114. // 录音暂停播放
  1115. changePlayState() {
  1116. if (this.audioPlay == false) {
  1117. this.innerAudioContext.play();
  1118. } else {
  1119. this.innerAudioContext.pause()
  1120. }
  1121. },
  1122. //音频前进回退
  1123. sliderChangeComplate(e) {
  1124. const currTimeStr = this.formatTime(e.detail.value)
  1125. this.currentTimeStr = currTimeStr
  1126. this.innerAudioContext.seek(e.detail.value);
  1127. this.innerAudioContext.play();
  1128. },
  1129. //长按点击播放
  1130. clickbofang(dialog,item) {
  1131. this.innerAudioContext.pause()
  1132. this.dialogList.forEach(res => {
  1133. res.message.forEach(asd => {
  1134. asd.isshow = false;
  1135. })
  1136. })
  1137. this.$forceUpdate()
  1138. if(dialog==this.csdFileindex){
  1139. let time = parseInt(item.bg / 1000)
  1140. const currTimeStr = this.formatTime(time)
  1141. this.currentTimeStr = currTimeStr
  1142. this.innerAudioContext.seek(time);
  1143. this.innerAudioContext.play();
  1144. return
  1145. }else{
  1146. let time = parseInt(item.bg / 1000)
  1147. this.innerAudioContext.destroy()
  1148. this.csdFileindex = dialog;
  1149. this.recordPath = this.luyinList[dialog].recordPath;
  1150. this.sliderMax = this.getTime(this.luyinList[dialog].recordDuration);
  1151. this.timeStr = this.getTime(this.luyinList[dialog].recordDuration);
  1152. this.date = this.luyinList[dialog].receptionTime;
  1153. this.creatAudio()
  1154. this.getCorpusAnalysis()
  1155. const currTimeStr = this.formatTime(time)
  1156. this.currentTimeStr = currTimeStr
  1157. this.innerAudioContext.seek(time);
  1158. this.innerAudioContext.play();
  1159. }
  1160. },
  1161. // 文件切换播放
  1162. filechange(item, i) {
  1163. this.num=i;//下拉起始位置
  1164. this.Bnum=i;
  1165. this.innerAudioContext.destroy();
  1166. this.csdFileindex = i;
  1167. this.recordPath = item.recordPath;
  1168. this.sliderMax = this.getTime(item.recordDuration);
  1169. this.timeStr = this.getTime(item.recordDuration);
  1170. this.currentTimeStr = "00:00";
  1171. this.sliderValue=0;
  1172. this.$forceUpdate()
  1173. this.date = item.receptionTime;
  1174. this.isshowFile = false;
  1175. this.creatAudio()
  1176. this.getCorpusAnalysis()
  1177. },
  1178. //录音实例
  1179. creatAudio() {
  1180. this.innerAudioContext = uni.createInnerAudioContext();
  1181. // if(uni.getStorageSync('entrance')==1){
  1182. this.innerAudioContext.autoplay = false;
  1183. // }else{
  1184. // this.innerAudioContext.autoplay = true;
  1185. // }
  1186. this.innerAudioContext.src = this.recordPath;
  1187. this.innerAudioContext.title = '音频';
  1188. this.onPlay()
  1189. this.onPause()
  1190. this.onCanplay()
  1191. this.onEnded()
  1192. this.onSeeking()
  1193. this.onSeeked()
  1194. this.TimeUpdate()
  1195. },
  1196. // 自动播放下一个文件
  1197. qeihuanwenjian() {
  1198. let index = this.csdFileindex + 1;
  1199. if (index < this.luyinList.length) {
  1200. this.csdFileindex = index;
  1201. this.getCorpusAnalysis()
  1202. let item = this.luyinList[this.csdFileindex];
  1203. let i = this.csdFileindex;
  1204. this.filechange(item, i)
  1205. }
  1206. },
  1207. formatTime(num) {
  1208. //格式化时间格式
  1209. num = num.toFixed(0);
  1210. let second = num % 60;
  1211. if (second < 10) second = '0' + second;
  1212. let min = Math.floor(num / 60);
  1213. if (min < 10) min = '0' + min;
  1214. return min + ":" + second;
  1215. },
  1216. changeEditing() {
  1217. this.dialogList.forEach(res => {
  1218. res.message.forEach(asd => {
  1219. asd.isshow = false;
  1220. })
  1221. })
  1222. }
  1223. },
  1224. }
  1225. </script>
  1226. <style lang="scss" scoped>
  1227. .ffectivetext{
  1228. width: 85%;
  1229. margin: 10rpx auto;
  1230. height: 100rpx;
  1231. padding: 20rpx;
  1232. border: 1rpx solid #E4F0FF;
  1233. }
  1234. .biaoqiantom {
  1235. background-color: #008EF2;
  1236. color: #FFFFFF;
  1237. border: none;
  1238. }
  1239. // 表单
  1240. .tian-view {
  1241. width: 570upx;
  1242. background-color: #FFFFFF;
  1243. border-bottom: 1px solid #ededee;
  1244. display: flex;
  1245. min-height: 96rpx;
  1246. .tian-view-t1 {
  1247. width: 20rpx;
  1248. font-size: 34rpx;
  1249. height: 34rpx;
  1250. line-height: 110rpx;
  1251. letter-spacing: 0px;
  1252. color: red;
  1253. }
  1254. .tian-view-t2 {
  1255. width: 30%;
  1256. min-height: 96rpx;
  1257. line-height: 96rpx;
  1258. font-size: 34rpx;
  1259. color: #333;
  1260. }
  1261. .tian-view-t3 {
  1262. width: 61%;
  1263. padding-top: 31rpx;
  1264. padding-bottom: 31rpx;
  1265. display: flex;
  1266. .tian-input {
  1267. width: 98%;
  1268. font-size: 34rpx;
  1269. border: none;
  1270. }
  1271. }
  1272. }
  1273. .zhezhoa {
  1274. position: fixed;
  1275. top: 0;
  1276. left: 0;
  1277. z-index: 999;
  1278. width: 100%;
  1279. height: 100vh;
  1280. opacity: 0.5;
  1281. background-color: #666666;
  1282. }
  1283. .bounced {
  1284. width: 570upx;
  1285. background: #FFFFFF;
  1286. z-index: 1000;
  1287. border-radius: 10upx;
  1288. position: fixed;
  1289. left: 50%;
  1290. top: 50%;
  1291. transform: translate(-50%, -50%);
  1292. /* 50%为自身尺寸的一半 */
  1293. .jiajinghuatit {
  1294. width: 100%;
  1295. height: 68rpx;
  1296. font-size: 30rpx;
  1297. text-align: center;
  1298. line-height: 68rpx;
  1299. }
  1300. .jiajinghuaview {
  1301. padding: 18rpx 18rpx 18rpx 18rpx;
  1302. display: flex;
  1303. flex-wrap: wrap;
  1304. .jiajinghuaview1 {
  1305. padding: 8rpx 8rpx 8rpx 8rpx;
  1306. font-size: 26rpx;
  1307. border-radius: 12rpx;
  1308. border: 1px solid #979797;
  1309. margin-left: 8rpx;
  1310. }
  1311. .jighuaview2 {
  1312. padding: 8rpx 18rpx 8rpx 18rpx;
  1313. font-size: 26rpx;
  1314. border-radius: 12rpx;
  1315. border: 1px solid #979797;
  1316. margin-left: 20rpx;
  1317. margin-top: 10rpx;
  1318. display: flex;
  1319. .view1-text {
  1320. text-align: center;
  1321. }
  1322. .view1-img {
  1323. width: 50rpx;
  1324. }
  1325. }
  1326. }
  1327. .bounced3 {
  1328. height: 100upx;
  1329. width: 100%;
  1330. margin-top: 40upx;
  1331. border-top: 1px solid #dddddd;
  1332. display: flex;
  1333. }
  1334. .bounced3-1 {
  1335. width: 50%;
  1336. height: 100%;
  1337. text-align: center;
  1338. line-height: 100upx;
  1339. border-right: 1px solid #dddddd;
  1340. font-size: 36upx;
  1341. color: #999999;
  1342. }
  1343. .bounced3-2 {
  1344. width: 50%;
  1345. height: 100%;
  1346. text-align: center;
  1347. line-height: 100upx;
  1348. font-size: 36upx;
  1349. color: #108ee9;
  1350. }
  1351. }
  1352. .translation {
  1353. padding-left: 30rpx;
  1354. padding-right: 30rpx;
  1355. background: #FFFFFF;
  1356. display: flex;
  1357. flex-direction: column;
  1358. height: 100vh;
  1359. }
  1360. .translation .top {
  1361. margin: 0 -30upx;
  1362. padding: 0 30upx;
  1363. background: #ffffff;
  1364. border-bottom: 1rpx solid #F2F2F2;
  1365. padding-bottom: 10rpx;
  1366. }
  1367. .translation .top .title {
  1368. display: flex;
  1369. justify-content: space-between;
  1370. .hash {
  1371. color: rgba(21, 144, 233, 1);
  1372. font-size: 24upx;
  1373. }
  1374. }
  1375. .call_record_time {
  1376. height: 44rpx;
  1377. font-size: 28rpx;
  1378. font-weight: 600;
  1379. color: #008EF2;
  1380. line-height: 44rpx;
  1381. }
  1382. .call_record_time_one {
  1383. height: 48rpx;
  1384. font-size: 24rpx;
  1385. font-weight: 500;
  1386. color: #70798d;
  1387. line-height: 48rpx;
  1388. display: flex;
  1389. justify-content: space-between;
  1390. position: relative;
  1391. .audoioyouxiao{
  1392. height: 46rpx;
  1393. position: absolute;
  1394. top: 0rpx;
  1395. right: 140rpx;
  1396. font-size: 30rpx;
  1397. }
  1398. .diangweitupian {
  1399. width: 46rpx;
  1400. height: 46rpx;
  1401. position: absolute;
  1402. top: 0rpx;
  1403. right: 75rpx;
  1404. }
  1405. .file-change {
  1406. position: absolute;
  1407. top: 50rpx;
  1408. right: 0rpx;
  1409. width: 184rpx;
  1410. background: #FFFFFF;
  1411. box-shadow: 0rpx 0rpx 6rpx 2rpx rgba(230, 230, 230, 0.5);
  1412. border-radius: 4rpx;
  1413. z-index: 99;
  1414. height: auto;
  1415. max-height: 600rpx;
  1416. overflow: auto;
  1417. }
  1418. .file-item {
  1419. width: 184rpx;
  1420. height: 60rpx;
  1421. line-height: 60rpx;
  1422. text-align: center;
  1423. font-size: 30rpx;
  1424. font-weight: 400;
  1425. color: #333333;
  1426. border-bottom: 1rpx solid #E2E2E2;
  1427. }
  1428. .file-item:last-child {
  1429. border: 0
  1430. }
  1431. .fileactive {
  1432. color: #008EF2
  1433. }
  1434. }
  1435. .audio-container {
  1436. width: 100%;
  1437. display: flex;
  1438. justify-content: space-between;
  1439. align-items: center;
  1440. .audio-head {
  1441. width: 60rpx;
  1442. height: 60rpx;
  1443. flex-shrink: 0;
  1444. }
  1445. .audio-head .image {
  1446. width: 100%;
  1447. height: 100%;
  1448. }
  1449. .audio-slider {
  1450. width: 96%;
  1451. position: relative;
  1452. padding: 2px 0rpx 0px 20px;
  1453. display: flex;
  1454. justify-content: space-between;
  1455. align-items: center;
  1456. }
  1457. .audio-slider .slider {
  1458. width: 100%;
  1459. padding: 0px 15rpx;
  1460. box-sizing: border-box;
  1461. }
  1462. .audio-time {
  1463. width: 110rpx;
  1464. text-align: right;
  1465. font-size: 24rpx;
  1466. line-height: 28rpx;
  1467. color: #70798D;
  1468. display: flex;
  1469. justify-content: space-between;
  1470. }
  1471. .audio-play {
  1472. width: 40rpx;
  1473. height: 40rpx;
  1474. flex-shrink: 0;
  1475. }
  1476. .audio-play .image {
  1477. width: 100%;
  1478. height: 100%;
  1479. }
  1480. }
  1481. .scroll-Y {
  1482. font-size: 36upx;
  1483. color: #999999;
  1484. background: #FFFFFF;
  1485. margin-top: 30upx;
  1486. flex: 1;
  1487. overflow-y: scroll;
  1488. width: 100%;
  1489. }
  1490. .scroll-Y .text {
  1491. margin: 50upx 30upx;
  1492. line-height: 80upx;
  1493. display: flex;
  1494. align-items: center;
  1495. }
  1496. .scroll-Y .text[data-speaker="2"],
  1497. .scroll-Y .text[data-speaker="4"],
  1498. .scroll-Y .text[data-speaker="6"] {
  1499. flex-direction: row-reverse;
  1500. text-align: right;
  1501. .content {
  1502. margin-left: 0;
  1503. margin-right: 30upx;
  1504. background: #F6F6F6;
  1505. color: #999999;
  1506. }
  1507. }
  1508. .scroll-Y .text[data-speaker="2"],
  1509. .scroll-Y .text[data-speaker="4"],
  1510. .scroll-Y .text[data-speaker="6"] {
  1511. .contentInfo {
  1512. .info {
  1513. .AudioUserName {
  1514. margin-left: 10rpx;
  1515. }
  1516. display: flex;
  1517. flex-direction: row-reverse;
  1518. }
  1519. }
  1520. }
  1521. .scroll-Y .text {
  1522. .contentInfo {
  1523. .info {
  1524. .AudioUserName {
  1525. margin-right: 10rpx;
  1526. }
  1527. }
  1528. }
  1529. }
  1530. .scroll-Y .text .avatar {
  1531. width: 64upx;
  1532. height: 64upx;
  1533. line-height: 64upx;
  1534. text-align: center;
  1535. // border: 1rpx solid red;
  1536. font-size: 36rpx;
  1537. border-radius: 50%;
  1538. background: #F2F2F2;
  1539. color: #008EF2;
  1540. // display: flex;
  1541. // justify-content: center;
  1542. // align-items: center;
  1543. // image {
  1544. // width: 40upx;
  1545. // }
  1546. }
  1547. .scroll-Y .text .contentInfo .info {
  1548. color: #ccc;
  1549. font-size: 18rpx;
  1550. font-size: 30rpx;
  1551. padding: 0 28rpx;
  1552. }
  1553. .scroll-Y .text .contentInfo .content {
  1554. margin-left: 30upx;
  1555. line-height: 60rpx;
  1556. text-align: left;
  1557. padding: 0 5px;
  1558. background: #2BC805;
  1559. border-radius: 8upx;
  1560. max-width: 442rpx;
  1561. color: #FFFFFF;
  1562. position: relative;
  1563. .tankuangcss {
  1564. position: absolute;
  1565. top: -140rpx;
  1566. left: -120rpx;
  1567. width: 308rpx;
  1568. height: 130rpx;
  1569. background-color: #333333;
  1570. font-size: 24rpx;
  1571. color: #FFFFFF;
  1572. padding-top: 4rpx;
  1573. padding-bottom: 4rpx;
  1574. display: flex;
  1575. flex-wrap: wrap;
  1576. border-radius: 15rpx;
  1577. z-index: 1000;
  1578. }
  1579. .bottoms {
  1580. top: unset;
  1581. bottom: -140rpx;
  1582. }
  1583. }
  1584. .scroll-Y .text .content {
  1585. margin-left: 30upx;
  1586. line-height: 60rpx;
  1587. text-align: left;
  1588. padding: 0 5px;
  1589. background: #2BC805;
  1590. border-radius: 8upx;
  1591. max-width: 442rpx;
  1592. color: #FFFFFF;
  1593. position: relative;
  1594. .tankuangcss {
  1595. position: absolute;
  1596. top: -140rpx;
  1597. left: -120rpx;
  1598. width: 308rpx;
  1599. height: 130rpx;
  1600. background-color: #333333;
  1601. font-size: 24rpx;
  1602. color: #FFFFFF;
  1603. padding-top: 4rpx;
  1604. padding-bottom: 4rpx;
  1605. display: flex;
  1606. flex-wrap: wrap;
  1607. border-radius: 15rpx;
  1608. z-index: 1000;
  1609. }
  1610. .bottoms {
  1611. top: unset;
  1612. bottom: -140rpx;
  1613. }
  1614. }
  1615. .scroll-Y .text.active .content {
  1616. color: #38FFF1;
  1617. position: relative;
  1618. }
  1619. .scroll-Y .text.active[data-speaker="2"] .content,
  1620. .scroll-Y .text.active[data-speaker="4"] .content,
  1621. .scroll-Y .text.active[data-speaker="6"] .content {
  1622. color: #FF7538;
  1623. position: relative;
  1624. }
  1625. .tab-box {
  1626. width: 100%;
  1627. display: flex;
  1628. justify-content: center;
  1629. align-items: center;
  1630. .yinpinshibie {
  1631. width: 156rpx;
  1632. height: 50rpx;
  1633. font-size: 36rpx;
  1634. font-weight: 400;
  1635. color: #333333;
  1636. text-align: center;
  1637. line-height: 50rpx;
  1638. letter-spacing: 2rpx;
  1639. margin-right: 188rpx;
  1640. &.active {
  1641. position: relative;
  1642. &::after {
  1643. position: absolute;
  1644. content: '';
  1645. width: 119rpx;
  1646. height: 8rpx;
  1647. background: #008EF2;
  1648. border-radius: 4rpx;
  1649. top: 50rpx;
  1650. right: 0;
  1651. left: 0;
  1652. margin: 0 auto;
  1653. }
  1654. }
  1655. }
  1656. .rate {
  1657. width: 156rpx;
  1658. height: 50rpx;
  1659. font-size: 36rpx;
  1660. font-weight: 400;
  1661. color: #333333;
  1662. line-height: 50rpx;
  1663. letter-spacing: 2rpx;
  1664. text-align: center;
  1665. &.active {
  1666. position: relative;
  1667. &::after {
  1668. position: absolute;
  1669. content: '';
  1670. width: 119rpx;
  1671. height: 8rpx;
  1672. background: #008EF2;
  1673. border-radius: 4rpx;
  1674. top: 50rpx;
  1675. right: 0;
  1676. left: 0;
  1677. margin: 0 auto;
  1678. }
  1679. }
  1680. }
  1681. }
  1682. .backTop {
  1683. width: 60upx;
  1684. height: 60upx;
  1685. background: rgba(211, 235, 253, 1);
  1686. box-shadow: 0upx 0upx 2upx 4upx rgba(38, 161, 255, 0.04);
  1687. border-radius: 50%;
  1688. position: fixed;
  1689. bottom: 200upx;
  1690. right: 8upx;
  1691. display: flex;
  1692. justify-content: center;
  1693. align-items: center;
  1694. image {
  1695. width: 26upx;
  1696. height: 34upx;
  1697. }
  1698. }
  1699. // 评分
  1700. .rate-box {
  1701. padding: 10rpx 20rpx;
  1702. .date {
  1703. width: 300rpx;
  1704. height: 33rpx;
  1705. font-size: 24rpx;
  1706. font-weight: 400;
  1707. color: #333333;
  1708. line-height: 33rpx;
  1709. letter-spacing: 1rpx;
  1710. margin-bottom: 8rpx;
  1711. }
  1712. .title {
  1713. width: 100%;
  1714. height: 42rpx;
  1715. font-size: 30rpx;
  1716. font-weight: 500;
  1717. color: #333333;
  1718. line-height: 42rpx;
  1719. letter-spacing: 2rpx;
  1720. margin-bottom: 20rpx;
  1721. }
  1722. .level1 {
  1723. display: flex;
  1724. align-items: center;
  1725. .level-name {
  1726. width: 104rpx;
  1727. height: 33rpx;
  1728. font-size: 24rpx;
  1729. font-weight: 500;
  1730. color: #333333;
  1731. line-height: 33rpx;
  1732. letter-spacing: 1rpx;
  1733. margin-right: 10rpx;
  1734. }
  1735. .level-progress {
  1736. flex: 1;
  1737. border-radius: 11rpx;
  1738. height: 21rpx;
  1739. background-color: #BEE4FF;
  1740. position: relative;
  1741. .color {
  1742. width: 0;
  1743. position: absolute;
  1744. top: 0;
  1745. left: 0;
  1746. height: 21rpx;
  1747. border-radius: 11rpx 0 0 11rpx;
  1748. background-color: #008EF2;
  1749. }
  1750. }
  1751. .level-rate {
  1752. width: 65rpx;
  1753. height: 33rpx;
  1754. font-size: 24rpx;
  1755. font-weight: 500;
  1756. color: #333333;
  1757. line-height: 33rpx;
  1758. letter-spacing: 1rpx;
  1759. margin: 0 20rpx 0 15rpx;
  1760. }
  1761. .arrow {
  1762. width: 37rpx;
  1763. height: 21rpx;
  1764. padding: 5rpx 20rpx;
  1765. }
  1766. .rotatearrow {
  1767. transform: rotate(270deg);
  1768. }
  1769. }
  1770. .level1-subbox {
  1771. display: flex;
  1772. margin-top: 20rpx;
  1773. flex-wrap: wrap;
  1774. .sub-name {
  1775. width: 50%;
  1776. display: flex;
  1777. margin-bottom: 18rpx;
  1778. .subitem-name {
  1779. width: 104rpx;
  1780. height: 33rpx;
  1781. font-size: 24rpx;
  1782. font-weight: 400;
  1783. color: #999999;
  1784. line-height: 33rpx;
  1785. letter-spacing: 1rpx;
  1786. margin-right: 12rpx;
  1787. }
  1788. .checkimg {
  1789. width: 27rpx;
  1790. height: 27rpx;
  1791. }
  1792. }
  1793. }
  1794. }
  1795. .dialog-block {
  1796. margin: 20rpx 0;
  1797. border-bottom: 1px solid #ccc;
  1798. .fileName {
  1799. text-align: center;
  1800. margin: 10rpx auto;
  1801. width: 115rpx;
  1802. height: 42rpx;
  1803. line-height: 42rpx;
  1804. background: #EFEFEF;
  1805. border-radius: 4rpx;
  1806. font-size: 20rpx;
  1807. font-weight: 400;
  1808. color: #333333;
  1809. }
  1810. }
  1811. </style>