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.
 
 
 
 

1702 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. uni.showLoading({
  546. title: '加载中'
  547. });
  548. setTimeout(function() {
  549. uni.hideLoading();
  550. }, 2000);
  551. uni.request({
  552. url: config.service.getCorpusAnalysis + '?corpusId=' + this.luyinList[this.num].id+"&customerId="+this.customerId, //仅为示例,并非真实接口地址。
  553. method: "GET",
  554. header: {
  555. 'content-type': 'application/json',
  556. 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
  557. },
  558. success: (data) => {
  559. if (data.data.code == 10000) {
  560. if (data.data.data.audioContent.length == 0) {
  561. setTimeout(function() {
  562. uni.hideLoading();
  563. }, 2000);
  564. } else {
  565. const jsonInfo = JSON.parse(data.data.data.audioContent);
  566. this.dialogList.push({
  567. message: jsonInfo,
  568. backindex:this.num
  569. });
  570. this.dialogList.forEach((asd, idx) => {
  571. asd.message.forEach((qwe, inde) => {
  572. qwe.isshow = false;
  573. })
  574. })
  575. }
  576. }
  577. },
  578. })
  579. }
  580. },
  581. //上一页
  582. rolltoupper() {
  583. if (this.csdFileindex == 0) {
  584. uni.showToast({
  585. title: '到头了',
  586. duration: 2000
  587. });
  588. return
  589. } else if(this.Bnum == 0){
  590. uni.showToast({
  591. title: '到头了',
  592. duration: 2000
  593. });
  594. return
  595. }else {
  596. this.Bnum=this.Bnum-1;
  597. uni.showLoading({
  598. title: '加载中'
  599. });
  600. setTimeout(function() {
  601. uni.hideLoading();
  602. }, 2000);
  603. uni.request({
  604. url: config.service.getCorpusAnalysis + '?corpusId=' + this.luyinList[this.Bnum].id+"&customerId="+this.customerId, //仅为示例,并非真实接口地址。
  605. method: "GET",
  606. header: {
  607. 'content-type': 'application/json',
  608. 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
  609. },
  610. success: (data) => {
  611. if (data.data.code == 10000) {
  612. if (data.data.data.audioContent.length == 0) {
  613. setTimeout(function() {
  614. uni.hideLoading();
  615. }, 2000);
  616. } else {
  617. const jsonInfo = JSON.parse(data.data.data.audioContent);
  618. this.dialogList.unshift({
  619. message: jsonInfo
  620. });
  621. this.dialogList.forEach((asd, idx) => {
  622. asd.message.forEach((qwe, inde) => {
  623. qwe.isshow = false;
  624. })
  625. })
  626. }
  627. }
  628. },
  629. })
  630. }
  631. },
  632. // 取消全部加精
  633. notappick() {
  634. var that = this;
  635. uni.showModal({
  636. title: '提示',
  637. content: '确认取消加精?',
  638. success: function(res) {
  639. if (res.confirm) {
  640. console.log('用户点击确定');
  641. uni.request({
  642. url: config.service.delATD + "?carId=" + that.customerId,
  643. method: "GET",
  644. header: {
  645. 'content-type': 'application/json',
  646. 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').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. 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
  689. },
  690. data: objdata,
  691. success: (data) => {
  692. if (data.data.code == 10000) {
  693. that.status = 0
  694. uni.showToast({
  695. title: '加精成功',
  696. duration: 2000
  697. });
  698. } else {
  699. uni.showToast({
  700. title: data.data.message,
  701. duration: 2000
  702. });
  703. }
  704. }
  705. })
  706. } else if (res.cancel) {
  707. console.log('用户点击取消');
  708. }
  709. }
  710. });
  711. },
  712. //标签选择
  713. tapbiaoqianclisck(index) {
  714. this.biaoqianindex = index;
  715. this.biaoqianid = this.biaoqianlist[index].id
  716. },
  717. //复制
  718. clickcopy() {
  719. var that = this;
  720. uni.setClipboardData({
  721. data: that.thewrongword,
  722. success: function() {
  723. that.dialogList.forEach(res => {
  724. res.message.forEach(asd => {
  725. asd.isshow = false;
  726. })
  727. })
  728. that.$forceUpdate();
  729. console.log('success');
  730. }
  731. });
  732. },
  733. //确认加入常错词
  734. Confirmtheexit() {
  735. if (this.thewrongword) {
  736. if (this.reswrongword) {
  737. let parames = {
  738. customerId:this.customerId,
  739. cupid: this.luyinList[this.csdFileindex].id,
  740. wrongWord: this.thewrongword, //错误词
  741. correctWord: this.reswrongword, //正确词
  742. translateHtmlContent: this.messagelisy,
  743. }
  744. this.isshow2 = false;
  745. let sas=this.textItself.replace(this.thewrongword,this.reswrongword)
  746. this.dialogList[this.argtextindex1].message[this.argtextindex2].onebest=sas
  747. this.dialogList.forEach(res => {
  748. res.message.forEach(asd => {
  749. asd.isshow = false;
  750. })
  751. })
  752. this.$u.post("/corpus/addCorrectWord", parames).then(data => {
  753. this.thewrongword = "";
  754. this.reswrongword = "";
  755. })
  756. } else {
  757. uni.showToast({
  758. title: '正确值不能为空',
  759. duration: 2000
  760. });
  761. return
  762. }
  763. } else {
  764. uni.showToast({
  765. title: '错误词不能为空',
  766. duration: 2000
  767. });
  768. return
  769. }
  770. },
  771. //取消加入常错词
  772. Cancelout() {
  773. this.isshow2 = false;
  774. this.dialogList.forEach(res => {
  775. res.message.forEach(asd => {
  776. asd.isshow = false;
  777. })
  778. })
  779. },
  780. //加入长错词
  781. Oftenthewrongword() {
  782. this.reswrongword = "";
  783. this.isshow2 = true;
  784. },
  785. //加精华
  786. Addtheessence() {
  787. this.isshow3 = true;
  788. this.biaoqianlist = []
  789. util.getRequestPromise(config.service.findAllYi, {}, false).then(data => {
  790. this.biaoqianlist = data
  791. this.biaoqianlist.unshift({
  792. name: "逼单话术",
  793. id: 0
  794. })
  795. });
  796. },
  797. // 取消加精
  798. Cancelout2() {
  799. this.isshow3 = false;
  800. this.dialogList.forEach(res => {
  801. res.message.forEach(asd => {
  802. asd.isshow = false;
  803. })
  804. })
  805. },
  806. // 确认加精
  807. Confirmtheexit2() {
  808. if (this.biaoqianid) {
  809. this.biaoqianid = this.biaoqianid
  810. } else {
  811. this.biaoqianid = 0
  812. }
  813. this.isshow3 = false;
  814. this.dialogList.forEach(res => {
  815. res.message.forEach(asd => {
  816. asd.isshow = false;
  817. })
  818. })
  819. let objdata = {
  820. "carId": this.customerId, //客户id
  821. "startTime": this.changanitem.bg, //开始时间
  822. "startFile": this.duihuawenjianid, //对话所在录音文件id
  823. "endTime": this.changanitem.ed, //结束时间
  824. "marketingId": this.biaoqianid, //对应一级父id
  825. "jjTransfer": this.changanitem.onebest, //选中对话
  826. "status": 1
  827. }
  828. uni.request({
  829. url: config.service.addATD,
  830. method: "POST",
  831. header: {
  832. 'content-type': 'application/json',
  833. 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
  834. },
  835. data: objdata,
  836. success: (data) => {
  837. if (data.data.code == 10000) {
  838. uni.showToast({
  839. title: '加精成功',
  840. duration: 2000
  841. });
  842. } else {
  843. uni.showToast({
  844. title: data.data.message,
  845. duration: 2000
  846. });
  847. }
  848. }
  849. })
  850. },
  851. //长按对话
  852. changanxiaoguo(item, index, i) {
  853. this.messagelisy = [];
  854. this.changanitem = {};
  855. this.duihuawenjianid = "",
  856. this.dialogList.forEach(res => {
  857. res.message.forEach(asd => {
  858. asd.isshow = false;
  859. })
  860. })
  861. this.changanitem = item;
  862. this.duihuawenjianid = this.luyinList[this.csdFileindex].id;
  863. this.dialogList[i].message[index].isshow = !this.dialogList[i].message[index].isshow;
  864. this.textItself=item.onebest;
  865. let onebest=item.onebest;
  866. this.thewrongword =onebest.replace(/<.*?>/ig,"");
  867. this.thewrongword = item.onebest;
  868. this.messagelisy = this.dialogList[i].message
  869. this.argtextindex1=i;
  870. this.argtextindex2=index;
  871. },
  872. //回到顶部
  873. gotoTop() {
  874. this.scrollId = null;
  875. this.$nextTick(() => {
  876. this.scrollId = "top";
  877. })
  878. },
  879. //切换tab
  880. changeTab(type) {
  881. if (type == 0) {
  882. this.tab = 0
  883. } else {
  884. this.tab = 1;
  885. this.getRatelist();
  886. }
  887. },
  888. //录音列表显示隐藏
  889. showFile() {
  890. console.log("111111111111111111111111")
  891. this.isshowFile = !this.isshowFile;
  892. console.log("222222222222222222222")
  893. },
  894. //评分上下显隐
  895. changeshow(item, type) {
  896. if (type == 1) {
  897. item.show = true
  898. } else {
  899. item.show = false
  900. }
  901. },
  902. // 获取评分
  903. getRatelist() {
  904. if (this.ratelist.length == 0) {
  905. uni.showLoading({
  906. title: '加载中'
  907. });
  908. this.$u.get("/customer/findzkMByCusId", {
  909. cusId: this.customerId
  910. }).then(res => {
  911. if (res.length) {
  912. let level1 = []
  913. let level2rate = 0
  914. res.forEach(item => {
  915. if (item.pid == 0) {
  916. level1.push({
  917. id: item.marketingId,
  918. rate: item.fraction,
  919. name: item.name,
  920. sort: item.sort,
  921. show: false,
  922. ratepercent: 0,
  923. children: []
  924. })
  925. } else {
  926. if (item.selected == 0) {
  927. level2rate += item.fraction
  928. }
  929. }
  930. })
  931. this.totalRate = level2rate
  932. res.forEach(subitem => {
  933. let subitempid = subitem.pid
  934. level1.forEach(item => {
  935. if (subitempid == item.id) {
  936. if (subitem.selected == 0) {
  937. item.ratepercent += subitem.fraction
  938. }
  939. item.children.push({
  940. id: subitem.id,
  941. rate: subitem.fraction,
  942. selected: subitem.selected,
  943. name: subitem.name
  944. })
  945. }
  946. })
  947. })
  948. level1[0].show = true;
  949. this.ratelist = level1
  950. }
  951. setTimeout(function() {
  952. uni.hideLoading();
  953. }, 1000);
  954. })
  955. }
  956. },
  957. // 获取转义后的对话结果
  958. getCorpusAnalysis(info) {
  959. this.dialogList = [];
  960. uni.showLoading({
  961. title: '加载中'
  962. });
  963. uni.request({
  964. url: config.service.getCorpusAnalysis + '?corpusId=' + this.luyinList[this.csdFileindex].id+"&customerId="+this.customerId, //仅为示例,并非真实接口地址。
  965. method: "GET",
  966. header: {
  967. 'content-type': 'application/json',
  968. 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
  969. },
  970. success: (data) => {
  971. if (data.data.code == 10000) {
  972. if (data.data.data.audioContent.length == 0) {
  973. setTimeout(function() {
  974. uni.hideLoading();
  975. }, 2000);
  976. } else {
  977. const jsonInfo = JSON.parse(data.data.data.audioContent);
  978. console.log(jsonInfo)
  979. if(this.luyinList[this.csdFileindex].recordDuration>360){
  980. //拿到总条数
  981. var stusnum=jsonInfo.length;
  982. this.dialogList.push({
  983. message: jsonInfo.splice(0,80),
  984. backindex:this.csdFileindex
  985. });
  986. var auth_timetimer = setInterval(() => {
  987. stusnum-=100;
  988. console.log("还剩下"+stusnum)
  989. if (stusnum <= 0) {
  990. console.log("停止")
  991. clearInterval(auth_timetimer);
  992. }else{
  993. console.log("添加")
  994. var newlistwang=[];
  995. newlistwang=jsonInfo.splice(0,100);
  996. console.log("新数组",newlistwang)
  997. newlistwang.forEach(item=>{
  998. this.dialogList[0].message.push(item)
  999. })
  1000. }
  1001. }, 1000);
  1002. }else{
  1003. this.dialogList.push({
  1004. message: jsonInfo,
  1005. backindex:this.csdFileindex
  1006. });
  1007. }
  1008. this.dialogList.forEach((asd, idx) => {
  1009. asd.message.forEach((qwe, inde) => {
  1010. qwe.isshow = false;
  1011. })
  1012. })
  1013. setTimeout(function() {
  1014. uni.hideLoading();
  1015. }, 2000);
  1016. }
  1017. } else {
  1018. uni.hideLoading();
  1019. uni.showModal({
  1020. title: '提示',
  1021. content: '请求数据失败,请重新尝试',
  1022. showCancel: false
  1023. });
  1024. }
  1025. },
  1026. fail(error) {
  1027. uni.hideLoading();
  1028. uni.showModal({
  1029. title: '提示',
  1030. content: '网络异常,请重新尝试',
  1031. showCancel: false
  1032. });
  1033. return false;
  1034. }
  1035. });
  1036. },
  1037. getTime(time) {
  1038. return util.formatSecond(time)
  1039. },
  1040. // 录音暂停播放
  1041. changePlayState() {
  1042. if (this.audioPlay == false) {
  1043. this.innerAudioContext.play();
  1044. } else {
  1045. this.innerAudioContext.pause()
  1046. }
  1047. },
  1048. //音频前进回退
  1049. sliderChangeComplate(e) {
  1050. const currTimeStr = this.formatTime(e.detail.value)
  1051. this.currentTimeStr = currTimeStr
  1052. this.innerAudioContext.seek(e.detail.value);
  1053. this.innerAudioContext.play();
  1054. },
  1055. //长按点击播放
  1056. clickbofang(dialog,item) {
  1057. this.innerAudioContext.pause()
  1058. this.dialogList.forEach(res => {
  1059. res.message.forEach(asd => {
  1060. asd.isshow = false;
  1061. })
  1062. })
  1063. this.$forceUpdate()
  1064. if(dialog==this.csdFileindex){
  1065. let time = parseInt(item.bg / 1000)
  1066. const currTimeStr = this.formatTime(time)
  1067. this.currentTimeStr = currTimeStr
  1068. this.innerAudioContext.seek(time);
  1069. this.innerAudioContext.play();
  1070. return
  1071. }else{
  1072. let time = parseInt(item.bg / 1000)
  1073. this.innerAudioContext.destroy()
  1074. this.csdFileindex = dialog;
  1075. this.recordPath = this.luyinList[dialog].recordPath;
  1076. this.sliderMax = this.getTime(this.luyinList[dialog].recordDuration);
  1077. this.timeStr = this.getTime(this.luyinList[dialog].recordDuration);
  1078. this.date = this.luyinList[dialog].receptionTime;
  1079. this.creatAudio()
  1080. this.getCorpusAnalysis()
  1081. const currTimeStr = this.formatTime(time)
  1082. this.currentTimeStr = currTimeStr
  1083. this.innerAudioContext.seek(time);
  1084. this.innerAudioContext.play();
  1085. }
  1086. },
  1087. // 文件切换播放
  1088. filechange(item, i) {
  1089. this.num=i;//下拉起始位置
  1090. this.Bnum=i;
  1091. this.innerAudioContext.destroy();
  1092. this.csdFileindex = i;
  1093. this.recordPath = item.recordPath;
  1094. this.sliderMax = this.getTime(item.recordDuration);
  1095. this.timeStr = this.getTime(item.recordDuration);
  1096. this.date = item.receptionTime;
  1097. this.isshowFile = false;
  1098. this.creatAudio()
  1099. this.getCorpusAnalysis()
  1100. },
  1101. //录音实例
  1102. creatAudio() {
  1103. this.innerAudioContext = uni.createInnerAudioContext();
  1104. // if(uni.getStorageSync('entrance')==1){
  1105. this.innerAudioContext.autoplay = false;
  1106. // }else{
  1107. // this.innerAudioContext.autoplay = true;
  1108. // }
  1109. this.innerAudioContext.src = this.recordPath;
  1110. this.innerAudioContext.title = '音频';
  1111. this.onPlay()
  1112. this.onPause()
  1113. this.onCanplay()
  1114. this.onEnded()
  1115. this.onSeeking()
  1116. this.onSeeked()
  1117. this.TimeUpdate()
  1118. },
  1119. // 自动播放下一个文件
  1120. qeihuanwenjian() {
  1121. let index = this.csdFileindex + 1;
  1122. if (index < this.luyinList.length) {
  1123. this.csdFileindex = index;
  1124. this.getCorpusAnalysis()
  1125. let item = this.luyinList[this.csdFileindex];
  1126. let i = this.csdFileindex;
  1127. this.filechange(item, i)
  1128. }
  1129. },
  1130. formatTime(num) {
  1131. //格式化时间格式
  1132. num = num.toFixed(0);
  1133. let second = num % 60;
  1134. if (second < 10) second = '0' + second;
  1135. let min = Math.floor(num / 60);
  1136. if (min < 10) min = '0' + min;
  1137. return min + ":" + second;
  1138. },
  1139. changeEditing() {
  1140. this.dialogList.forEach(res => {
  1141. res.message.forEach(asd => {
  1142. asd.isshow = false;
  1143. })
  1144. })
  1145. }
  1146. },
  1147. }
  1148. </script>
  1149. <style lang="scss" scoped>
  1150. .ffectivetext{
  1151. width: 85%;
  1152. margin: 10rpx auto;
  1153. height: 100rpx;
  1154. padding: 20rpx;
  1155. border: 1rpx solid #E4F0FF;
  1156. }
  1157. .biaoqiantom {
  1158. background-color: #008EF2;
  1159. color: #FFFFFF;
  1160. border: none;
  1161. }
  1162. // 表单
  1163. .tian-view {
  1164. width: 570upx;
  1165. background-color: #FFFFFF;
  1166. border-bottom: 1px solid #ededee;
  1167. display: flex;
  1168. min-height: 96rpx;
  1169. .tian-view-t1 {
  1170. width: 20rpx;
  1171. font-size: 34rpx;
  1172. height: 34rpx;
  1173. line-height: 110rpx;
  1174. letter-spacing: 0px;
  1175. color: red;
  1176. }
  1177. .tian-view-t2 {
  1178. width: 30%;
  1179. min-height: 96rpx;
  1180. line-height: 96rpx;
  1181. font-size: 34rpx;
  1182. color: #333;
  1183. }
  1184. .tian-view-t3 {
  1185. width: 61%;
  1186. padding-top: 31rpx;
  1187. padding-bottom: 31rpx;
  1188. display: flex;
  1189. .tian-input {
  1190. width: 98%;
  1191. font-size: 34rpx;
  1192. border: none;
  1193. }
  1194. }
  1195. }
  1196. .zhezhoa {
  1197. position: fixed;
  1198. top: 0;
  1199. left: 0;
  1200. z-index: 999;
  1201. width: 100%;
  1202. height: 100vh;
  1203. opacity: 0.5;
  1204. background-color: #666666;
  1205. }
  1206. .bounced {
  1207. width: 570upx;
  1208. background: #FFFFFF;
  1209. z-index: 1000;
  1210. border-radius: 10upx;
  1211. position: fixed;
  1212. left: 50%;
  1213. top: 50%;
  1214. transform: translate(-50%, -50%);
  1215. /* 50%为自身尺寸的一半 */
  1216. .jiajinghuatit {
  1217. width: 100%;
  1218. height: 68rpx;
  1219. font-size: 30rpx;
  1220. text-align: center;
  1221. line-height: 68rpx;
  1222. }
  1223. .jiajinghuaview {
  1224. padding: 18rpx 18rpx 18rpx 18rpx;
  1225. display: flex;
  1226. flex-wrap: wrap;
  1227. .jiajinghuaview1 {
  1228. padding: 8rpx 8rpx 8rpx 8rpx;
  1229. font-size: 26rpx;
  1230. border-radius: 12rpx;
  1231. border: 1px solid #979797;
  1232. margin-left: 8rpx;
  1233. }
  1234. .jighuaview2 {
  1235. padding: 8rpx 18rpx 8rpx 18rpx;
  1236. font-size: 26rpx;
  1237. border-radius: 12rpx;
  1238. border: 1px solid #979797;
  1239. margin-left: 20rpx;
  1240. margin-top: 10rpx;
  1241. display: flex;
  1242. .view1-text {
  1243. text-align: center;
  1244. }
  1245. .view1-img {
  1246. width: 50rpx;
  1247. }
  1248. }
  1249. }
  1250. .bounced3 {
  1251. height: 100upx;
  1252. width: 100%;
  1253. margin-top: 40upx;
  1254. border-top: 1px solid #dddddd;
  1255. display: flex;
  1256. }
  1257. .bounced3-1 {
  1258. width: 50%;
  1259. height: 100%;
  1260. text-align: center;
  1261. line-height: 100upx;
  1262. border-right: 1px solid #dddddd;
  1263. font-size: 36upx;
  1264. color: #999999;
  1265. }
  1266. .bounced3-2 {
  1267. width: 50%;
  1268. height: 100%;
  1269. text-align: center;
  1270. line-height: 100upx;
  1271. font-size: 36upx;
  1272. color: #108ee9;
  1273. }
  1274. }
  1275. .translation {
  1276. padding-left: 30rpx;
  1277. padding-right: 30rpx;
  1278. background: #FFFFFF;
  1279. display: flex;
  1280. flex-direction: column;
  1281. height: 100vh;
  1282. }
  1283. .translation .top {
  1284. margin: 0 -30upx;
  1285. padding: 0 30upx;
  1286. background: #ffffff;
  1287. border-bottom: 1rpx solid #F2F2F2;
  1288. padding-bottom: 10rpx;
  1289. }
  1290. .translation .top .title {
  1291. display: flex;
  1292. justify-content: space-between;
  1293. .hash {
  1294. color: rgba(21, 144, 233, 1);
  1295. font-size: 24upx;
  1296. }
  1297. }
  1298. .call_record_time {
  1299. height: 44rpx;
  1300. font-size: 28rpx;
  1301. font-weight: 600;
  1302. color: #008EF2;
  1303. line-height: 44rpx;
  1304. }
  1305. .call_record_time_one {
  1306. height: 48rpx;
  1307. font-size: 24rpx;
  1308. font-weight: 500;
  1309. color: #70798d;
  1310. line-height: 48rpx;
  1311. display: flex;
  1312. justify-content: space-between;
  1313. position: relative;
  1314. .audoioyouxiao{
  1315. height: 46rpx;
  1316. position: absolute;
  1317. top: 0rpx;
  1318. right: 140rpx;
  1319. font-size: 30rpx;
  1320. }
  1321. .diangweitupian {
  1322. width: 46rpx;
  1323. height: 46rpx;
  1324. position: absolute;
  1325. top: 0rpx;
  1326. right: 75rpx;
  1327. }
  1328. .file-change {
  1329. position: absolute;
  1330. top: 50rpx;
  1331. right: 0rpx;
  1332. width: 184rpx;
  1333. background: #FFFFFF;
  1334. box-shadow: 0rpx 0rpx 6rpx 2rpx rgba(230, 230, 230, 0.5);
  1335. border-radius: 4rpx;
  1336. z-index: 99;
  1337. height: auto;
  1338. max-height: 600rpx;
  1339. overflow: auto;
  1340. }
  1341. .file-item {
  1342. width: 184rpx;
  1343. height: 60rpx;
  1344. line-height: 60rpx;
  1345. text-align: center;
  1346. font-size: 30rpx;
  1347. font-weight: 400;
  1348. color: #333333;
  1349. border-bottom: 1rpx solid #E2E2E2;
  1350. }
  1351. .file-item:last-child {
  1352. border: 0
  1353. }
  1354. .fileactive {
  1355. color: #008EF2
  1356. }
  1357. }
  1358. .audio-container {
  1359. width: 100%;
  1360. display: flex;
  1361. justify-content: space-between;
  1362. align-items: center;
  1363. .audio-head {
  1364. width: 60rpx;
  1365. height: 60rpx;
  1366. flex-shrink: 0;
  1367. }
  1368. .audio-head .image {
  1369. width: 100%;
  1370. height: 100%;
  1371. }
  1372. .audio-slider {
  1373. width: 96%;
  1374. position: relative;
  1375. padding: 2px 0rpx 0px 20px;
  1376. display: flex;
  1377. justify-content: space-between;
  1378. align-items: center;
  1379. }
  1380. .audio-slider .slider {
  1381. width: 100%;
  1382. padding: 0px 15rpx;
  1383. box-sizing: border-box;
  1384. }
  1385. .audio-time {
  1386. width: 110rpx;
  1387. text-align: right;
  1388. font-size: 24rpx;
  1389. line-height: 28rpx;
  1390. color: #70798D;
  1391. display: flex;
  1392. justify-content: space-between;
  1393. }
  1394. .audio-play {
  1395. width: 40rpx;
  1396. height: 40rpx;
  1397. flex-shrink: 0;
  1398. }
  1399. .audio-play .image {
  1400. width: 100%;
  1401. height: 100%;
  1402. }
  1403. }
  1404. .scroll-Y {
  1405. font-size: 36upx;
  1406. color: #999999;
  1407. background: #FFFFFF;
  1408. margin-top: 30upx;
  1409. flex: 1;
  1410. overflow-y: scroll;
  1411. width: 100%;
  1412. }
  1413. .scroll-Y .text {
  1414. margin: 50upx 30upx;
  1415. line-height: 80upx;
  1416. display: flex;
  1417. align-items: center;
  1418. }
  1419. .scroll-Y .text[data-speaker="2"],
  1420. .scroll-Y .text[data-speaker="4"],
  1421. .scroll-Y .text[data-speaker="6"] {
  1422. flex-direction: row-reverse;
  1423. text-align: right;
  1424. .content {
  1425. margin-left: 0;
  1426. margin-right: 30upx;
  1427. background: #F6F6F6;
  1428. color: #999999;
  1429. }
  1430. }
  1431. .scroll-Y .text .avatar {
  1432. width: 64upx;
  1433. height: 64upx;
  1434. line-height: 64upx;
  1435. text-align: center;
  1436. // border: 1rpx solid red;
  1437. font-size: 36rpx;
  1438. border-radius: 50%;
  1439. background: #F2F2F2;
  1440. color: #008EF2;
  1441. // display: flex;
  1442. // justify-content: center;
  1443. // align-items: center;
  1444. // image {
  1445. // width: 40upx;
  1446. // }
  1447. }
  1448. .scroll-Y .text .content {
  1449. margin-left: 30upx;
  1450. line-height: 60rpx;
  1451. text-align: left;
  1452. padding: 0 5px;
  1453. background: #2BC805;
  1454. border-radius: 8upx;
  1455. max-width: 442rpx;
  1456. color: #FFFFFF;
  1457. position: relative;
  1458. .tankuangcss {
  1459. position: absolute;
  1460. top: -140rpx;
  1461. left: -120rpx;
  1462. width: 308rpx;
  1463. height: 130rpx;
  1464. background-color: #333333;
  1465. font-size: 24rpx;
  1466. color: #FFFFFF;
  1467. padding-top: 4rpx;
  1468. padding-bottom: 4rpx;
  1469. display: flex;
  1470. flex-wrap: wrap;
  1471. border-radius: 15rpx;
  1472. z-index: 1000;
  1473. }
  1474. }
  1475. .scroll-Y .text.active .content {
  1476. color: #38FFF1;
  1477. position: relative;
  1478. }
  1479. .scroll-Y .text.active[data-speaker="2"] .content,
  1480. .scroll-Y .text.active[data-speaker="4"] .content,
  1481. .scroll-Y .text.active[data-speaker="6"] .content {
  1482. color: #FF7538;
  1483. position: relative;
  1484. }
  1485. .tab-box {
  1486. width: 100%;
  1487. display: flex;
  1488. justify-content: center;
  1489. align-items: center;
  1490. .yinpinshibie {
  1491. width: 156rpx;
  1492. height: 50rpx;
  1493. font-size: 36rpx;
  1494. font-weight: 400;
  1495. color: #333333;
  1496. text-align: center;
  1497. line-height: 50rpx;
  1498. letter-spacing: 2rpx;
  1499. margin-right: 188rpx;
  1500. &.active {
  1501. position: relative;
  1502. &::after {
  1503. position: absolute;
  1504. content: '';
  1505. width: 119rpx;
  1506. height: 8rpx;
  1507. background: #008EF2;
  1508. border-radius: 4rpx;
  1509. top: 50rpx;
  1510. right: 0;
  1511. left: 0;
  1512. margin: 0 auto;
  1513. }
  1514. }
  1515. }
  1516. .rate {
  1517. width: 156rpx;
  1518. height: 50rpx;
  1519. font-size: 36rpx;
  1520. font-weight: 400;
  1521. color: #333333;
  1522. line-height: 50rpx;
  1523. letter-spacing: 2rpx;
  1524. text-align: center;
  1525. &.active {
  1526. position: relative;
  1527. &::after {
  1528. position: absolute;
  1529. content: '';
  1530. width: 119rpx;
  1531. height: 8rpx;
  1532. background: #008EF2;
  1533. border-radius: 4rpx;
  1534. top: 50rpx;
  1535. right: 0;
  1536. left: 0;
  1537. margin: 0 auto;
  1538. }
  1539. }
  1540. }
  1541. }
  1542. .backTop {
  1543. width: 60upx;
  1544. height: 60upx;
  1545. background: rgba(211, 235, 253, 1);
  1546. box-shadow: 0upx 0upx 2upx 4upx rgba(38, 161, 255, 0.04);
  1547. border-radius: 50%;
  1548. position: fixed;
  1549. bottom: 200upx;
  1550. right: 8upx;
  1551. display: flex;
  1552. justify-content: center;
  1553. align-items: center;
  1554. image {
  1555. width: 26upx;
  1556. height: 34upx;
  1557. }
  1558. }
  1559. // 评分
  1560. .rate-box {
  1561. padding: 10rpx 20rpx;
  1562. .date {
  1563. width: 300rpx;
  1564. height: 33rpx;
  1565. font-size: 24rpx;
  1566. font-weight: 400;
  1567. color: #333333;
  1568. line-height: 33rpx;
  1569. letter-spacing: 1rpx;
  1570. margin-bottom: 8rpx;
  1571. }
  1572. .title {
  1573. width: 100%;
  1574. height: 42rpx;
  1575. font-size: 30rpx;
  1576. font-weight: 500;
  1577. color: #333333;
  1578. line-height: 42rpx;
  1579. letter-spacing: 2rpx;
  1580. margin-bottom: 20rpx;
  1581. }
  1582. .level1 {
  1583. display: flex;
  1584. align-items: center;
  1585. .level-name {
  1586. width: 104rpx;
  1587. height: 33rpx;
  1588. font-size: 24rpx;
  1589. font-weight: 500;
  1590. color: #333333;
  1591. line-height: 33rpx;
  1592. letter-spacing: 1rpx;
  1593. margin-right: 10rpx;
  1594. }
  1595. .level-progress {
  1596. flex: 1;
  1597. border-radius: 11rpx;
  1598. height: 21rpx;
  1599. background-color: #BEE4FF;
  1600. position: relative;
  1601. .color {
  1602. width: 0;
  1603. position: absolute;
  1604. top: 0;
  1605. left: 0;
  1606. height: 21rpx;
  1607. border-radius: 11rpx 0 0 11rpx;
  1608. background-color: #008EF2;
  1609. }
  1610. }
  1611. .level-rate {
  1612. width: 65rpx;
  1613. height: 33rpx;
  1614. font-size: 24rpx;
  1615. font-weight: 500;
  1616. color: #333333;
  1617. line-height: 33rpx;
  1618. letter-spacing: 1rpx;
  1619. margin: 0 20rpx 0 15rpx;
  1620. }
  1621. .arrow {
  1622. width: 37rpx;
  1623. height: 21rpx;
  1624. padding: 5rpx 20rpx;
  1625. }
  1626. .rotatearrow {
  1627. transform: rotate(270deg);
  1628. }
  1629. }
  1630. .level1-subbox {
  1631. display: flex;
  1632. margin-top: 20rpx;
  1633. flex-wrap: wrap;
  1634. .sub-name {
  1635. width: 50%;
  1636. display: flex;
  1637. margin-bottom: 18rpx;
  1638. .subitem-name {
  1639. width: 104rpx;
  1640. height: 33rpx;
  1641. font-size: 24rpx;
  1642. font-weight: 400;
  1643. color: #999999;
  1644. line-height: 33rpx;
  1645. letter-spacing: 1rpx;
  1646. margin-right: 12rpx;
  1647. }
  1648. .checkimg {
  1649. width: 27rpx;
  1650. height: 27rpx;
  1651. }
  1652. }
  1653. }
  1654. }
  1655. .dialog-block {
  1656. margin: 20rpx 0;
  1657. border-bottom: 1px solid #ccc;
  1658. .fileName {
  1659. text-align: center;
  1660. margin: 10rpx auto;
  1661. width: 115rpx;
  1662. height: 42rpx;
  1663. line-height: 42rpx;
  1664. background: #EFEFEF;
  1665. border-radius: 4rpx;
  1666. font-size: 20rpx;
  1667. font-weight: 400;
  1668. color: #333333;
  1669. }
  1670. }
  1671. </style>