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.
 
 
 

1844 lines
44 KiB

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