AI销管
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1781 lines
41 KiB

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