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.
 
 
 

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