您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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