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.
 
 
 

1517 lines
38 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="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>