Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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