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

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