Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

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