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.
 
 
 

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