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.
 
 
 

1832 lines
43 KiB

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