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.
 
 
 

1728 lines
44 KiB

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