您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

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