Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

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