AI销管
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.
 
 
 
 

1700 lines
43 KiB

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