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.
 
 
 

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