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.
 
 
 

1699 lines
43 KiB

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