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.
 
 
 

1818 lines
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. };
  272. },
  273. onLoad(options) {
  274. this.status = options.status;
  275. this.customerId = options.customerId;
  276. this.itemobj = uni.getStorageSync('searchobj');
  277. this.stateisshow = options.stateisshow;
  278. this.$zaudio.autoPlay = true
  279. //注意: 不同的回调方法, 相同的业务函数方法名, 不会相互影响;
  280. this.$zaudio.on('stop', this.ACTION, () => {
  281. console.log('我是强制暂停或关闭小程序音频浮窗触发的')
  282. })
  283. this.$zaudio.on('seek', this.ACTION, (time) => {
  284. this.sliderChangeComplate(this.TIMEEVENT(time))
  285. })
  286. this.$zaudio.on('playing', this.ACTION, (obj) => {
  287. this.TimeUpdate(this.TIMEEVENT(obj.current))
  288. })
  289. this.$zaudio.on('ended', this.ACTION, e => {
  290. this.$nextTick(() => {
  291. this.scrollId = "";
  292. })
  293. this.qeihuanwenjian()
  294. })
  295. this.$zaudio.on('error', this.ACTION, e => {
  296. console.log(e, '加载失败')
  297. })
  298. uni.$on('DETAILSINIT', info => {
  299. this.init(info)
  300. })
  301. },
  302. onShow() {
  303. this.Menulist = uni.getStorageSync('weapp_session_Menu_data');
  304. this.Menulist.forEach(item => {
  305. if (item.name == '标记有效无效接待') {
  306. this.Menulistisshow = true;
  307. }
  308. })
  309. this.buildingID = uni.getStorageSync('buildingID').id;
  310. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  311. if (this.userInfo.dataCode == 6) {
  312. this.jiaoseshow = false
  313. }
  314. if (this.stateisshow == 2) {
  315. var info = this.itemobj;
  316. }
  317. this.gituserlist()
  318. !this.isPageHide && this.init(info)
  319. },
  320. onHide() {
  321. this.isPageHide = true
  322. },
  323. onUnload() {
  324. //卸载不需要的业务和获取播放状态的业务,提高页面性能
  325. this.$zaudio.off('seek', this.ACTION);
  326. this.$zaudio.off('stop', this.ACTION);
  327. this.$zaudio.off('playing', this.ACTION);
  328. this.$zaudio.off('ended', this.ACTION);
  329. this.$zaudio.off('error', this.ACTION);
  330. },
  331. computed: {
  332. conversionTiame() {
  333. return (e) => {
  334. return this.getTime(e);
  335. }
  336. },
  337. },
  338. filters: {
  339. // ASCII码转换 大写字母A是65 演讲人是从1开始所以num+64
  340. toCapital(num) {
  341. let str = ''
  342. if (num) {
  343. str = String.fromCharCode(num + 64)
  344. }
  345. return str
  346. }
  347. },
  348. methods: {
  349. effectiveAdd() {
  350. if (this.effectiveindex == 4) {
  351. if (this.effectiveitext.length == 0) {
  352. uni.showToast({
  353. title: '备注不能为空',
  354. icon: "none",
  355. duration: 2000
  356. });
  357. return
  358. }
  359. }
  360. this.effective = false;
  361. let parames = {
  362. id: this.customerId,
  363. validInvalid: '',
  364. validInvalid: 1,
  365. invalidReason: Number(this.effectiveindex) + 1,
  366. invalidNote: this.effectiveitext
  367. }
  368. this.$u.post("/customer/updateValidInvalid", parames).then(res => {
  369. console.log(res)
  370. this.gituserlist()
  371. })
  372. },
  373. radioChange(evt) {
  374. this.effectiveitext = "";
  375. for (let i = 0; i < this.effectiveitems.length; i++) {
  376. if (this.effectiveitems[i].value === evt.detail.value) {
  377. this.effectiveindex = i;
  378. break;
  379. }
  380. }
  381. },
  382. //标记
  383. alllogo() {
  384. var that = this;
  385. let msg = '';
  386. if (this.userlistobj.validInvalid != 0) {
  387. msg = '是否标记为"有效录音"?';
  388. uni.showModal({
  389. title: '提示',
  390. content: msg,
  391. success: function(res) {
  392. if (res.confirm) {
  393. let parames = {
  394. id: that.customerId,
  395. validInvalid: '',
  396. invalidReason: 0
  397. }
  398. if (that.userlistobj.validInvalid == 0) {
  399. parames.validInvalid = 1;
  400. } else {
  401. parames.validInvalid = 0;
  402. }
  403. that.$u.post("/customer/updateValidInvalid", parames).then(res => {
  404. console.log(res)
  405. that.gituserlist()
  406. })
  407. }
  408. }
  409. });
  410. } else {
  411. this.effective = true;
  412. }
  413. },
  414. //获取用户信息
  415. gituserlist() {
  416. this.$u.get("/matchKeywords/personalReceptionRecord", {
  417. customerId: this.customerId
  418. }).then(res => {
  419. res.endTime1 = res.endTime.substring(0, 19);
  420. this.userlistobj = res;
  421. })
  422. },
  423. toKeywordsearch() {
  424. this.stateisshow = 1;
  425. uni.navigateTo({
  426. url: '/pages/learning/Keywordsearch?customerId=' + this.customerId + "&status=" + this.status +
  427. "&skpl=" + "1" + '$UpDateEvent=DETAILSINIT'
  428. })
  429. },
  430. TimeUpdate(currentTime) {
  431. this.playNow = Number(currentTime)
  432. if (this.dialogList.length == 0) {
  433. return
  434. } else {
  435. const message = this.dialogList[0].message;
  436. if (!message) return
  437. for (let i = 0; i < message.length; i++) {
  438. if ((Math.floor(message[i].bg / 1000) <= this.playNow && this.playNow < Math.floor(message[i].ed / 1000))) {
  439. console.log(message[i])
  440. this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg;
  441. break;
  442. }
  443. if (i < message.length - 1 && Math.floor(message[i].ed / 1000) < this.playNow && this.playNow < Math.floor(message[i + 1].bg / 1000)) {
  444. this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg;
  445. break;
  446. }
  447. }
  448. }
  449. this.$forceUpdate()
  450. },
  451. init(info) {
  452. const parames = {
  453. pageNum: 1,
  454. pageSize: 100,
  455. query: {
  456. customerId: this.customerId
  457. }
  458. }
  459. this.$u.post("/corpus/findByPage", parames).then(res => {
  460. if (res && res.length) {
  461. let alltime = 1;
  462. res.forEach(item => {
  463. alltime += item.recordDuration
  464. })
  465. this.alltimeStr = this.getTime(alltime)
  466. if (info) {
  467. res.forEach((item, index) => {
  468. if (item.id == info.customerId) {
  469. console.log(item.id)
  470. this.luyinList = res;
  471. this.csdFileindex = index;
  472. this.recordPath = res[index].recordPath
  473. this.date = res[index].receptionTime;
  474. this.isshowFile = false;
  475. this.getCorpusAnalysis(info);
  476. var itc = info.bg / 1000
  477. this.adasdasdasd(itc)
  478. }
  479. })
  480. } else {
  481. this.recordPath = res[0].recordPath
  482. this.date = res[0].receptionTime
  483. this.luyinList = res;
  484. this.getCorpusAnalysis()
  485. }
  486. this.zyAudio()
  487. }
  488. })
  489. },
  490. //搜索跳转
  491. adasdasdasd(e) {
  492. this.stepPlay(e)
  493. },
  494. //下一页
  495. ltolower() {
  496. var lengthcz = this.luyinList.length - 1;
  497. if (this.num >= lengthcz) {
  498. uni.showToast({
  499. title: '到底了',
  500. duration: 2000
  501. });
  502. return
  503. } else {
  504. this.num = this.num + 1;
  505. uni.showLoading({
  506. title: '加载中'
  507. });
  508. setTimeout(function() {
  509. uni.hideLoading();
  510. }, 2000);
  511. uni.request({
  512. url: config.service.getCorpusAnalysis + '?corpusId=' + this.luyinList[this.num].id +
  513. "&customerId=" + this.customerId, //仅为示例,并非真实接口地址。
  514. method: "GET",
  515. header: {
  516. 'content-type': 'application/json',
  517. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  518. },
  519. success: (data) => {
  520. if (data.data.code == 10000) {
  521. if (data.data.data.audioContent.length == 0) {
  522. setTimeout(function() {
  523. uni.hideLoading();
  524. }, 2000);
  525. } else {
  526. const jsonInfo = JSON.parse(data.data.data.audioContent);
  527. this.dialogList.push({
  528. message: jsonInfo,
  529. backindex: this.num
  530. });
  531. this.dialogList.forEach((asd, idx) => {
  532. asd.message.forEach((qwe, inde) => {
  533. qwe.isshow = false;
  534. })
  535. })
  536. }
  537. }
  538. },
  539. })
  540. }
  541. },
  542. //上一页
  543. rolltoupper() {
  544. if (this.csdFileindex == 0) {
  545. uni.showToast({
  546. title: '到头了',
  547. duration: 2000
  548. });
  549. return
  550. } else if (this.Bnum == 0) {
  551. uni.showToast({
  552. title: '到头了',
  553. duration: 2000
  554. });
  555. return
  556. } else {
  557. this.Bnum = this.Bnum - 1;
  558. uni.showLoading({
  559. title: '加载中'
  560. });
  561. setTimeout(function() {
  562. uni.hideLoading();
  563. }, 2000);
  564. uni.request({
  565. url: config.service.getCorpusAnalysis + '?corpusId=' + this.luyinList[this.Bnum].id +
  566. "&customerId=" + this.customerId + '&num=50', //仅为示例,并非真实接口地址。
  567. method: "GET",
  568. header: {
  569. 'content-type': 'application/json',
  570. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  571. },
  572. success: (data) => {
  573. if (data.data.code == 10000) {
  574. if (data.data.data.audioContent.length == 0) {
  575. setTimeout(function() {
  576. uni.hideLoading();
  577. }, 2000);
  578. } else {
  579. const jsonInfo = JSON.parse(data.data.data.audioContent);
  580. this.dialogList.unshift({
  581. message: jsonInfo
  582. });
  583. this.dialogList.forEach((asd, idx) => {
  584. asd.message.forEach((qwe, inde) => {
  585. qwe.isshow = false;
  586. })
  587. })
  588. }
  589. }
  590. },
  591. })
  592. }
  593. },
  594. // 取消全部加精
  595. notappick() {
  596. var that = this;
  597. uni.showModal({
  598. title: '提示',
  599. content: '确认取消加精?',
  600. success: function(res) {
  601. if (res.confirm) {
  602. console.log('用户点击确定');
  603. uni.request({
  604. url: config.service.delATD + "?carId=" + that.customerId,
  605. method: "GET",
  606. header: {
  607. 'content-type': 'application/json',
  608. 'Access-Token': uni.getStorageSync('weapp_session_login_data')
  609. .token
  610. },
  611. success: (data) => {
  612. if (data.data.code == 10000) {
  613. that.status = 1
  614. uni.showToast({
  615. title: '取消成功',
  616. duration: 2000
  617. });
  618. } else {
  619. uni.showToast({
  620. title: data.data.message,
  621. duration: 2000
  622. });
  623. }
  624. }
  625. })
  626. } else if (res.cancel) {
  627. console.log('用户点击取消');
  628. }
  629. }
  630. });
  631. },
  632. //全部加精
  633. tappick(i) {
  634. var that = this;
  635. uni.showModal({
  636. title: '提示',
  637. content: '确认加精?',
  638. success: function(res) {
  639. if (res.confirm) {
  640. console.log('用户点击确定');
  641. let objdata = {
  642. "carId": that.customerId, //客户id
  643. "status": 0,
  644. "itemId": that.buildingID,
  645. }
  646. uni.request({
  647. url: config.service.addATD,
  648. method: "POST",
  649. header: {
  650. 'content-type': 'application/json',
  651. 'Access-Token': uni.getStorageSync('weapp_session_login_data')
  652. .token
  653. },
  654. data: objdata,
  655. success: (data) => {
  656. if (data.data.code == 10000) {
  657. that.status = 0
  658. uni.showToast({
  659. title: '加精成功',
  660. duration: 2000
  661. });
  662. } else {
  663. uni.showToast({
  664. title: data.data.message,
  665. duration: 2000
  666. });
  667. }
  668. }
  669. })
  670. } else if (res.cancel) {
  671. console.log('用户点击取消');
  672. }
  673. }
  674. });
  675. },
  676. //标签选择
  677. tapbiaoqianclisck(index) {
  678. this.biaoqianindex = index;
  679. this.biaoqianid = this.biaoqianlist[index].id
  680. },
  681. //复制
  682. clickcopy() {
  683. var that = this;
  684. uni.setClipboardData({
  685. data: that.thewrongword,
  686. success: function() {
  687. that.dialogList.forEach(res => {
  688. res.message.forEach(asd => {
  689. asd.isshow = false;
  690. })
  691. })
  692. that.$forceUpdate();
  693. console.log('success');
  694. }
  695. });
  696. },
  697. //确认加入常错词
  698. Confirmtheexit() {
  699. if(this.reswrongword.length>8 || this.thewrongword.length>8){
  700. this.$refs.uToast.show({
  701. title: '正确词错误词不能超过8个字',
  702. type: 'warning',
  703. })
  704. }else{
  705. let reg = /^[0-9]+$/
  706. if(reg.test(this.thewrongword)){
  707. this.$refs.uToast.show({
  708. title: '错误词不能为纯数字',
  709. type: 'warning',
  710. })
  711. }else{
  712. if (this.thewrongword) {
  713. if (this.reswrongword) {
  714. let parames = {
  715. customerId:this.customerId,
  716. cupid: this.luyinList[this.csdFileindex].id,
  717. wrongWord: this.thewrongword, //错误词
  718. correctWord: this.reswrongword, //正确词
  719. translateHtmlContent: this.messagelisy,
  720. }
  721. this.isshow2 = false;
  722. let sas=this.textItself.replace(this.thewrongword,this.reswrongword)
  723. this.dialogList[this.argtextindex1].message[this.argtextindex2].onebest=sas
  724. this.dialogList.forEach(res => {
  725. res.message.forEach(asd => {
  726. asd.isshow = false;
  727. })
  728. })
  729. this.$u.post("/corpus/addCorrectWord", parames).then(data => {
  730. this.thewrongword = "";
  731. this.reswrongword = "";
  732. })
  733. } else {
  734. uni.showToast({
  735. title: '正确值不能为空',
  736. duration: 2000
  737. });
  738. return
  739. }
  740. } else {
  741. uni.showToast({
  742. title: '错误词不能为空',
  743. duration: 2000
  744. });
  745. return
  746. }
  747. }
  748. }
  749. },
  750. //取消加入常错词
  751. Cancelout() {
  752. this.isshow2 = false;
  753. this.dialogList.forEach(res => {
  754. res.message.forEach(asd => {
  755. asd.isshow = false;
  756. })
  757. })
  758. },
  759. //加入长错词
  760. Oftenthewrongword() {
  761. this.isNum = false;
  762. this.reswrongword = "";
  763. this.isshow2 = true;
  764. let reg = /^[0-9]+$/
  765. if (reg.test(this.thewrongword)) {
  766. this.isNum = true
  767. }
  768. },
  769. //加精华
  770. Addtheessence() {
  771. this.isshow3 = true;
  772. this.biaoqianlist = []
  773. let parames = {
  774. "itemId": this.buildingID
  775. }
  776. this.$u.post("/addtodigest/findAllYi", parames).then(data => {
  777. this.biaoqianlist = data
  778. this.biaoqianlist.unshift({
  779. name: "逼单话术",
  780. id: 0
  781. })
  782. })
  783. },
  784. // 取消加精
  785. Cancelout2() {
  786. this.isshow3 = false;
  787. this.dialogList.forEach(res => {
  788. res.message.forEach(asd => {
  789. asd.isshow = false;
  790. })
  791. })
  792. },
  793. // 确认加精
  794. Confirmtheexit2() {
  795. if (this.biaoqianid) {
  796. this.biaoqianid = this.biaoqianid
  797. } else {
  798. this.biaoqianid = 0
  799. }
  800. this.isshow3 = false;
  801. this.dialogList.forEach(res => {
  802. res.message.forEach(asd => {
  803. asd.isshow = false;
  804. })
  805. })
  806. let objdata = {
  807. "carId": this.customerId, //客户id
  808. "startTime": this.changanitem.bg, //开始时间
  809. "startFile": this.duihuawenjianid, //对话所在录音文件id
  810. "endTime": this.changanitem.ed, //结束时间
  811. "marketingId": this.biaoqianid, //对应一级父id
  812. "jjTransfer": this.changanitem.onebest, //选中对话
  813. "status": 1
  814. }
  815. uni.request({
  816. url: config.service.addATD,
  817. method: "POST",
  818. header: {
  819. 'content-type': 'application/json',
  820. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  821. },
  822. data: objdata,
  823. success: (data) => {
  824. if (data.data.code == 10000) {
  825. uni.showToast({
  826. title: '加精成功',
  827. duration: 2000
  828. });
  829. } else {
  830. uni.showToast({
  831. title: data.data.message,
  832. duration: 2000
  833. });
  834. }
  835. }
  836. })
  837. },
  838. //长按对话
  839. changanxiaoguo(item, index, i) {
  840. this.messagelisy = [];
  841. this.changanitem = {};
  842. this.duihuawenjianid = "",
  843. this.dialogList.forEach(res => {
  844. res.message.forEach(asd => {
  845. asd.isshow = false;
  846. })
  847. })
  848. this.changanitem = item;
  849. this.duihuawenjianid = this.luyinList[this.csdFileindex].id;
  850. this.dialogList[i].message[index].isshow = !this.dialogList[i].message[index].isshow;
  851. this.textItself = item.onebest;
  852. let onebest = item.onebest;
  853. this.thewrongword = onebest.replace(/<.*?>/ig, "");
  854. // this.thewrongword = item.onebest;
  855. this.messagelisy = this.dialogList[i].message
  856. this.argtextindex1 = i;
  857. this.argtextindex2 = index;
  858. },
  859. //回到顶部
  860. gotoTop() {
  861. this.scrollId = null;
  862. this.$nextTick(() => {
  863. this.scrollId = "top";
  864. })
  865. },
  866. //切换tab
  867. changeTab(type) {
  868. if (type == 0) {
  869. this.tab = 0
  870. } else {
  871. this.tab = 1;
  872. this.getRatelist();
  873. }
  874. },
  875. //录音列表显示隐藏
  876. showFile() {
  877. this.isshowFile = !this.isshowFile;
  878. },
  879. //评分上下显隐
  880. changeshow(item, type) {
  881. if (type == 1) {
  882. item.show = true
  883. } else {
  884. item.show = false
  885. }
  886. },
  887. // 获取评分
  888. getRatelist() {
  889. if (this.ratelist.length == 0) {
  890. this.$u.get("/customer/findzkMByCusId", {
  891. cusId: this.customerId
  892. }).then(res => {
  893. if (res.length) {
  894. let level1 = []
  895. let level2rate = 0
  896. res.forEach(item => {
  897. if (item.pid == 0) {
  898. level1.push({
  899. id: item.marketingId,
  900. rate: item.fraction,
  901. name: item.name,
  902. sort: item.sort,
  903. show: false,
  904. ratepercent: 0,
  905. children: []
  906. })
  907. } else {
  908. if (item.selected == 0) {
  909. level2rate += item.fraction
  910. }
  911. }
  912. })
  913. this.totalRate = level2rate
  914. res.forEach(subitem => {
  915. let subitempid = subitem.pid
  916. level1.forEach(item => {
  917. if (subitempid == item.id) {
  918. if (subitem.selected == 0) {
  919. item.ratepercent += subitem.fraction
  920. }
  921. item.children.push({
  922. id: subitem.id,
  923. rate: subitem.fraction,
  924. selected: subitem.selected,
  925. name: subitem.name
  926. })
  927. }
  928. })
  929. })
  930. level1[0].show = true;
  931. this.ratelist = level1
  932. }
  933. setTimeout(function() {
  934. uni.hideLoading();
  935. }, 1000);
  936. })
  937. }
  938. },
  939. // 获取转义后的对话结果
  940. getCorpusAnalysis(info) {
  941. this.dialogList = [];
  942. uni.showLoading({
  943. title: '加载中'
  944. });
  945. uni.request({
  946. url: config.service.getCorpusAnalysis + '?corpusId=' + this.luyinList[this.csdFileindex].id +
  947. "&customerId=" + this.customerId, //仅为示例,并非真实接口地址。
  948. method: "GET",
  949. header: {
  950. 'content-type': 'application/json',
  951. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  952. },
  953. success: (data) => {
  954. if (data.data.code == 10000) {
  955. if (data.data.data.audioContent.length == 0) {
  956. setTimeout(function() {
  957. uni.hideLoading();
  958. }, 2000);
  959. } else {
  960. const jsonInfo = JSON.parse(data.data.data.audioContent);
  961. if (this.luyinList[this.csdFileindex].recordDuration > 360) {
  962. //拿到总条数
  963. var stusnum = jsonInfo.length;
  964. this.dialogList.push({
  965. message: jsonInfo.splice(0, 80),
  966. backindex: this.csdFileindex
  967. });
  968. var auth_timetimer = setInterval(() => {
  969. stusnum -= 100;
  970. console.log("还剩下" + stusnum)
  971. if (stusnum <= 0) {
  972. console.log("停止")
  973. clearInterval(auth_timetimer);
  974. } else {
  975. console.log("添加")
  976. var newlistwang = [];
  977. newlistwang = jsonInfo.splice(0, 100);
  978. console.log("新数组", newlistwang)
  979. newlistwang.forEach(item => {
  980. this.dialogList[0].message.push(item)
  981. })
  982. }
  983. }, 1000);
  984. } else {
  985. this.dialogList.push({
  986. message: jsonInfo,
  987. backindex: this.csdFileindex
  988. });
  989. }
  990. this.dialogList.forEach((asd, idx) => {
  991. asd.message.forEach((qwe, inde) => {
  992. qwe.isshow = false;
  993. })
  994. })
  995. setTimeout(function() {
  996. uni.hideLoading();
  997. }, 2000);
  998. }
  999. } else {
  1000. uni.hideLoading();
  1001. uni.showModal({
  1002. title: '提示',
  1003. content: '请求数据失败,请重新尝试',
  1004. showCancel: false
  1005. });
  1006. }
  1007. },
  1008. fail(error) {
  1009. uni.hideLoading();
  1010. uni.showModal({
  1011. title: '提示',
  1012. content: '网络异常,请重新尝试',
  1013. showCancel: false
  1014. });
  1015. return false;
  1016. }
  1017. });
  1018. },
  1019. //替换方法
  1020. brightKeyword(val, cc) {
  1021. if (val.indexOf(cc) !== -1) {
  1022. return val.replace(cc, `<font style='color: red'>${cc}</font>`);
  1023. } else {
  1024. return val;
  1025. }
  1026. },
  1027. getTime(time) {
  1028. return util.formatSecond(time)
  1029. },
  1030. //音频前进回退
  1031. sliderChangeComplate(currentTime) {
  1032. // 暂时没有处理
  1033. // this.$refs.zyAudio.seek(e.detail.value);
  1034. // this.$refs.zyAudio.play();
  1035. },
  1036. //长按点击播放
  1037. clickbofang(dialog, item) {
  1038. this.dialogList.forEach(res => {
  1039. res.message.forEach(asd => {
  1040. asd.isshow = false;
  1041. })
  1042. })
  1043. this.$forceUpdate()
  1044. if (dialog == this.csdFileindex) {
  1045. let time = parseInt(item.bg / 1000)
  1046. this.stepPlay(time);
  1047. return
  1048. } else {
  1049. let time = parseInt(item.bg / 1000)
  1050. this.csdFileindex = dialog;
  1051. this.recordPath = this.luyinList[dialog].recordPath;
  1052. this.date = this.luyinList[dialog].receptionTime;
  1053. this.getCorpusAnalysis()
  1054. this.stepPlay(time);
  1055. }
  1056. },
  1057. // 文件切换播放
  1058. filechange(item, i) {
  1059. this.num = i; //下拉起始位置
  1060. this.Bnum = i;
  1061. this.csdFileindex = i;
  1062. this.recordPath = item.recordPath;
  1063. this.date = item.receptionTime;
  1064. this.isshowFile = false;
  1065. setTimeout(() => {
  1066. this.$zaudio.operate(i)
  1067. }, 50)
  1068. this.getCorpusAnalysis()
  1069. },
  1070. // 自动播放下一个文件
  1071. qeihuanwenjian() {
  1072. let index = this.csdFileindex + 1;
  1073. if (index < this.luyinList.length) {
  1074. this.csdFileindex = index;
  1075. this.getCorpusAnalysis()
  1076. let item = this.luyinList[this.csdFileindex];
  1077. let i = this.csdFileindex;
  1078. this.filechange(item, i)
  1079. }
  1080. },
  1081. formatTime(num) {
  1082. //格式化时间格式
  1083. num = num.toFixed(0);
  1084. let second = num % 60;
  1085. if (second < 10) second = '0' + second;
  1086. let min = Math.floor(num / 60);
  1087. if (min < 10) min = '0' + min;
  1088. return min + ":" + second;
  1089. },
  1090. changeEditing() {
  1091. this.dialogList.forEach(res => {
  1092. res.message.forEach(asd => {
  1093. asd.isshow = false;
  1094. })
  1095. })
  1096. },
  1097. //录音实例
  1098. zyAudio() {
  1099. let data = this.luyinList.map((item, index) => {
  1100. return {
  1101. src: item.recordPath,
  1102. title: `录音文件${index + 1}`,
  1103. singer: '',
  1104. coverImgUrl: ''
  1105. }
  1106. })
  1107. this.$zaudio.setAudio(data)
  1108. //渲染第一首音频
  1109. this.$zaudio.setRender(0)
  1110. setTimeout(() => {
  1111. this.$zaudio.operate()
  1112. }, 150)
  1113. this.$forceUpdate()
  1114. },
  1115. // 跳转指定位置播放
  1116. stepPlay(t) {
  1117. this.$zaudio.seek(t)
  1118. if (this.$zaudio.paused) {
  1119. this.$zaudio.operate()
  1120. }
  1121. },
  1122. },
  1123. }
  1124. </script>
  1125. <style lang="scss" scoped>
  1126. .ffectivetext {
  1127. width: 85%;
  1128. margin: 10rpx auto;
  1129. height: 100rpx;
  1130. padding: 20rpx;
  1131. border: 1rpx solid #E4F0FF;
  1132. }
  1133. .biaoqiantom {
  1134. background-color: #008EF2;
  1135. color: #FFFFFF;
  1136. border: none;
  1137. }
  1138. // 表单
  1139. .tian-view {
  1140. width: 570upx;
  1141. background-color: #FFFFFF;
  1142. border-bottom: 1px solid #ededee;
  1143. display: flex;
  1144. min-height: 96rpx;
  1145. .tian-view-t1 {
  1146. width: 20rpx;
  1147. font-size: 34rpx;
  1148. height: 34rpx;
  1149. line-height: 110rpx;
  1150. letter-spacing: 0px;
  1151. color: red;
  1152. }
  1153. .tian-view-t2 {
  1154. width: 30%;
  1155. min-height: 96rpx;
  1156. line-height: 96rpx;
  1157. font-size: 34rpx;
  1158. color: #333;
  1159. }
  1160. .tian-view-t3 {
  1161. width: 61%;
  1162. padding-top: 31rpx;
  1163. padding-bottom: 31rpx;
  1164. display: flex;
  1165. .tian-input {
  1166. width: 98%;
  1167. font-size: 34rpx;
  1168. border: none;
  1169. }
  1170. }
  1171. }
  1172. .zhezhoa {
  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. // 评分
  1593. .rate-box {
  1594. padding: 10rpx 20rpx;
  1595. .date {
  1596. width: 300rpx;
  1597. height: 33rpx;
  1598. font-size: 24rpx;
  1599. font-weight: 400;
  1600. color: #333333;
  1601. line-height: 33rpx;
  1602. letter-spacing: 1rpx;
  1603. margin-bottom: 8rpx;
  1604. }
  1605. .title {
  1606. width: 100%;
  1607. height: 42rpx;
  1608. font-size: 30rpx;
  1609. font-weight: 500;
  1610. color: #333333;
  1611. line-height: 42rpx;
  1612. letter-spacing: 2rpx;
  1613. margin-bottom: 20rpx;
  1614. }
  1615. .level1 {
  1616. display: flex;
  1617. align-items: center;
  1618. .level-name {
  1619. width: 104rpx;
  1620. height: 33rpx;
  1621. font-size: 24rpx;
  1622. font-weight: 500;
  1623. color: #333333;
  1624. line-height: 33rpx;
  1625. letter-spacing: 1rpx;
  1626. margin-right: 10rpx;
  1627. }
  1628. .level-progress {
  1629. flex: 1;
  1630. border-radius: 11rpx;
  1631. height: 21rpx;
  1632. background-color: #BEE4FF;
  1633. position: relative;
  1634. .color {
  1635. width: 0;
  1636. position: absolute;
  1637. top: 0;
  1638. left: 0;
  1639. height: 21rpx;
  1640. border-radius: 11rpx 0 0 11rpx;
  1641. background-color: #008EF2;
  1642. }
  1643. }
  1644. .level-rate {
  1645. width: 65rpx;
  1646. height: 33rpx;
  1647. font-size: 24rpx;
  1648. font-weight: 500;
  1649. color: #333333;
  1650. line-height: 33rpx;
  1651. letter-spacing: 1rpx;
  1652. margin: 0 20rpx 0 15rpx;
  1653. }
  1654. .arrow {
  1655. width: 37rpx;
  1656. height: 21rpx;
  1657. padding: 5rpx 20rpx;
  1658. }
  1659. .rotatearrow {
  1660. transform: rotate(270deg);
  1661. }
  1662. }
  1663. .level1-subbox {
  1664. display: flex;
  1665. margin-top: 20rpx;
  1666. flex-wrap: wrap;
  1667. .sub-name {
  1668. width: 50%;
  1669. display: flex;
  1670. margin-bottom: 18rpx;
  1671. .subitem-name {
  1672. width: 104rpx;
  1673. height: 33rpx;
  1674. font-size: 24rpx;
  1675. font-weight: 400;
  1676. color: #999999;
  1677. line-height: 33rpx;
  1678. letter-spacing: 1rpx;
  1679. margin-right: 12rpx;
  1680. }
  1681. .checkimg {
  1682. width: 27rpx;
  1683. height: 27rpx;
  1684. }
  1685. }
  1686. }
  1687. }
  1688. .dialog-block {
  1689. margin: 20rpx 0;
  1690. border-bottom: 1px solid #ccc;
  1691. .fileName {
  1692. text-align: center;
  1693. margin: 10rpx auto;
  1694. width: 115rpx;
  1695. height: 42rpx;
  1696. line-height: 42rpx;
  1697. background: #EFEFEF;
  1698. border-radius: 4rpx;
  1699. font-size: 20rpx;
  1700. font-weight: 400;
  1701. color: #333333;
  1702. }
  1703. }
  1704. /deep/ .u-model-title{
  1705. padding: 34rpx 0 16rpx !important;
  1706. }
  1707. </style>