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.
 
 
 

1595 lines
40 KiB

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