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.
 
 
 

1717 linhas
43 KiB

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