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.
 
 
 

1531 lines
39 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+'&itemId='+that.buildingID,
  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. let parames={
  637. "itemId":this.buildingID
  638. }
  639. this.$u.post("/addtodigest/findAllYi", parames).then(data => {
  640. this.biaoqianlist = data
  641. this.biaoqianlist.unshift({
  642. name: "逼单话术",
  643. id: 0
  644. })
  645. })
  646. // util.getRequestPromise(config.service.findAllYi, {"itemId":this.buildingID}, false).then(data => {
  647. // this.biaoqianlist = data
  648. // this.biaoqianlist.unshift({
  649. // name: "逼单话术",
  650. // id: 0
  651. // })
  652. // });
  653. },
  654. // 取消加精
  655. Cancelout2() {
  656. this.isshow3 = false;
  657. this.dialogList.forEach(res => {
  658. res.message.forEach(asd => {
  659. asd.isshow = false;
  660. })
  661. })
  662. },
  663. // 确认加精
  664. Confirmtheexit2() {
  665. if (this.biaoqianid) {
  666. this.biaoqianid = this.biaoqianid
  667. } else {
  668. this.biaoqianid = 0
  669. }
  670. this.isshow3 = false;
  671. this.dialogList.forEach(res => {
  672. res.message.forEach(asd => {
  673. asd.isshow = false;
  674. })
  675. })
  676. let objdata = {
  677. "itemId":this.buildingID,
  678. "carId": this.customerId, //客户id
  679. "startTime": this.changanitem.bg, //开始时间
  680. "startFile": this.duihuawenjianid, //对话所在录音文件id
  681. "endTime": this.changanitem.ed, //结束时间
  682. "marketingId": this.biaoqianid, //对应一级父id
  683. "jjTransfer": this.changanitem.onebest, //选中对话
  684. "status": 1
  685. }
  686. uni.request({
  687. url: config.service.addATD,
  688. method: "POST",
  689. header: {
  690. 'content-type': 'application/json',
  691. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  692. },
  693. data: objdata,
  694. success: (data) => {
  695. if (data.data.code == 10000) {
  696. uni.showToast({
  697. title: '加精成功',
  698. duration: 2000
  699. });
  700. } else {
  701. uni.showToast({
  702. title: data.data.message,
  703. duration: 2000
  704. });
  705. }
  706. }
  707. })
  708. },
  709. //长按对话
  710. changanxiaoguo(item, index, i) {
  711. this.messagelisy = [];
  712. this.changanitem = {};
  713. this.duihuawenjianid = "",
  714. this.dialogList.forEach(res => {
  715. res.message.forEach(asd => {
  716. asd.isshow = false;
  717. })
  718. })
  719. this.changanitem = item;
  720. this.duihuawenjianid = this.luyinList[this.csdFileindex].id;
  721. this.dialogList[i].message[index].isshow = !this.dialogList[i].message[index].isshow
  722. this.thewrongword = item.onebest;
  723. this.messagelisy = this.dialogList[i].message
  724. console.log(this.dialogList[i], "长按触发")
  725. },
  726. //回到顶部
  727. gotoTop() {
  728. this.scrollId = null;
  729. this.$nextTick(() => {
  730. this.scrollId = "top";
  731. })
  732. },
  733. //切换tab
  734. changeTab(type) {
  735. if (type == 0) {
  736. this.tab = 0
  737. } else {
  738. this.tab = 1;
  739. this.getRatelist();
  740. }
  741. },
  742. //录音列表显示隐藏
  743. showFile() {
  744. console.log("111111111111111111111111")
  745. this.isshowFile = !this.isshowFile;
  746. console.log("222222222222222222222")
  747. },
  748. //评分上下显隐
  749. changeshow(item, type) {
  750. if (type == 1) {
  751. item.show = true
  752. } else {
  753. item.show = false
  754. }
  755. },
  756. // 获取评分
  757. getRatelist() {
  758. if (this.ratelist.length == 0) {
  759. uni.showLoading({
  760. title: '加载中'
  761. });
  762. this.$u.get("/customer/findzkMByCusId", {
  763. cusId: this.customerId
  764. }).then(res => {
  765. if (res.length) {
  766. let level1 = []
  767. let level2rate = 0
  768. res.forEach(item => {
  769. if (item.pid == 0) {
  770. level1.push({
  771. id: item.marketingId,
  772. rate: item.fraction,
  773. name: item.name,
  774. sort: item.sort,
  775. show: false,
  776. ratepercent: 0,
  777. children: []
  778. })
  779. } else {
  780. if (item.selected == 0) {
  781. level2rate += item.fraction
  782. }
  783. }
  784. })
  785. this.totalRate = level2rate
  786. res.forEach(subitem => {
  787. let subitempid = subitem.pid
  788. level1.forEach(item => {
  789. if (subitempid == item.id) {
  790. if (subitem.selected == 0) {
  791. item.ratepercent += subitem.fraction
  792. }
  793. item.children.push({
  794. id: subitem.id,
  795. rate: subitem.fraction,
  796. selected: subitem.selected,
  797. name: subitem.name
  798. })
  799. }
  800. })
  801. })
  802. level1[0].show = true;
  803. this.ratelist = level1
  804. }
  805. setTimeout(function() {
  806. uni.hideLoading();
  807. }, 1000);
  808. })
  809. }
  810. },
  811. // 获取转义后的对话结果
  812. getCorpusAnalysis(info) {
  813. this.dialogList = [];
  814. uni.showLoading({
  815. title: '加载中'
  816. });
  817. uni.request({
  818. url: config.service.getCorpusAnalysis + '?corpusId=' + this.luyinList[this.csdFileindex].id+"&customerId="+this.customerId, //仅为示例,并非真实接口地址。
  819. method: "GET",
  820. header: {
  821. 'content-type': 'application/json',
  822. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  823. },
  824. success: (data) => {
  825. if (data.data.code == 10000) {
  826. if (data.data.data.audioContent.length == 0) {
  827. setTimeout(function() {
  828. uni.hideLoading();
  829. }, 2000);
  830. } else {
  831. const jsonInfo = JSON.parse(data.data.data.audioContent);
  832. console.log(jsonInfo)
  833. if(this.luyinList[this.csdFileindex].recordDuration>360){
  834. //拿到总条数
  835. var stusnum=jsonInfo.length;
  836. this.dialogList.push({
  837. message: jsonInfo.splice(0,80),
  838. backindex:this.csdFileindex
  839. });
  840. var auth_timetimer = setInterval(() => {
  841. stusnum-=100;
  842. console.log("还剩下"+stusnum)
  843. if (stusnum <= 0) {
  844. console.log("停止")
  845. clearInterval(auth_timetimer);
  846. }else{
  847. console.log("添加")
  848. var newlistwang=[];
  849. newlistwang=jsonInfo.splice(0,100);
  850. console.log("新数组",newlistwang)
  851. newlistwang.forEach(item=>{
  852. this.dialogList[0].message.push(item)
  853. })
  854. }
  855. }, 1000);
  856. }else{
  857. this.dialogList.push({
  858. message: jsonInfo,
  859. backindex:this.csdFileindex
  860. });
  861. }
  862. this.dialogList.forEach((asd, idx) => {
  863. asd.message.forEach((qwe, inde) => {
  864. qwe.isshow = false;
  865. })
  866. })
  867. setTimeout(function() {
  868. uni.hideLoading();
  869. }, 2000);
  870. }
  871. } else {
  872. uni.hideLoading();
  873. uni.showModal({
  874. title: '提示',
  875. content: '请求数据失败,请重新尝试',
  876. showCancel: false
  877. });
  878. }
  879. },
  880. fail(error) {
  881. uni.hideLoading();
  882. uni.showModal({
  883. title: '提示',
  884. content: '网络异常,请重新尝试',
  885. showCancel: false
  886. });
  887. return false;
  888. }
  889. });
  890. },
  891. getTime(time) {
  892. return util.formatSecond(time)
  893. },
  894. // 录音暂停播放
  895. changePlayState() {
  896. if (this.audioPlay == false) {
  897. this.innerAudioContext.play();
  898. } else {
  899. this.innerAudioContext.pause()
  900. }
  901. },
  902. //音频前进回退
  903. sliderChangeComplate(e) {
  904. const currTimeStr = this.formatTime(e.detail.value)
  905. this.currentTimeStr = currTimeStr
  906. this.innerAudioContext.seek(e.detail.value);
  907. this.innerAudioContext.play();
  908. },
  909. //长按点击播放
  910. clickbofang(dialog,item) {
  911. this.innerAudioContext.pause()
  912. this.dialogList.forEach(res => {
  913. res.message.forEach(asd => {
  914. asd.isshow = false;
  915. })
  916. })
  917. this.$forceUpdate()
  918. if(dialog==this.csdFileindex){
  919. let time = parseInt(item.bg / 1000)
  920. const currTimeStr = this.formatTime(time)
  921. this.currentTimeStr = currTimeStr
  922. this.innerAudioContext.seek(time);
  923. this.innerAudioContext.play();
  924. return
  925. }else{
  926. let time = parseInt(item.bg / 1000)
  927. this.innerAudioContext.destroy()
  928. this.csdFileindex = dialog;
  929. this.recordPath = this.luyinList[dialog].recordPath;
  930. this.sliderMax = this.getTime(this.luyinList[dialog].recordDuration);
  931. this.timeStr = this.getTime(this.luyinList[dialog].recordDuration);
  932. this.date = this.luyinList[dialog].receptionTime;
  933. this.creatAudio()
  934. this.getCorpusAnalysis()
  935. const currTimeStr = this.formatTime(time)
  936. this.currentTimeStr = currTimeStr
  937. this.innerAudioContext.seek(time);
  938. this.innerAudioContext.play();
  939. }
  940. },
  941. // 文件切换播放
  942. filechange(item, i) {
  943. this.num=i;//下拉起始位置
  944. this.Bnum=i;
  945. this.innerAudioContext.destroy();
  946. this.csdFileindex = i;
  947. this.recordPath = item.recordPath;
  948. this.sliderMax = this.getTime(item.recordDuration);
  949. this.timeStr = this.getTime(item.recordDuration);
  950. this.date = item.receptionTime;
  951. this.isshowFile = false;
  952. this.creatAudio()
  953. this.getCorpusAnalysis()
  954. },
  955. //录音实例
  956. creatAudio() {
  957. this.innerAudioContext = uni.createInnerAudioContext();
  958. this.innerAudioContext.autoplay = true;
  959. this.innerAudioContext.src = this.recordPath;
  960. this.innerAudioContext.title = '音频';
  961. this.onPlay()
  962. this.onPause()
  963. this.onCanplay()
  964. this.onEnded()
  965. this.onSeeking()
  966. this.onSeeked()
  967. this.TimeUpdate()
  968. },
  969. // 自动播放下一个文件
  970. qeihuanwenjian() {
  971. let index = this.csdFileindex + 1;
  972. if (index < this.luyinList.length) {
  973. this.csdFileindex = index;
  974. this.getCorpusAnalysis()
  975. let item = this.luyinList[this.csdFileindex];
  976. let i = this.csdFileindex;
  977. this.filechange(item, i)
  978. }
  979. },
  980. formatTime(num) {
  981. //格式化时间格式
  982. num = num.toFixed(0);
  983. let second = num % 60;
  984. if (second < 10) second = '0' + second;
  985. let min = Math.floor(num / 60);
  986. if (min < 10) min = '0' + min;
  987. return min + ":" + second;
  988. },
  989. changeEditing() {
  990. this.dialogList.forEach(res => {
  991. res.message.forEach(asd => {
  992. asd.isshow = false;
  993. })
  994. })
  995. }
  996. },
  997. }
  998. </script>
  999. <style lang="scss" scoped>
  1000. .biaoqiantom {
  1001. background-color: #008EF2;
  1002. color: #FFFFFF;
  1003. border: none;
  1004. }
  1005. // 表单
  1006. .tian-view {
  1007. width: 570upx;
  1008. background-color: #FFFFFF;
  1009. border-bottom: 1px solid #ededee;
  1010. display: flex;
  1011. min-height: 96rpx;
  1012. .tian-view-t1 {
  1013. width: 20rpx;
  1014. font-size: 34rpx;
  1015. height: 34rpx;
  1016. line-height: 110rpx;
  1017. letter-spacing: 0px;
  1018. color: red;
  1019. }
  1020. .tian-view-t2 {
  1021. width: 30%;
  1022. min-height: 96rpx;
  1023. line-height: 96rpx;
  1024. font-size: 34rpx;
  1025. color: #333;
  1026. }
  1027. .tian-view-t3 {
  1028. width: 61%;
  1029. padding-top: 31rpx;
  1030. padding-bottom: 31rpx;
  1031. display: flex;
  1032. .tian-input {
  1033. width: 98%;
  1034. font-size: 34rpx;
  1035. border: none;
  1036. }
  1037. }
  1038. }
  1039. .zhezhoa {
  1040. position: fixed;
  1041. top: 0;
  1042. left: 0;
  1043. z-index: 999;
  1044. width: 100%;
  1045. height: 100vh;
  1046. opacity: 0.5;
  1047. background-color: #666666;
  1048. }
  1049. .bounced {
  1050. width: 570upx;
  1051. background: #FFFFFF;
  1052. z-index: 1000;
  1053. border-radius: 10upx;
  1054. position: fixed;
  1055. left: 50%;
  1056. top: 50%;
  1057. transform: translate(-50%, -50%);
  1058. /* 50%为自身尺寸的一半 */
  1059. .jiajinghuatit {
  1060. width: 100%;
  1061. height: 68rpx;
  1062. font-size: 30rpx;
  1063. text-align: center;
  1064. line-height: 68rpx;
  1065. }
  1066. .jiajinghuaview {
  1067. padding: 18rpx 18rpx 18rpx 18rpx;
  1068. display: flex;
  1069. flex-wrap: wrap;
  1070. .jiajinghuaview1 {
  1071. padding: 8rpx 8rpx 8rpx 8rpx;
  1072. font-size: 26rpx;
  1073. border-radius: 12rpx;
  1074. border: 1px solid #979797;
  1075. margin-left: 8rpx;
  1076. }
  1077. .jighuaview2 {
  1078. padding: 8rpx 18rpx 8rpx 18rpx;
  1079. font-size: 26rpx;
  1080. border-radius: 12rpx;
  1081. border: 1px solid #979797;
  1082. margin-left: 20rpx;
  1083. margin-top: 10rpx;
  1084. display: flex;
  1085. .view1-text {
  1086. text-align: center;
  1087. }
  1088. .view1-img {
  1089. width: 50rpx;
  1090. }
  1091. }
  1092. }
  1093. .bounced3 {
  1094. height: 100upx;
  1095. width: 100%;
  1096. margin-top: 40upx;
  1097. border-top: 1px solid #dddddd;
  1098. display: flex;
  1099. }
  1100. .bounced3-1 {
  1101. width: 50%;
  1102. height: 100%;
  1103. text-align: center;
  1104. line-height: 100upx;
  1105. border-right: 1px solid #dddddd;
  1106. font-size: 36upx;
  1107. color: #999999;
  1108. }
  1109. .bounced3-2 {
  1110. width: 50%;
  1111. height: 100%;
  1112. text-align: center;
  1113. line-height: 100upx;
  1114. font-size: 36upx;
  1115. color: #108ee9;
  1116. }
  1117. }
  1118. .translation {
  1119. padding-left: 30rpx;
  1120. padding-right: 30rpx;
  1121. background: #FFFFFF;
  1122. display: flex;
  1123. flex-direction: column;
  1124. height: 100vh;
  1125. }
  1126. .translation .top {
  1127. margin: 0 -30upx;
  1128. padding: 0 30upx;
  1129. background: #ffffff;
  1130. border-bottom: 1rpx solid #F2F2F2;
  1131. padding-bottom: 10rpx;
  1132. }
  1133. .translation .top .title {
  1134. display: flex;
  1135. justify-content: space-between;
  1136. .hash {
  1137. color: rgba(21, 144, 233, 1);
  1138. font-size: 24upx;
  1139. }
  1140. }
  1141. .call_record_time {
  1142. height: 44rpx;
  1143. font-size: 28rpx;
  1144. font-weight: 600;
  1145. color: #008EF2;
  1146. line-height: 44rpx;
  1147. }
  1148. .call_record_time_one {
  1149. height: 48rpx;
  1150. font-size: 24rpx;
  1151. font-weight: 500;
  1152. color: #70798d;
  1153. line-height: 48rpx;
  1154. display: flex;
  1155. justify-content: space-between;
  1156. position: relative;
  1157. .diangweitupian {
  1158. width: 46rpx;
  1159. height: 46rpx;
  1160. position: absolute;
  1161. top: 0rpx;
  1162. right: 75rpx;
  1163. }
  1164. .file-change {
  1165. position: absolute;
  1166. top: 50rpx;
  1167. right: 0rpx;
  1168. width: 184rpx;
  1169. background: #FFFFFF;
  1170. box-shadow: 0rpx 0rpx 6rpx 2rpx rgba(230, 230, 230, 0.5);
  1171. border-radius: 4rpx;
  1172. z-index: 99;
  1173. height: auto;
  1174. max-height: 600rpx;
  1175. overflow: auto;
  1176. }
  1177. .file-item {
  1178. width: 184rpx;
  1179. height: 60rpx;
  1180. line-height: 60rpx;
  1181. text-align: center;
  1182. font-size: 30rpx;
  1183. font-weight: 400;
  1184. color: #333333;
  1185. border-bottom: 1rpx solid #E2E2E2;
  1186. }
  1187. .file-item:last-child {
  1188. border: 0
  1189. }
  1190. .fileactive {
  1191. color: #008EF2
  1192. }
  1193. }
  1194. .audio-container {
  1195. width: 100%;
  1196. display: flex;
  1197. justify-content: space-between;
  1198. align-items: center;
  1199. .audio-head {
  1200. width: 60rpx;
  1201. height: 60rpx;
  1202. flex-shrink: 0;
  1203. }
  1204. .audio-head .image {
  1205. width: 100%;
  1206. height: 100%;
  1207. }
  1208. .audio-slider {
  1209. width: 96%;
  1210. position: relative;
  1211. padding: 2px 0rpx 0px 20px;
  1212. display: flex;
  1213. justify-content: space-between;
  1214. align-items: center;
  1215. }
  1216. .audio-slider .slider {
  1217. width: 100%;
  1218. padding: 0px 15rpx;
  1219. box-sizing: border-box;
  1220. }
  1221. .audio-time {
  1222. width: 110rpx;
  1223. text-align: right;
  1224. font-size: 24rpx;
  1225. line-height: 28rpx;
  1226. color: #70798D;
  1227. display: flex;
  1228. justify-content: space-between;
  1229. }
  1230. .audio-play {
  1231. width: 40rpx;
  1232. height: 40rpx;
  1233. flex-shrink: 0;
  1234. }
  1235. .audio-play .image {
  1236. width: 100%;
  1237. height: 100%;
  1238. }
  1239. }
  1240. .scroll-Y {
  1241. font-size: 36upx;
  1242. color: #999999;
  1243. background: #FFFFFF;
  1244. margin-top: 30upx;
  1245. flex: 1;
  1246. overflow-y: scroll;
  1247. width: 100%;
  1248. }
  1249. .scroll-Y .text {
  1250. margin: 50upx 30upx;
  1251. line-height: 80upx;
  1252. display: flex;
  1253. align-items: center;
  1254. }
  1255. .scroll-Y .text[data-speaker="2"],
  1256. .scroll-Y .text[data-speaker="4"],
  1257. .scroll-Y .text[data-speaker="6"] {
  1258. flex-direction: row-reverse;
  1259. text-align: right;
  1260. .content {
  1261. margin-left: 0;
  1262. margin-right: 30upx;
  1263. background: #F6F6F6;
  1264. color: #999999;
  1265. }
  1266. }
  1267. .scroll-Y .text .avatar {
  1268. width: 64upx;
  1269. height: 64upx;
  1270. line-height: 64upx;
  1271. text-align: center;
  1272. // border: 1rpx solid red;
  1273. font-size: 36rpx;
  1274. border-radius: 50%;
  1275. background: #F2F2F2;
  1276. color: #008EF2;
  1277. // display: flex;
  1278. // justify-content: center;
  1279. // align-items: center;
  1280. // image {
  1281. // width: 40upx;
  1282. // }
  1283. }
  1284. .scroll-Y .text .content {
  1285. margin-left: 30upx;
  1286. line-height: 60rpx;
  1287. text-align: left;
  1288. padding: 0 5px;
  1289. background: #2BC805;
  1290. border-radius: 8upx;
  1291. max-width: 442rpx;
  1292. color: #FFFFFF;
  1293. position: relative;
  1294. .tankuangcss {
  1295. position: absolute;
  1296. top: -140rpx;
  1297. left: -120rpx;
  1298. width: 308rpx;
  1299. height: 130rpx;
  1300. background-color: #333333;
  1301. font-size: 24rpx;
  1302. color: #FFFFFF;
  1303. padding-top: 4rpx;
  1304. padding-bottom: 4rpx;
  1305. display: flex;
  1306. flex-wrap: wrap;
  1307. border-radius: 15rpx;
  1308. z-index: 1000;
  1309. }
  1310. }
  1311. .scroll-Y .text.active .content {
  1312. color: #38FFF1;
  1313. position: relative;
  1314. }
  1315. .scroll-Y .text.active[data-speaker="2"] .content,
  1316. .scroll-Y .text.active[data-speaker="4"] .content,
  1317. .scroll-Y .text.active[data-speaker="6"] .content {
  1318. color: #FF7538;
  1319. position: relative;
  1320. }
  1321. .tab-box {
  1322. width: 100%;
  1323. display: flex;
  1324. justify-content: center;
  1325. align-items: center;
  1326. .yinpinshibie {
  1327. width: 156rpx;
  1328. height: 50rpx;
  1329. font-size: 36rpx;
  1330. font-weight: 400;
  1331. color: #333333;
  1332. text-align: center;
  1333. line-height: 50rpx;
  1334. letter-spacing: 2rpx;
  1335. margin-right: 188rpx;
  1336. &.active {
  1337. position: relative;
  1338. &::after {
  1339. position: absolute;
  1340. content: '';
  1341. width: 119rpx;
  1342. height: 8rpx;
  1343. background: #008EF2;
  1344. border-radius: 4rpx;
  1345. top: 50rpx;
  1346. right: 0;
  1347. left: 0;
  1348. margin: 0 auto;
  1349. }
  1350. }
  1351. }
  1352. .rate {
  1353. width: 156rpx;
  1354. height: 50rpx;
  1355. font-size: 36rpx;
  1356. font-weight: 400;
  1357. color: #333333;
  1358. line-height: 50rpx;
  1359. letter-spacing: 2rpx;
  1360. text-align: center;
  1361. &.active {
  1362. position: relative;
  1363. &::after {
  1364. position: absolute;
  1365. content: '';
  1366. width: 119rpx;
  1367. height: 8rpx;
  1368. background: #008EF2;
  1369. border-radius: 4rpx;
  1370. top: 50rpx;
  1371. right: 0;
  1372. left: 0;
  1373. margin: 0 auto;
  1374. }
  1375. }
  1376. }
  1377. }
  1378. .backTop {
  1379. width: 60upx;
  1380. height: 60upx;
  1381. background: rgba(211, 235, 253, 1);
  1382. box-shadow: 0upx 0upx 2upx 4upx rgba(38, 161, 255, 0.04);
  1383. border-radius: 50%;
  1384. position: fixed;
  1385. bottom: 200upx;
  1386. right: 8upx;
  1387. display: flex;
  1388. justify-content: center;
  1389. align-items: center;
  1390. image {
  1391. width: 26upx;
  1392. height: 34upx;
  1393. }
  1394. }
  1395. // 评分
  1396. .rate-box {
  1397. padding: 10rpx 20rpx;
  1398. .date {
  1399. width: 300rpx;
  1400. height: 33rpx;
  1401. font-size: 24rpx;
  1402. font-weight: 400;
  1403. color: #333333;
  1404. line-height: 33rpx;
  1405. letter-spacing: 1rpx;
  1406. margin-bottom: 8rpx;
  1407. }
  1408. .title {
  1409. width: 100%;
  1410. height: 42rpx;
  1411. font-size: 30rpx;
  1412. font-weight: 500;
  1413. color: #333333;
  1414. line-height: 42rpx;
  1415. letter-spacing: 2rpx;
  1416. margin-bottom: 20rpx;
  1417. }
  1418. .level1 {
  1419. display: flex;
  1420. align-items: center;
  1421. .level-name {
  1422. width: 104rpx;
  1423. height: 33rpx;
  1424. font-size: 24rpx;
  1425. font-weight: 500;
  1426. color: #333333;
  1427. line-height: 33rpx;
  1428. letter-spacing: 1rpx;
  1429. margin-right: 10rpx;
  1430. }
  1431. .level-progress {
  1432. flex: 1;
  1433. border-radius: 11rpx;
  1434. height: 21rpx;
  1435. background-color: #BEE4FF;
  1436. position: relative;
  1437. .color {
  1438. width: 0;
  1439. position: absolute;
  1440. top: 0;
  1441. left: 0;
  1442. height: 21rpx;
  1443. border-radius: 11rpx 0 0 11rpx;
  1444. background-color: #008EF2;
  1445. }
  1446. }
  1447. .level-rate {
  1448. width: 65rpx;
  1449. height: 33rpx;
  1450. font-size: 24rpx;
  1451. font-weight: 500;
  1452. color: #333333;
  1453. line-height: 33rpx;
  1454. letter-spacing: 1rpx;
  1455. margin: 0 20rpx 0 15rpx;
  1456. }
  1457. .arrow {
  1458. width: 37rpx;
  1459. height: 21rpx;
  1460. padding: 5rpx 20rpx;
  1461. }
  1462. .rotatearrow {
  1463. transform: rotate(270deg);
  1464. }
  1465. }
  1466. .level1-subbox {
  1467. display: flex;
  1468. margin-top: 20rpx;
  1469. flex-wrap: wrap;
  1470. .sub-name {
  1471. width: 50%;
  1472. display: flex;
  1473. margin-bottom: 18rpx;
  1474. .subitem-name {
  1475. width: 104rpx;
  1476. height: 33rpx;
  1477. font-size: 24rpx;
  1478. font-weight: 400;
  1479. color: #999999;
  1480. line-height: 33rpx;
  1481. letter-spacing: 1rpx;
  1482. margin-right: 12rpx;
  1483. }
  1484. .checkimg {
  1485. width: 27rpx;
  1486. height: 27rpx;
  1487. }
  1488. }
  1489. }
  1490. }
  1491. .dialog-block {
  1492. margin: 20rpx 0;
  1493. border-bottom: 1px solid #ccc;
  1494. .fileName {
  1495. text-align: center;
  1496. margin: 10rpx auto;
  1497. width: 115rpx;
  1498. height: 42rpx;
  1499. line-height: 42rpx;
  1500. background: #EFEFEF;
  1501. border-radius: 4rpx;
  1502. font-size: 20rpx;
  1503. font-weight: 400;
  1504. color: #333333;
  1505. }
  1506. }
  1507. </style>