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.
 
 
 
 

1738 rivejä
40 KiB

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