You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1711 lines
43 KiB

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