Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

1723 wiersze
44 KiB

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