Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

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