Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

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