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.
 
 
 
 

1779 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. level1[0].show = true;
  877. this.ratelist = level1
  878. }
  879. setTimeout(function() {
  880. uni.hideLoading();
  881. }, 1000);
  882. })
  883. }
  884. },
  885. // 获取转义后的对话结果
  886. getCorpusAnalysis(info) {
  887. this.dialogList = [];
  888. let obj = {
  889. corpusId: this.luyinList[this.csdFileindex].id,
  890. customerId: this.customerId
  891. }
  892. this.$u.get(config.service.getCorpusAnalysis, obj).then(data => {
  893. try {
  894. const jsonInfo = JSON.parse(data.audioContent);
  895. // console.log(jsonInfo)
  896. if (this.luyinList[this.csdFileindex].recordDuration > 360) {
  897. //拿到总条数
  898. var stusnum = jsonInfo.length;
  899. this.dialogList.push({
  900. message: jsonInfo.splice(0, 80),
  901. backindex: this.csdFileindex
  902. });
  903. var auth_timetimer = setInterval(() => {
  904. stusnum -= 100;
  905. // console.log("还剩下" + stusnum)
  906. if (stusnum <= 0) {
  907. clearInterval(auth_timetimer);
  908. } else {
  909. var newlistwang = [];
  910. newlistwang = jsonInfo.splice(0, 100);
  911. newlistwang.forEach(item => {
  912. this.dialogList[0].message.push(item)
  913. })
  914. }
  915. }, 1000);
  916. } else {
  917. this.dialogList.push({
  918. message: jsonInfo,
  919. backindex: this.csdFileindex
  920. });
  921. }
  922. this.dialogList.forEach((asd, idx) => {
  923. asd.message.forEach((qwe, inde) => {
  924. qwe.isshow = false;
  925. })
  926. })
  927. } catch (e) {
  928. if (data.whetherFinishName == '转写中') {
  929. uni.showModal({
  930. title: '提示',
  931. content: '录音正在转写中,请稍后重试!',
  932. showCancel: false
  933. });
  934. }
  935. }
  936. }).catch(e => {
  937. // if (e.da)
  938. uni.showModal({
  939. title: '提示',
  940. content: '请求数据失败,请重新尝试',
  941. showCancel: false
  942. });
  943. })
  944. },
  945. getTime(time) {
  946. return util.formatSecond(time)
  947. },
  948. //音频前进回退
  949. sliderChangeComplate(currentTime) {
  950. // 暂时没有处理
  951. // this.$refs.zyAudio.seek(e.detail.value);
  952. // this.$refs.zyAudio.play();
  953. },
  954. //长按点击播放
  955. clickbofang(dialog, item) {
  956. this.dialogList.forEach(res => {
  957. res.message.forEach(asd => {
  958. asd.isshow = false;
  959. })
  960. })
  961. this.$forceUpdate()
  962. if (dialog == this.csdFileindex) {
  963. let time = item.bg / 1000
  964. this.stepPlay(time);
  965. return
  966. } else {
  967. let time = item.bg / 1000
  968. this.csdFileindex = dialog;
  969. this.recordPath = this.luyinList[dialog].recordPath;
  970. this.date = this.luyinList[dialog].receptionTime;
  971. this.getCorpusAnalysis()
  972. this.stepPlay(time);
  973. }
  974. },
  975. // 文件切换播放
  976. filechange(item, i) {
  977. this.num = i; //下拉起始位置
  978. this.Bnum = i;
  979. this.csdFileindex = i;
  980. this.recordPath = item.recordPath;
  981. this.date = item.receptionTime;
  982. this.isshowFile = false;
  983. setTimeout(() => {
  984. this.$zaudio.operate(i)
  985. }, 50)
  986. this.getCorpusAnalysis()
  987. },
  988. // 自动播放下一个文件
  989. qeihuanwenjian() {
  990. // this.$zaudio.paused()
  991. let index = this.csdFileindex + 1;
  992. if (index < this.luyinList.length) {
  993. this.csdFileindex = index;
  994. this.getCorpusAnalysis()
  995. let item = this.luyinList[this.csdFileindex];
  996. let i = this.csdFileindex;
  997. this.filechange(item, i)
  998. }
  999. },
  1000. formatTime(num) {
  1001. //格式化时间格式
  1002. num = num.toFixed(0);
  1003. let second = num % 60;
  1004. if (second < 10) second = '0' + second;
  1005. let min = Math.floor(num / 60);
  1006. if (min < 10) min = '0' + min;
  1007. return min + ":" + second;
  1008. },
  1009. changeEditing() {
  1010. this.dialogList.forEach(res => {
  1011. res.message.forEach(asd => {
  1012. asd.isshow = false;
  1013. })
  1014. })
  1015. },
  1016. // 迅速切换音频源并切换回来
  1017. checkPlaybackRate() {
  1018. this.stepPosition = this.nowPlaying
  1019. //
  1020. let data = [{
  1021. src: 'https://static.quhouse.com/record/prop/2022-12-13/1670905992910-00066.mp3',
  1022. title: '录音音频',
  1023. singer: '',
  1024. coverImgUrl: ''
  1025. }]
  1026. this.$zaudio.setAudio(data)
  1027. //渲染第一首音频
  1028. this.$zaudio.setRender(0)
  1029. if (!this.refresh) {
  1030. setTimeout(() => {
  1031. this.$zaudio.operate()
  1032. }, 150)
  1033. }
  1034. setTimeout(() => {
  1035. this.zyAudio()
  1036. }, 500)
  1037. },
  1038. //录音实例
  1039. zyAudio() {
  1040. let data = this.luyinList.map((item, index) => {
  1041. return {
  1042. src: item.recordPath,
  1043. title: `录音文件${index + 1}`,
  1044. singer: '',
  1045. coverImgUrl: ''
  1046. }
  1047. })
  1048. this.$zaudio.setAudio(data)
  1049. //渲染第一首音频
  1050. this.$zaudio.setRender(0)
  1051. setTimeout(() => {
  1052. this.$zaudio.operate()
  1053. }, 150)
  1054. if (this.stepPosition != 0) {
  1055. setTimeout(() => {
  1056. this.stepPlay(this.stepPosition)
  1057. }, 1500)
  1058. }
  1059. this.$forceUpdate()
  1060. },
  1061. // 跳转指定位置播放
  1062. stepPlay(t) {
  1063. this.$zaudio.seek(t)
  1064. if (this.$zaudio.paused) {
  1065. this.$zaudio.operate()
  1066. }
  1067. },
  1068. }
  1069. }
  1070. </script>
  1071. <style lang="scss" scoped>
  1072. .ffectivetext {
  1073. width: 85%;
  1074. margin: 10rpx auto;
  1075. height: 100rpx;
  1076. padding: 20rpx;
  1077. border: 1rpx solid #E4F0FF;
  1078. }
  1079. .biaoqiantom {
  1080. background-color: #008EF2;
  1081. color: #FFFFFF;
  1082. border: none;
  1083. }
  1084. // 表单
  1085. .tian-view {
  1086. width: 570rpx;
  1087. background-color: #FFFFFF;
  1088. border-bottom: 1px solid #ededee;
  1089. display: flex;
  1090. min-height: 96rpx;
  1091. .tian-view-t1 {
  1092. width: 20rpx;
  1093. font-size: 34rpx;
  1094. height: 34rpx;
  1095. line-height: 110rpx;
  1096. letter-spacing: 0px;
  1097. color: red;
  1098. }
  1099. .tian-view-t2 {
  1100. width: 30%;
  1101. min-height: 96rpx;
  1102. line-height: 96rpx;
  1103. font-size: 34rpx;
  1104. color: #333;
  1105. }
  1106. .tian-view-t3 {
  1107. width: 61%;
  1108. padding-top: 31rpx;
  1109. padding-bottom: 31rpx;
  1110. display: flex;
  1111. .tian-input {
  1112. width: 98%;
  1113. height: 30rpx;
  1114. font-size: 34rpx;
  1115. border: none;
  1116. }
  1117. }
  1118. }
  1119. .zhezhoa {
  1120. position: fixed;
  1121. top: 0;
  1122. left: 0;
  1123. z-index: 999;
  1124. width: 100%;
  1125. height: 100vh;
  1126. opacity: 0.5;
  1127. background-color: #666666;
  1128. }
  1129. .bounced {
  1130. width: 570rpx;
  1131. background: #FFFFFF;
  1132. z-index: 1000;
  1133. border-radius: 10rpx;
  1134. position: fixed;
  1135. left: 50%;
  1136. top: 50%;
  1137. transform: translate(-50%, -50%);
  1138. /* 50%为自身尺寸的一半 */
  1139. .jiajinghuatit {
  1140. width: 100%;
  1141. height: 68rpx;
  1142. font-size: 30rpx;
  1143. text-align: center;
  1144. line-height: 68rpx;
  1145. }
  1146. .jiajinghuaview {
  1147. padding: 18rpx 18rpx 18rpx 18rpx;
  1148. display: flex;
  1149. flex-wrap: wrap;
  1150. height: 50vh;
  1151. overflow-y: scroll;
  1152. .jiajinghuaview1 {
  1153. padding: 8rpx 8rpx 8rpx 8rpx;
  1154. font-size: 26rpx;
  1155. border-radius: 12rpx;
  1156. border: 1px solid #979797;
  1157. margin-left: 8rpx;
  1158. }
  1159. .jighuaview2 {
  1160. padding: 8rpx 18rpx 8rpx 18rpx;
  1161. font-size: 26rpx;
  1162. border-radius: 12rpx;
  1163. border: 1px solid #979797;
  1164. margin-left: 20rpx;
  1165. margin-top: 10rpx;
  1166. display: flex;
  1167. .view1-text {
  1168. text-align: center;
  1169. }
  1170. .view1-img {
  1171. width: 50rpx;
  1172. }
  1173. }
  1174. }
  1175. .bounced3 {
  1176. height: 100rpx;
  1177. width: 100%;
  1178. margin-top: 40rpx;
  1179. border-top: 1px solid #dddddd;
  1180. display: flex;
  1181. }
  1182. .bounced3-1 {
  1183. width: 50%;
  1184. height: 100%;
  1185. text-align: center;
  1186. line-height: 100rpx;
  1187. border-right: 1px solid #dddddd;
  1188. font-size: 36rpx;
  1189. color: #999999;
  1190. }
  1191. .bounced3-2 {
  1192. width: 50%;
  1193. height: 100%;
  1194. text-align: center;
  1195. line-height: 100rpx;
  1196. font-size: 36rpx;
  1197. color: #108ee9;
  1198. }
  1199. }
  1200. .translation {
  1201. padding-left: 30rpx;
  1202. padding-right: 30rpx;
  1203. background: #FFFFFF;
  1204. display: flex;
  1205. flex-direction: column;
  1206. height: 100vh;
  1207. }
  1208. .translation .top {
  1209. margin: 0 -30rpx;
  1210. padding: 0 30rpx;
  1211. background: #ffffff;
  1212. border-bottom: 1rpx solid #F2F2F2;
  1213. padding-bottom: 10rpx;
  1214. }
  1215. .translation .top .title {
  1216. display: flex;
  1217. justify-content: space-between;
  1218. .hash {
  1219. color: rgba(21, 144, 233, 1);
  1220. font-size: 24rpx;
  1221. }
  1222. }
  1223. .call_record_time {
  1224. height: 42rpx;
  1225. font-size: 30rpx;
  1226. font-family: PingFangSC-Medium, PingFang SC;
  1227. font-weight: 500;
  1228. color: #303030;
  1229. line-height: 42rpx;
  1230. margin-bottom: 20rpx;
  1231. }
  1232. .call_record_time_one {
  1233. font-family: PingFangSC-Regular, PingFang SC;
  1234. font-weight: 400;
  1235. color: #303030;
  1236. height: 48rpx;
  1237. font-size: 28rpx;
  1238. line-height: 48rpx;
  1239. display: flex;
  1240. justify-content: space-between;
  1241. align-items: center;
  1242. position: relative;
  1243. .menu {
  1244. width: 36rpx;
  1245. height: 36rpx;
  1246. }
  1247. .audoioyouxiao {
  1248. color: #333333;
  1249. font-size: 28rpx;
  1250. line-height: 48rpx;
  1251. font-family: PingFangSC-Regular, PingFang SC;
  1252. font-weight: 400;
  1253. position: absolute;
  1254. top: 0rpx;
  1255. right: 126rpx;
  1256. }
  1257. .diangweitupian {
  1258. width: 46rpx;
  1259. height: 46rpx;
  1260. position: absolute;
  1261. top: 0rpx;
  1262. right: 75rpx;
  1263. }
  1264. .file-change {
  1265. position: absolute;
  1266. top: 50rpx;
  1267. right: 0rpx;
  1268. width: 184rpx;
  1269. background: #FFFFFF;
  1270. box-shadow: 0rpx 0rpx 6rpx 2rpx rgba(230, 230, 230, 0.5);
  1271. border-radius: 4rpx;
  1272. z-index: 99;
  1273. height: auto;
  1274. max-height: 600rpx;
  1275. overflow: auto;
  1276. }
  1277. .file-item {
  1278. width: 184rpx;
  1279. height: 60rpx;
  1280. line-height: 60rpx;
  1281. text-align: center;
  1282. font-size: 30rpx;
  1283. font-weight: 400;
  1284. color: #333333;
  1285. border-bottom: 1rpx solid #E2E2E2;
  1286. }
  1287. .file-item:last-child {
  1288. border: 0
  1289. }
  1290. .fileactive {
  1291. color: #008EF2
  1292. }
  1293. }
  1294. .audio-container {
  1295. width: 100%;
  1296. display: flex;
  1297. justify-content: space-between;
  1298. align-items: center;
  1299. .audio-head {
  1300. width: 60rpx;
  1301. height: 60rpx;
  1302. flex-shrink: 0;
  1303. }
  1304. .audio-head .image {
  1305. width: 100%;
  1306. height: 100%;
  1307. }
  1308. .audio-slider {
  1309. width: 96%;
  1310. position: relative;
  1311. padding: 2px 0rpx 0px 20px;
  1312. display: flex;
  1313. justify-content: space-between;
  1314. align-items: center;
  1315. }
  1316. .audio-slider .slider {
  1317. width: 100%;
  1318. padding: 0px 15rpx;
  1319. box-sizing: border-box;
  1320. }
  1321. .audio-time {
  1322. width: 110rpx;
  1323. text-align: right;
  1324. font-size: 24rpx;
  1325. line-height: 28rpx;
  1326. color: #70798D;
  1327. display: flex;
  1328. justify-content: space-between;
  1329. }
  1330. .audio-play {
  1331. width: 40rpx;
  1332. height: 40rpx;
  1333. flex-shrink: 0;
  1334. }
  1335. .audio-play .image {
  1336. width: 100%;
  1337. height: 100%;
  1338. }
  1339. }
  1340. .scroll-Y {
  1341. font-size: 36rpx;
  1342. color: #999999;
  1343. background: #FFFFFF;
  1344. margin-top: 30rpx;
  1345. flex: 1;
  1346. overflow-y: scroll;
  1347. width: 100%;
  1348. }
  1349. .scroll-Y .text {
  1350. position: relative;
  1351. line-height: 42rpx;
  1352. display: flex;
  1353. margin-top: 30rpx;
  1354. font-size: 30rpx;
  1355. color: #505050;
  1356. }
  1357. .scroll-Y .text[data-speaker="2"],
  1358. .scroll-Y .text[data-speaker="4"],
  1359. .scroll-Y .text[data-speaker="6"] {
  1360. flex-direction: row-reverse;
  1361. text-align: right;
  1362. .content {
  1363. flex-direction: row-reverse;
  1364. .contentdesc {
  1365. margin-left: 0;
  1366. margin-right: 30rpx;
  1367. }
  1368. .play {
  1369. margin-right: 20rpx;
  1370. width: 50rpx;
  1371. height: 50rpx;
  1372. }
  1373. }
  1374. }
  1375. .scroll-Y .text .avatar {
  1376. text {
  1377. display: block;
  1378. width: 72rpx;
  1379. height: 72rpx;
  1380. line-height: 72rpx;
  1381. text-align: center;
  1382. background: #FFFFFF;
  1383. border-radius: 8rpx;
  1384. font-size: 30rpx;
  1385. font-family: PingFangSC-Medium, PingFang SC;
  1386. font-weight: 500;
  1387. box-sizing: border-box;
  1388. }
  1389. }
  1390. .scroll-Y .text .content {
  1391. display: flex;
  1392. align-items: center;
  1393. .contentdesc {
  1394. border-radius: 12rpx;
  1395. max-width: 460rpx;
  1396. margin-left: 30rpx;
  1397. text-align: left;
  1398. line-height: 42rpx;
  1399. padding: 15rpx 20rpx;
  1400. background: #f8f8f8;
  1401. color: #505050;
  1402. }
  1403. .play {
  1404. width: 50rpx;
  1405. height: 50rpx;
  1406. margin-left: 20rpx;
  1407. }
  1408. .tankuangcss {
  1409. position: absolute;
  1410. top: -140rpx;
  1411. left: 50%;
  1412. transform: translateX(-50%);
  1413. z-index: 1000;
  1414. min-width: 150rpx;
  1415. height: 140rpx;
  1416. display: flex;
  1417. background: rgba(48, 48, 48, 0.8);
  1418. border-radius: 15rpx;
  1419. .play {
  1420. width: 50rpx;
  1421. height: 50rpx;
  1422. margin-left: 20rpx;
  1423. }
  1424. .tankuangcss-items {
  1425. width: 150rpx;
  1426. display: flex;
  1427. flex-direction: column;
  1428. justify-content: center;
  1429. align-items: center;
  1430. image {
  1431. width: 36rpx;
  1432. height: 36rpx;
  1433. }
  1434. text {
  1435. margin: 12rpx 0 0 0;
  1436. font-size: 24rpx;
  1437. color: #fff;
  1438. }
  1439. }
  1440. }
  1441. }
  1442. .scroll-Y .text.active .content {
  1443. color: #2671E2 !important;
  1444. // position: relative;
  1445. }
  1446. .scroll-Y .text.active[data-speaker="2"] .content,
  1447. .scroll-Y .text.active[data-speaker="4"] .content,
  1448. .scroll-Y .text.active[data-speaker="6"] .content {
  1449. color: #2671E2 !important;
  1450. // position: relative;
  1451. }
  1452. .tab-box {
  1453. width: 100%;
  1454. display: flex;
  1455. justify-content: center;
  1456. align-items: center;
  1457. .yinpinshibie {
  1458. width: 156rpx;
  1459. height: 50rpx;
  1460. font-size: 36rpx;
  1461. font-weight: 400;
  1462. color: #333333;
  1463. text-align: center;
  1464. line-height: 50rpx;
  1465. letter-spacing: 2rpx;
  1466. margin-right: 188rpx;
  1467. &.active {
  1468. position: relative;
  1469. &::after {
  1470. position: absolute;
  1471. content: '';
  1472. width: 119rpx;
  1473. height: 8rpx;
  1474. background: #008EF2;
  1475. border-radius: 4rpx;
  1476. top: 50rpx;
  1477. right: 0;
  1478. left: 0;
  1479. margin: 0 auto;
  1480. }
  1481. }
  1482. }
  1483. .rate {
  1484. width: 156rpx;
  1485. height: 50rpx;
  1486. font-size: 36rpx;
  1487. font-weight: 400;
  1488. color: #333333;
  1489. line-height: 50rpx;
  1490. letter-spacing: 2rpx;
  1491. text-align: center;
  1492. &.active {
  1493. position: relative;
  1494. &::after {
  1495. position: absolute;
  1496. content: '';
  1497. width: 119rpx;
  1498. height: 8rpx;
  1499. background: #008EF2;
  1500. border-radius: 4rpx;
  1501. top: 50rpx;
  1502. right: 0;
  1503. left: 0;
  1504. margin: 0 auto;
  1505. }
  1506. }
  1507. }
  1508. }
  1509. .eqLog {
  1510. width: 115upx;
  1511. height: 115upx;
  1512. background: rgba(211, 235, 253, 1);
  1513. box-shadow: 0 0 10rpx 7rpx #f1f1f1;
  1514. ;
  1515. border-radius: 50%;
  1516. position: fixed;
  1517. bottom: 300upx;
  1518. right: 8upx;
  1519. display: flex;
  1520. justify-content: center;
  1521. align-items: center;
  1522. color: #008EF2;
  1523. }
  1524. .backTop {
  1525. width: 112rpx;
  1526. height: 112rpx;
  1527. position: fixed;
  1528. bottom: 110rpx;
  1529. right: 40rpx;
  1530. image {
  1531. width: 112rpx;
  1532. height: 112rpx;
  1533. }
  1534. }
  1535. // 评分
  1536. .rate-box {
  1537. padding: 10rpx 20rpx;
  1538. .date {
  1539. width: 300rpx;
  1540. height: 33rpx;
  1541. font-size: 24rpx;
  1542. font-weight: 400;
  1543. color: #333333;
  1544. line-height: 33rpx;
  1545. letter-spacing: 1rpx;
  1546. margin-bottom: 8rpx;
  1547. }
  1548. .title {
  1549. width: 100%;
  1550. height: 42rpx;
  1551. font-size: 30rpx;
  1552. font-weight: 500;
  1553. color: #333333;
  1554. line-height: 42rpx;
  1555. letter-spacing: 2rpx;
  1556. margin-bottom: 20rpx;
  1557. }
  1558. .level1 {
  1559. display: flex;
  1560. align-items: center;
  1561. .level-name {
  1562. width: 104rpx;
  1563. height: 33rpx;
  1564. font-size: 24rpx;
  1565. font-weight: 500;
  1566. color: #333333;
  1567. line-height: 33rpx;
  1568. letter-spacing: 1rpx;
  1569. margin-right: 10rpx;
  1570. }
  1571. .level-progress {
  1572. flex: 1;
  1573. border-radius: 11rpx;
  1574. height: 21rpx;
  1575. background-color: #BEE4FF;
  1576. position: relative;
  1577. .color {
  1578. width: 0;
  1579. position: absolute;
  1580. top: 0;
  1581. left: 0;
  1582. height: 21rpx;
  1583. border-radius: 11rpx 0 0 11rpx;
  1584. background-color: #008EF2;
  1585. }
  1586. }
  1587. .level-rate {
  1588. width: 65rpx;
  1589. height: 33rpx;
  1590. font-size: 24rpx;
  1591. font-weight: 500;
  1592. color: #333333;
  1593. line-height: 33rpx;
  1594. letter-spacing: 1rpx;
  1595. margin: 0 20rpx 0 15rpx;
  1596. }
  1597. .arrow {
  1598. width: 37rpx;
  1599. height: 21rpx;
  1600. padding: 5rpx 20rpx;
  1601. }
  1602. .rotatearrow {
  1603. transform: rotate(270deg);
  1604. }
  1605. }
  1606. .level1-subbox {
  1607. display: flex;
  1608. margin-top: 20rpx;
  1609. flex-wrap: wrap;
  1610. .sub-name {
  1611. width: 50%;
  1612. display: flex;
  1613. margin-bottom: 18rpx;
  1614. .subitem-name {
  1615. width: 104rpx;
  1616. height: 33rpx;
  1617. font-size: 24rpx;
  1618. font-weight: 400;
  1619. color: #999999;
  1620. line-height: 33rpx;
  1621. letter-spacing: 1rpx;
  1622. margin-right: 12rpx;
  1623. }
  1624. .checkimg {
  1625. width: 27rpx;
  1626. height: 27rpx;
  1627. }
  1628. }
  1629. }
  1630. }
  1631. .dialog-block {
  1632. margin: 20rpx 0;
  1633. border-bottom: 1rpx solid #ccc;
  1634. padding-bottom: 30rpx;
  1635. .fileName {
  1636. text-align: center;
  1637. margin: 10rpx auto;
  1638. width: 115rpx;
  1639. height: 42rpx;
  1640. line-height: 42rpx;
  1641. background: #EFEFEF;
  1642. border-radius: 4rpx;
  1643. font-size: 20rpx;
  1644. font-weight: 400;
  1645. color: #333333;
  1646. }
  1647. }
  1648. /deep/ .u-model-title {
  1649. padding: 34rpx 0 16rpx !important;
  1650. }
  1651. </style>