Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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