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.
 
 
 
 

1700 lines
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 @longpress="changanxiaoguo(item,index,i)" v-html="item.onebest"></view>
  58. <view class="tankuangcss" v-if="item.isshow">
  59. <view @click="clickcopy()"
  60. style="width: 60rpx;font-size: 24rpx;text-align: center;margin-left: 24rpx;">复制
  61. </view>
  62. <view @click="Oftenthewrongword()" v-if="permissions.commonly4"
  63. style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 22rpx;">常错词
  64. </view>
  65. <view @click="Addtheessence()" v-if="permissions.commonly3"
  66. style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 22rpx;">加精华
  67. </view>
  68. <view @click="clickbofang(dialog.backindex,item)"
  69. style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 14rpx;">播放
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. </view>
  76. <!-- 评分模块 -->
  77. <view v-if="tab==1" class="rate-box">
  78. <view class="title">总执行率 {{totalRate}}%</view>
  79. <view v-for="(item,index) in ratelist" :key="index" class="u-m-b-14">
  80. <view class="level1">
  81. <view class="level-name u-line-1">
  82. {{item.name}}
  83. </view>
  84. <view class="level-progress">
  85. <view class="color" :style="{width: item.ratepercent/item.rate*100+'%'}"></view>
  86. </view>
  87. <view class="level-rate">{{((item.ratepercent/item.rate).toFixed(2)*100).toFixed()}}%</view>
  88. <image v-if="!item.show" class="arrow rotatearrow" @click="changeshow(item,1)"
  89. src="/static/images/down.png" mode="" />
  90. <image v-else class="arrow" @click="changeshow(item,0)" src="/static/images/up.png" mode="" />
  91. </view>
  92. <view class="level1-subbox" v-if="item.show">
  93. <view class="sub-name" v-for="(subitem,i) in item.children" :key="i">
  94. <view class="subitem-name u-line-1">{{subitem.name}}</view>
  95. <image class="checkimg" v-if="!subitem.selected" src="/static/images/rate-checked.png"
  96. mode="" />
  97. <image class="checkimg" v-else src="/static/images/rate-nocheck.png" mode="" />
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. </scroll-view>
  103. <!-- 回到顶部 -->
  104. <view class="backTop" @click="gotoTop">
  105. <image src="/static/images/topicon.png" mode=""></image>
  106. </view>
  107. <template v-if="permissions.sbrz">
  108. <view class="eqLog" @click="eqLogClick">
  109. <view style="width: 78rpx;text-align: center;">设备日志</view>
  110. </view>
  111. </template>
  112. <!-- 加入常错词 -->
  113. <view class="zhezhoa" v-if="isshow2" @tap="Cancelout"></view>
  114. <u-modal v-model="isshow2" title="添加常错词" :show-cancel-button="true" @cancel="Cancelout"
  115. @confirm="Confirmtheexit">
  116. <view class="tian-view">
  117. <viwe class="tian-view-t1"></viwe>
  118. <viwe class="tian-view-t2">常错词:</viwe>
  119. <viwe class="tian-view-t3">
  120. <textarea :auto-height="true" type="text" v-model="thewrongword" :disabled="isNum"
  121. class="tian-input" placeholder="请输入" />
  122. </viwe>
  123. </view>
  124. <view class="tian-view" style="margin-bottom: 74rpx;">
  125. <viwe class="tian-view-t1"></viwe>
  126. <viwe class="tian-view-t2">正确词:</viwe>
  127. <viwe class="tian-view-t3">
  128. <input class="tian-input" v-model="reswrongword" type="text" placeholder="请输入" />
  129. </viwe>
  130. </view>
  131. </u-modal>
  132. <!-- <view class="bounced" v-if="isshow2">
  133. <view class="tian-view">
  134. <viwe class="tian-view-t1"></viwe>
  135. <viwe class="tian-view-t2">常错词:</viwe>
  136. <viwe class="tian-view-t3">
  137. <input type="text" v-model="thewrongword" :disabled="isNum" class="tian-input" placeholder="请输入" />
  138. </viwe>
  139. </view>
  140. <view class="tian-view">
  141. <viwe class="tian-view-t1"></viwe>
  142. <viwe class="tian-view-t2">正确词:</viwe>
  143. <viwe class="tian-view-t3">
  144. <input class="tian-input" v-model="reswrongword" type="text" placeholder="请输入" />
  145. </viwe>
  146. </view>
  147. <view class="bounced3">
  148. <view class="bounced3-1" @tap="Cancelout">取消</view>
  149. <view class="bounced3-2" @tap="Confirmtheexit">确认</view>
  150. </view>
  151. </view> -->
  152. <!-- 加精华 -->
  153. <view class="zhezhoa" v-if="isshow3" @tap="Cancelout2"></view>
  154. <view class="bounced" v-if="isshow3">
  155. <view class="jiajinghuatit">加精华</view>
  156. <view style="width: 100%;text-indent: 20rpx;font-size: 28rpx;">选择标签</view>
  157. <view class="jiajinghuaview">
  158. <view class="jighuaview2" v-for="(item,index) in biaoqianlist" :key="index"
  159. :class="biaoqianindex == index ? 'biaoqiantom' : ''">
  160. <view class="view1-text" @click="tapbiaoqianclisck(index)">{{item.name}}</view>
  161. </view>
  162. </view>
  163. <view class="bounced3">
  164. <view class="bounced3-1" @tap="Cancelout2">取消</view>
  165. <view class="bounced3-2" @tap="Confirmtheexit2">确认</view>
  166. </view>
  167. </view>
  168. <view class="zhezhoa" v-if="effective"></view>
  169. <view class="bounced" v-if="effective">
  170. <view class="jiajinghuatit">选择</view>
  171. <view>
  172. <view class="uni-list">
  173. <radio-group @change="radioChange">
  174. <label style="display: flex;align-items: center;font-size: 30rpx;
  175. width: 94%;height: 80rpx;margin: 0 auto;" v-for="(item, index) in effectiveitems" :key="item.value">
  176. <view style="margin-top: 2rpx;flex: 1; text-indent: 20rpx;">{{item.name}}</view>
  177. <view style="width: 80rpx;">
  178. <radio :value="item.value" :checked="index == effectiveindex" />
  179. </view>
  180. </label>
  181. </radio-group>
  182. </view>
  183. <view v-if="effectiveindex==4">
  184. <textarea class="ffectivetext" v-model="effectiveitext" placeholder="备注" />
  185. </view>
  186. </view>
  187. <view class="bounced3">
  188. <view class="bounced3-1" @click="effective=false">取消</view>
  189. <view class="bounced3-2" @click="$noMultipleClicks(effectiveAdd)">确认</view>
  190. </view>
  191. </view>
  192. <u-toast ref="uToast" />
  193. </view>
  194. </template>
  195. <script>
  196. var util = require("../../utils/util.js");
  197. var config = require("../../config");
  198. import zaudio from '@/components/uniapp-zaudio/zaudio';
  199. export default {
  200. components: {
  201. zaudio
  202. },
  203. data() {
  204. return {
  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. font-size: 34rpx;
  1084. border: none;
  1085. }
  1086. }
  1087. }
  1088. .zhezhoa {
  1089. position: fixed;
  1090. top: 0;
  1091. left: 0;
  1092. z-index: 999;
  1093. width: 100%;
  1094. height: 100vh;
  1095. opacity: 0.5;
  1096. background-color: #666666;
  1097. }
  1098. .bounced {
  1099. width: 570rpx;
  1100. background: #FFFFFF;
  1101. z-index: 1000;
  1102. border-radius: 10rpx;
  1103. position: fixed;
  1104. left: 50%;
  1105. top: 50%;
  1106. transform: translate(-50%, -50%);
  1107. /* 50%为自身尺寸的一半 */
  1108. .jiajinghuatit {
  1109. width: 100%;
  1110. height: 68rpx;
  1111. font-size: 30rpx;
  1112. text-align: center;
  1113. line-height: 68rpx;
  1114. }
  1115. .jiajinghuaview {
  1116. padding: 18rpx 18rpx 18rpx 18rpx;
  1117. display: flex;
  1118. flex-wrap: wrap;
  1119. height: 50vh;
  1120. overflow-y: scroll;
  1121. .jiajinghuaview1 {
  1122. padding: 8rpx 8rpx 8rpx 8rpx;
  1123. font-size: 26rpx;
  1124. border-radius: 12rpx;
  1125. border: 1px solid #979797;
  1126. margin-left: 8rpx;
  1127. }
  1128. .jighuaview2 {
  1129. padding: 8rpx 18rpx 8rpx 18rpx;
  1130. font-size: 26rpx;
  1131. border-radius: 12rpx;
  1132. border: 1px solid #979797;
  1133. margin-left: 20rpx;
  1134. margin-top: 10rpx;
  1135. display: flex;
  1136. .view1-text {
  1137. text-align: center;
  1138. }
  1139. .view1-img {
  1140. width: 50rpx;
  1141. }
  1142. }
  1143. }
  1144. .bounced3 {
  1145. height: 100rpx;
  1146. width: 100%;
  1147. margin-top: 40rpx;
  1148. border-top: 1px solid #dddddd;
  1149. display: flex;
  1150. }
  1151. .bounced3-1 {
  1152. width: 50%;
  1153. height: 100%;
  1154. text-align: center;
  1155. line-height: 100rpx;
  1156. border-right: 1px solid #dddddd;
  1157. font-size: 36rpx;
  1158. color: #999999;
  1159. }
  1160. .bounced3-2 {
  1161. width: 50%;
  1162. height: 100%;
  1163. text-align: center;
  1164. line-height: 100rpx;
  1165. font-size: 36rpx;
  1166. color: #108ee9;
  1167. }
  1168. }
  1169. .translation {
  1170. padding-left: 30rpx;
  1171. padding-right: 30rpx;
  1172. background: #FFFFFF;
  1173. display: flex;
  1174. flex-direction: column;
  1175. height: 100vh;
  1176. }
  1177. .translation .top {
  1178. margin: 0 -30rpx;
  1179. padding: 0 30rpx;
  1180. background: #ffffff;
  1181. border-bottom: 1rpx solid #F2F2F2;
  1182. padding-bottom: 10rpx;
  1183. }
  1184. .translation .top .title {
  1185. display: flex;
  1186. justify-content: space-between;
  1187. .hash {
  1188. color: rgba(21, 144, 233, 1);
  1189. font-size: 24rpx;
  1190. }
  1191. }
  1192. .call_record_time {
  1193. height: 42rpx;
  1194. font-size: 30rpx;
  1195. font-family: PingFangSC-Medium, PingFang SC;
  1196. font-weight: 500;
  1197. color: #303030;
  1198. line-height: 42rpx;
  1199. margin-bottom: 20rpx;
  1200. }
  1201. .call_record_time_one {
  1202. font-family: PingFangSC-Regular, PingFang SC;
  1203. font-weight: 400;
  1204. color: #303030;
  1205. height: 48rpx;
  1206. font-size: 28rpx;
  1207. line-height: 48rpx;
  1208. display: flex;
  1209. justify-content: space-between;
  1210. align-items: center;
  1211. position: relative;
  1212. .menu {
  1213. width: 36rpx;
  1214. height: 36rpx;
  1215. }
  1216. .audoioyouxiao {
  1217. color: #333333;
  1218. font-size: 28rpx;
  1219. line-height: 48rpx;
  1220. font-family: PingFangSC-Regular, PingFang SC;
  1221. font-weight: 400;
  1222. position: absolute;
  1223. top: 0rpx;
  1224. right: 126rpx;
  1225. }
  1226. .diangweitupian {
  1227. width: 46rpx;
  1228. height: 46rpx;
  1229. position: absolute;
  1230. top: 0rpx;
  1231. right: 75rpx;
  1232. }
  1233. .file-change {
  1234. position: absolute;
  1235. top: 50rpx;
  1236. right: 0rpx;
  1237. width: 184rpx;
  1238. background: #FFFFFF;
  1239. box-shadow: 0rpx 0rpx 6rpx 2rpx rgba(230, 230, 230, 0.5);
  1240. border-radius: 4rpx;
  1241. z-index: 99;
  1242. height: auto;
  1243. max-height: 600rpx;
  1244. overflow: auto;
  1245. }
  1246. .file-item {
  1247. width: 184rpx;
  1248. height: 60rpx;
  1249. line-height: 60rpx;
  1250. text-align: center;
  1251. font-size: 30rpx;
  1252. font-weight: 400;
  1253. color: #333333;
  1254. border-bottom: 1rpx solid #E2E2E2;
  1255. }
  1256. .file-item:last-child {
  1257. border: 0
  1258. }
  1259. .fileactive {
  1260. color: #008EF2
  1261. }
  1262. }
  1263. .audio-container {
  1264. width: 100%;
  1265. display: flex;
  1266. justify-content: space-between;
  1267. align-items: center;
  1268. .audio-head {
  1269. width: 60rpx;
  1270. height: 60rpx;
  1271. flex-shrink: 0;
  1272. }
  1273. .audio-head .image {
  1274. width: 100%;
  1275. height: 100%;
  1276. }
  1277. .audio-slider {
  1278. width: 96%;
  1279. position: relative;
  1280. padding: 2px 0rpx 0px 20px;
  1281. display: flex;
  1282. justify-content: space-between;
  1283. align-items: center;
  1284. }
  1285. .audio-slider .slider {
  1286. width: 100%;
  1287. padding: 0px 15rpx;
  1288. box-sizing: border-box;
  1289. }
  1290. .audio-time {
  1291. width: 110rpx;
  1292. text-align: right;
  1293. font-size: 24rpx;
  1294. line-height: 28rpx;
  1295. color: #70798D;
  1296. display: flex;
  1297. justify-content: space-between;
  1298. }
  1299. .audio-play {
  1300. width: 40rpx;
  1301. height: 40rpx;
  1302. flex-shrink: 0;
  1303. }
  1304. .audio-play .image {
  1305. width: 100%;
  1306. height: 100%;
  1307. }
  1308. }
  1309. .scroll-Y {
  1310. font-size: 36rpx;
  1311. color: #999999;
  1312. background: #FFFFFF;
  1313. margin-top: 30rpx;
  1314. flex: 1;
  1315. overflow-y: scroll;
  1316. width: 100%;
  1317. }
  1318. .scroll-Y .text {
  1319. line-height: 42rpx;
  1320. display: flex;
  1321. margin-top: 30rpx;
  1322. font-size: 30rpx;
  1323. color: #505050;
  1324. }
  1325. .scroll-Y .text[data-speaker="2"],
  1326. .scroll-Y .text[data-speaker="4"],
  1327. .scroll-Y .text[data-speaker="6"] {
  1328. flex-direction: row-reverse;
  1329. text-align: right;
  1330. .content {
  1331. margin-left: 0;
  1332. margin-right: 30rpx;
  1333. }
  1334. }
  1335. .scroll-Y .text .avatar {
  1336. text {
  1337. display: block;
  1338. width: 72rpx;
  1339. height: 72rpx;
  1340. line-height: 72rpx;
  1341. text-align: center;
  1342. background: #FFFFFF;
  1343. border-radius: 8rpx;
  1344. font-size: 30rpx;
  1345. font-family: PingFangSC-Medium, PingFang SC;
  1346. font-weight: 500;
  1347. box-sizing: border-box;
  1348. }
  1349. }
  1350. .scroll-Y .text .content {
  1351. margin-left: 30rpx;
  1352. text-align: left;
  1353. padding: 15rpx 20rpx;
  1354. line-height: 42rpx;
  1355. background: #f8f8f8;
  1356. border-radius: 12rpx;
  1357. max-width: 460rpx;
  1358. color: #505050;
  1359. position: relative;
  1360. .tankuangcss {
  1361. position: absolute;
  1362. top: -140rpx;
  1363. left: -120rpx;
  1364. width: 308rpx;
  1365. height: 130rpx;
  1366. background-color: #333333;
  1367. font-size: 24rpx;
  1368. color: #FFFFFF;
  1369. padding-top: 4rpx;
  1370. padding-bottom: 4rpx;
  1371. display: flex;
  1372. flex-wrap: wrap;
  1373. border-radius: 15rpx;
  1374. z-index: 1000;
  1375. }
  1376. }
  1377. .scroll-Y .text.active .content {
  1378. color: #2671E2 !important;
  1379. position: relative;
  1380. }
  1381. .scroll-Y .text.active[data-speaker="2"] .content,
  1382. .scroll-Y .text.active[data-speaker="4"] .content,
  1383. .scroll-Y .text.active[data-speaker="6"] .content {
  1384. color: #2671E2 !important;
  1385. position: relative;
  1386. }
  1387. .tab-box {
  1388. width: 100%;
  1389. display: flex;
  1390. justify-content: center;
  1391. align-items: center;
  1392. .yinpinshibie {
  1393. width: 156rpx;
  1394. height: 50rpx;
  1395. font-size: 36rpx;
  1396. font-weight: 400;
  1397. color: #333333;
  1398. text-align: center;
  1399. line-height: 50rpx;
  1400. letter-spacing: 2rpx;
  1401. margin-right: 188rpx;
  1402. &.active {
  1403. position: relative;
  1404. &::after {
  1405. position: absolute;
  1406. content: '';
  1407. width: 119rpx;
  1408. height: 8rpx;
  1409. background: #008EF2;
  1410. border-radius: 4rpx;
  1411. top: 50rpx;
  1412. right: 0;
  1413. left: 0;
  1414. margin: 0 auto;
  1415. }
  1416. }
  1417. }
  1418. .rate {
  1419. width: 156rpx;
  1420. height: 50rpx;
  1421. font-size: 36rpx;
  1422. font-weight: 400;
  1423. color: #333333;
  1424. line-height: 50rpx;
  1425. letter-spacing: 2rpx;
  1426. text-align: center;
  1427. &.active {
  1428. position: relative;
  1429. &::after {
  1430. position: absolute;
  1431. content: '';
  1432. width: 119rpx;
  1433. height: 8rpx;
  1434. background: #008EF2;
  1435. border-radius: 4rpx;
  1436. top: 50rpx;
  1437. right: 0;
  1438. left: 0;
  1439. margin: 0 auto;
  1440. }
  1441. }
  1442. }
  1443. }
  1444. .eqLog {
  1445. width: 115upx;
  1446. height: 115upx;
  1447. background: rgba(211, 235, 253, 1);
  1448. box-shadow: 0 0 10rpx 7rpx #f1f1f1;;
  1449. border-radius: 50%;
  1450. position: fixed;
  1451. bottom: 300upx;
  1452. right: 8upx;
  1453. display: flex;
  1454. justify-content: center;
  1455. align-items: center;
  1456. color: #008EF2;
  1457. }
  1458. .backTop {
  1459. width: 112rpx;
  1460. height: 112rpx;
  1461. position: fixed;
  1462. bottom: 110rpx;
  1463. right: 40rpx;
  1464. image {
  1465. width: 112rpx;
  1466. height: 112rpx;
  1467. }
  1468. }
  1469. // 评分
  1470. .rate-box {
  1471. padding: 10rpx 20rpx;
  1472. .date {
  1473. width: 300rpx;
  1474. height: 33rpx;
  1475. font-size: 24rpx;
  1476. font-weight: 400;
  1477. color: #333333;
  1478. line-height: 33rpx;
  1479. letter-spacing: 1rpx;
  1480. margin-bottom: 8rpx;
  1481. }
  1482. .title {
  1483. width: 100%;
  1484. height: 42rpx;
  1485. font-size: 30rpx;
  1486. font-weight: 500;
  1487. color: #333333;
  1488. line-height: 42rpx;
  1489. letter-spacing: 2rpx;
  1490. margin-bottom: 20rpx;
  1491. }
  1492. .level1 {
  1493. display: flex;
  1494. align-items: center;
  1495. .level-name {
  1496. width: 104rpx;
  1497. height: 33rpx;
  1498. font-size: 24rpx;
  1499. font-weight: 500;
  1500. color: #333333;
  1501. line-height: 33rpx;
  1502. letter-spacing: 1rpx;
  1503. margin-right: 10rpx;
  1504. }
  1505. .level-progress {
  1506. flex: 1;
  1507. border-radius: 11rpx;
  1508. height: 21rpx;
  1509. background-color: #BEE4FF;
  1510. position: relative;
  1511. .color {
  1512. width: 0;
  1513. position: absolute;
  1514. top: 0;
  1515. left: 0;
  1516. height: 21rpx;
  1517. border-radius: 11rpx 0 0 11rpx;
  1518. background-color: #008EF2;
  1519. }
  1520. }
  1521. .level-rate {
  1522. width: 65rpx;
  1523. height: 33rpx;
  1524. font-size: 24rpx;
  1525. font-weight: 500;
  1526. color: #333333;
  1527. line-height: 33rpx;
  1528. letter-spacing: 1rpx;
  1529. margin: 0 20rpx 0 15rpx;
  1530. }
  1531. .arrow {
  1532. width: 37rpx;
  1533. height: 21rpx;
  1534. padding: 5rpx 20rpx;
  1535. }
  1536. .rotatearrow {
  1537. transform: rotate(270deg);
  1538. }
  1539. }
  1540. .level1-subbox {
  1541. display: flex;
  1542. margin-top: 20rpx;
  1543. flex-wrap: wrap;
  1544. .sub-name {
  1545. width: 50%;
  1546. display: flex;
  1547. margin-bottom: 18rpx;
  1548. .subitem-name {
  1549. width: 104rpx;
  1550. height: 33rpx;
  1551. font-size: 24rpx;
  1552. font-weight: 400;
  1553. color: #999999;
  1554. line-height: 33rpx;
  1555. letter-spacing: 1rpx;
  1556. margin-right: 12rpx;
  1557. }
  1558. .checkimg {
  1559. width: 27rpx;
  1560. height: 27rpx;
  1561. }
  1562. }
  1563. }
  1564. }
  1565. .dialog-block {
  1566. margin: 20rpx 0;
  1567. border-bottom: 1rpx solid #ccc;
  1568. padding-bottom: 30rpx;
  1569. .fileName {
  1570. text-align: center;
  1571. margin: 10rpx auto;
  1572. width: 115rpx;
  1573. height: 42rpx;
  1574. line-height: 42rpx;
  1575. background: #EFEFEF;
  1576. border-radius: 4rpx;
  1577. font-size: 20rpx;
  1578. font-weight: 400;
  1579. color: #333333;
  1580. }
  1581. }
  1582. /deep/ .u-model-title {
  1583. padding: 34rpx 0 16rpx !important;
  1584. }
  1585. </style>