AI销管
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

details.vue 39 KiB

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