Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

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