您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

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