AI销管
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

details.vue 37 KiB

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