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ů.
 
 
 

1825 řádky
43 KiB

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