Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

1852 Zeilen
44 KiB

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