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

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