You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

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