AI销管
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

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