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.
 
 
 

1724 lines
44 KiB

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