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 42 KiB

2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
1 vuosi sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609
  1. <template>
  2. <view class="details">
  3. <!-- 头部违禁信息 -->
  4. <view class="header">
  5. <view class="h-box">
  6. <view class="h-b-top">
  7. <text class="name">{{ userlistobj.agentName || '' }}</text>
  8. <view class="status">
  9. <text class="pointer"></text>
  10. <text class="item">{{ userlistobj.violatedStatus | ViolatedStatus }}</text>
  11. </view>
  12. </view>
  13. <!-- 详细信息 -->
  14. <view class="h-b-btm" style="margin: 19rpx 0 30rpx;">
  15. <view class="item">
  16. <image class="item-imgs" src="@/static/images/img/time.png" mode=""></image>
  17. {{ userlistobj.createTime || '' }}
  18. </view>
  19. </view>
  20. <view class="h-b-btm">
  21. <view class="item">
  22. <image class="item-imgs" src="@/static/images/img/voice.png" mode=""></image>
  23. {{ userlistobj.mm || '' }}m
  24. </view>
  25. <view class="item hit">
  26. <image class="item-imgs" src="@/static/images/img/hit.png" mode=""></image>
  27. {{ userlistobj.violatedFrequency || '0' }}
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. <!-- tab选择框 -->
  33. <template v-if="isShowMerge">
  34. <u-tabs :activeItemStyle="{background: '#2979ff', color: '#fff'}" :list="list" :is-scroll="false"
  35. bg-color="transparent" :show-bar="false" :current="current" @change="change"></u-tabs>
  36. </template>
  37. <template v-if="current == 0">
  38. <scroll-view :scroll-top="scrollTop" lower-threshold='100px' @scrolltolower="ltolower()"
  39. upper-threshold='40px' @scrolltoupper="rolltoupper()" :scroll-into-view="scrollId" scroll-y="true"
  40. class="zhuti text scroll-Y">
  41. <!-- 聊天记录-->
  42. <view class="dialog-block" style="border-bottom: none;">
  43. <block v-for="(item,index) in findTabooWordsList" :key="index">
  44. <view class="text">
  45. <view class="avatar">
  46. <view :style="[SPEAKERSTYLE(item.speaker)]">
  47. <!-- <image v-if="item.isShow && item.isShow == 0" :src="Aimg" mode="widthFix"></image> -->
  48. <text v-if="item.isShow == 0">顾</text>
  49. <text v-else>{{ item.speaker | toCapital }}</text>
  50. </view>
  51. </view>
  52. <view class="contentInfo">
  53. <view class="info">
  54. <!-- <text class="AudioUserName">{{ item.speaker | toCapital }}</text> -->
  55. <text class="AudioUserName" v-if="item.isShow == 0">{{item.username}}</text>
  56. <text class="AudioUserName" v-else>{{ item.speaker | toCapital }}</text>
  57. <text>{{conversionTiame(item.bg/1000)}}</text>
  58. </view>
  59. <view class="contentMain">
  60. <view class="content">
  61. <view v-html="item.onebest"></view>
  62. </view>
  63. <template v-if="isShowMerge">
  64. <image @click="clickbofang(0,item, 'show')" class="play"
  65. src="@/static/images/recordingManagement/play.png"></image>
  66. </template>
  67. </view>
  68. </view>
  69. </view>
  70. <!-- 1 客户画像 2销讲词 3违禁 4 需求挖掘 -->
  71. <view class="newmark" v-if="item.types">
  72. <view class="mark-item" v-for="(subitem,i) in dealTypes(item.types)" :key="i">
  73. <!-- <image v-if="dealword(subitem)[0]==1" class="markicon"
  74. src="https://static.quhouse.com/37e0de3f8d1c421dac8bf699d5e7992d.png"></image>
  75. <image v-if="dealword(subitem)[0]==2" class="markicon"
  76. src="https://static.quhouse.com/b106e8e75db24a59a579a15a78830a76.png"></image> -->
  77. <image v-if="dealword(subitem)[0]==3" class="markicon"
  78. src="https://static.quhouse.com/8443a2ecb81d4639991ab29c422e9949.png"></image>
  79. <!-- <image v-if="dealword(subitem)[0]==4" class="markicon"
  80. src="https://static.quhouse.com/1cd794cb6c974d9dad948a6dd444518b.png"></image> -->
  81. <view class="marktext" v-if="dealword(subitem)[0]==3" :style="dealword(subitem)[0]==3?'color:#E7483C':'color:#3E50E8'">
  82. {{dealword(subitem)[1]}}
  83. </view>
  84. </view>
  85. </view>
  86. </block>
  87. </view>
  88. </scroll-view>
  89. </template>
  90. <template v-if="current == 1">
  91. <!-- 音频 -->
  92. <view class="audio">
  93. <!-- 标记顾问 -->
  94. <view class="headboxbott">
  95. <view class="headovfu">
  96. <u-tabs-swiper ref="tabs" font-size="30" :bold="true" swiper-width="600" :current="roleindex"
  97. @change="tapspagek()" inactive-color="#b1b1b1" active-color="#008ef2" :list="tablist"
  98. :is-scroll="true">
  99. </u-tabs-swiper>
  100. </view>
  101. <view v-if="permissions.bjgw" class="headpade">
  102. <view class="biaoji" @tap="tagtap()">标记</view>
  103. </view>
  104. </view>
  105. </view>
  106. <scroll-view :scroll-top="scrollTop" lower-threshold='100px' @scrolltolower="ltolower()"
  107. upper-threshold='40px' @scrolltoupper="rolltoupper()" :scroll-into-view="scrollId" scroll-y="true"
  108. class="zhuti text scroll-Y">
  109. <!-- 聊天记录-->
  110. <view class="dialog-block" v-for="(dialog,i) in dialogList" :key="i">
  111. <view :id="'dialog'+i" class="fileName">录音文件</view>
  112. <block v-for="(item,index) in dialog.message" :key="index">
  113. <view class="text" style="margin: 50rpx 30rpx" :id="'dialog'+csdFileindex+'text'+item.bg"
  114. :class="{active: item.bg < playNow && item.ed > playNow, reverse: Number(item.speaker) % 2 == 0}"
  115. :data-speaker="item.speaker">
  116. <view class="avatar">
  117. <view :style="[SPEAKERSTYLE(item.speaker)]">
  118. <!-- <image v-if="item.isShow == 0" :src="Aimg" mode="widthFix"></image> -->
  119. <text v-if="item.isShow == 0">顾</text>
  120. <text v-else>{{ item.speaker | toCapital }}</text>
  121. </view>
  122. </view>
  123. <view class="contentInfo">
  124. <view class="info">
  125. <!-- <text class="AudioUserName">{{ item.speaker | toCapital }}</text> -->
  126. <text class="AudioUserName" v-if="item.isShow == 0">{{ item.username }}</text>
  127. <text class="AudioUserName" v-else>{{ item.speaker | toCapital }}</text>
  128. <text>{{conversionTiame(item.bg/1000)}}</text>
  129. </view>
  130. <view class="contentMain">
  131. <view class="content">
  132. <view v-html="item.onebest"></view>
  133. </view>
  134. <image @click="clickbofang(dialog.backindex,item)" class="play"
  135. src="@/static/images/recordingManagement/play.png"></image>
  136. </view>
  137. </view>
  138. </view>
  139. </block>
  140. </view>
  141. </scroll-view>
  142. </template>
  143. <view class="bottombox">
  144. <!-- 播放块 -->
  145. <template v-if="current == 1">
  146. <zaudio @checkPlaybackRate="checkPlaybackRate" :duration="duration" theme="theme4"></zaudio>
  147. </template>
  148. <template v-if="userlistobj.invalidViolatedCause">
  149. <view class="bottomtips">
  150. 无效原因:{{ userlistobj.invalidViolatedCause }}
  151. </view>
  152. </template>
  153. <view class="botbotmm">
  154. <view class="item" @click="preValid">上一条</view>
  155. <template v-if="isShowMerge">
  156. <template v-if="userlistobj.disposeStatus == 0">
  157. <view class="item" @click="setViolated(1)">确认有效</view>
  158. <view class="item" @tap="showTagValid">确认无效</view>
  159. </template>
  160. <template v-if="userlistobj.disposeStatus == 1 && userlistobj.violatedStatus == 1">
  161. <view class="item" @tap="showTagValid">无效</view>
  162. </template>
  163. <template v-if="userlistobj.disposeStatus == 1 && userlistobj.violatedStatus == 2">
  164. <view class="item" @click="setViolated(1)">确认有效</view>
  165. </template>
  166. </template>
  167. <view class="item" @click="nextValid">下一条</view>
  168. </view>
  169. </view>
  170. <!-- 标记顾问 -->
  171. <u-popup v-model="biojiisshow" mode="center">
  172. <view class="bounced">
  173. <view class="jiajinghuatit">标记为顾问</view>
  174. <view
  175. style="width: 95%;display: flex;flex-wrap: wrap;margin: 0 auto;padding-top: 30rpx;padding-bottom: 30rpx;">
  176. <view class="viewclace" :class="roleindexbiaoji == index ? 'bosdttom' : ''"
  177. @click="biaojixuanze(index)" v-for="(item,index) in tablist.slice(1,tablist.length)"
  178. :key="index">
  179. <view>{{item.name}}</view>
  180. </view>
  181. </view>
  182. <view class="bounced3" style="margin-top: 20rpx;">
  183. <view class="bounced3-1" @tap="unmarktap">取消</view>
  184. <view class="bounced3-2" @tap="Confirmthetag">确认</view>
  185. </view>
  186. </view>
  187. </u-popup>
  188. <!-- 标记无效原因 border-radius="16" -->
  189. <u-popup v-model="tagValidShow" mode="center">
  190. <view class="reason">
  191. <text class="resaon-title">无效原因</text>
  192. <view class="resaon-textbox">
  193. <textarea v-model="reasonSrc" placeholder="请输入无效原因" maxlength="60" />
  194. <text class="lastlength">{{ reasonSrc.length }}/60</text>
  195. </view>
  196. <view class="button">
  197. <text @click="inputDone">完成</text>
  198. </view>
  199. </view>
  200. </u-popup>
  201. </view>
  202. </template>
  203. <script>
  204. var util = require("@/utils/util.js");
  205. var config = require("@/config");
  206. import zaudio from '@/components/uniapp-zaudio/zaudio';
  207. export default {
  208. components: {
  209. zaudio
  210. },
  211. data() {
  212. return {
  213. Aimg: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAACqVBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9/f3////9/f39/f3////////9/f3////////////9/f3////9/f39/f3////9/f3////////9/f3////9/f3////////////////9/f39/f3////////9/f39/f3////9/f39/f3////////9/f39/f3////////9/f39/f39/f3////////////////+/v7+/v7////+/v7////+/v7////+/v7+/v7////////+/v7+/v7////+/v7////+/v7////////////////////////////+/v7////+/v7////+/v7+/v7////////////+/v7////+/v7////+/v7+/v7////////+/v7////+/v7////////+/v7////////+/v7////+/v7+/v7+/v7////////+/v7+/v7////+/v7+/v7////+/v7////+/v7////+/v7////+/v7+/v7////+/v7+/v7////+/v7////+/v7////+/v7+/v7////+/v5jdC9iAAAA4nRSTlMAAQIDBAUGBwgLDA0ODxARExQVFhgbHB4fICEiIyQmJygpKy4wMTIzNDY3ODk6Oz0+P0BBQkRGR0lKTE5PUFFTVFVXWFlcXV9gYWJjZWZnaGlqa2xtbm9wcXJzdHV2d3h6e319foGBgoODh4mKiouMjI2QkZKSk5OUlpeYmZmam5ycnZ+foKGio6SmqKmpq6yur7CwsbGytba5uru8wMDBwcLCw8XGx8jJysrLzM7P0dLT1dXW1tfY2drc3N7f4OHh5Obm5+jp6uvs7vDx8vLz8/T09fX29/f4+fn6+vz8/f7+RVDt+wAAA55JREFUGBntwf9/1HMAB/DX7XYbuXWV1cyMoixfugrRGNXytW33pbVdJ83XkiMLSb4LJd/zZUi0SKT5FmGS77HUVaixnHP2+kt8vt3Zbp/3+7P3XR5+8XziP1E4uiYcrh1bjMNi6NzXumnoeX3eSOSrpHUv+zi0ogJ5qd3JLN1XuJGzwqW0sW4oclT0Im19XIqcuNdQ4D0vcnEDhdYgB2f+SbFZUHbEdkrsLYeqFko9CEVH7qJUohxqLqODO6BmLR18XwAVRQfpZDxUnExHjVBRR0eroGIZHX0AFe10tA8qdtNZIRR00VEPVLxLRzuh4jk62gIVy+joSaiI0tECqPDT0blQ4f6RDpI+KHmYDjZBzWQ6aIaibZSK+6BoOqViUOXqoER8BJSdlqJYFDm4h0LveJAD7+cUiFciJ1U/01aiGjk65zfaSF6EnE3azQEO1iAPFZuZZes45MUT3cM+emLFyNfwK3fQ8k1sFA6L0cElTzx9d1OVC/8bNG/gzY+GQaKk461gCQZr8iMHSNZD4nySv6wYj0EYFv2UhqcgcTsN70ePhtzER3+lJe6BxXP9jTctvrl1yS1jkLaNlkTbBR6IlF3dyT78sHh+oqkSlrJe/uOH1jGw4apem2I/1yLtGRo6kRZiP73t57mQxb+Z2dqRdikNtyLtBWb78Cz05bomyQH+KIGljIYaWNxxDtC72ouMgsdpZzosHhqqYDmFdraOQNpttHUfLKU0TITlKtra6IZpCu3tgMVPQx0sG2ivDqaVFDgOppk0LIbJm6C9DTB1UCAMU4SGZ2GqocAumL6jQBtMMRq2wLScAik3dMV/UWB/EQwrafgSpk6KlEJ3LIXOgGE9DQdgqKDQSdBNoNAiGL6i6SjowhSaAt1UCm2CzpOk6QTonqfQJdBdSKGkD5pKWqZCU7iHQtdB10KxWmjOpqUJmtMp9gB091LsIWiCtCyFZiHFXoZuHcW+hiZGy0vQvE2xT6DbTolKAI/R8hmA4SmKdUG3jxIhAG/QkigAZlAi6QJQTJk2AF1MGwXcRRkfgJGU2V8EHzP8wBeUqQQwllKTcCozpuFESk0AMJNSC3AxM8KYT6lpAFootRGLmLEQ6ynVCCBAqcSQ1cy4f8ghSs0HcMzvlKp+lRmvVFMqNQ6aaIoyd3Yy49vllOmuh+H4WZFIpFnTpJmjadTM1oQ1oVAgFNQENA0N9f01BIKh8OzGOU3NkbmXzwuV41/wNztgHKhu7WKTAAAAAElFTkSuQmCC",
  214. list: [{
  215. name: '违禁话术'
  216. }, {
  217. name: '音频识别'
  218. }],
  219. current: 0, // tab下表
  220. tablist: [], // 顾问标记列表
  221. roleindex: 0, // 选中顾问下标
  222. luyinList: [], // 录音文件
  223. newluyinList: [],
  224. dialogList: [], // 录音识别列表渲染数据
  225. permissions: {}, // 权限菜单
  226. biojiisshow: false, // 标记顾问弹窗
  227. textindex: 0, //下拉 转写文件下标
  228. toptextindex: 0, //上拉 转写文件下标
  229. dshfkjsdkksodofydwfkhwdfkjh: 0, // 顾问的id之类的
  230. status: 0, // 状态(不明白是什么状态)
  231. speaker: '', // 角色身份
  232. customerId: '', // 楼盘id吧(猜)
  233. infos: {}, // 音频内容
  234. stateisshow: '', //
  235. itemobj: {}, // 本地缓存的音频信息
  236. userlistobj: {}, // 获取到的顾问信息
  237. csdFileindex: 0, // 当前使用录音转写的下标
  238. // 录音信息
  239. recordPath: "", // 录音地址
  240. playNow: 0, // 当前播放时间
  241. audioType: false, // 音频是否自动播放状态
  242. scrollId: "", // 当前播放滚动到的位置
  243. tagValidShow: false, // 标记弹窗
  244. reasonSrc: '', // 标记无效的原因
  245. findTabooWordsList: [], // 违禁词列表
  246. nextPageObj: JSON.parse(uni.getStorageSync('nextPageObj')), // 当前页面筛选内容
  247. isMerge: 0, // 默认合并
  248. isSw: false,
  249. ACTION: Symbol('zaudio'), // 唯一值区分每个页面的方法
  250. isPageHide: false, // 是否息屏
  251. duration: '', // 总时长
  252. allTextList: [], // 所有话术列表
  253. isFirstWords: 0, // 第一个违禁词出现的时间
  254. nowPlaying: 0, // 当前播放位置
  255. stepPosition: 0, // 需要跳转的播放位置
  256. }
  257. },
  258. computed: {
  259. conversionTiame() {
  260. return (e) => {
  261. return this.getTime(e);
  262. }
  263. },
  264. // 是否为合并录音
  265. isShowMerge() {
  266. return this.isMerge == 0 ? true : false
  267. }
  268. },
  269. onLoad(option) {
  270. this.status = option.status;
  271. this.customerId = option.customerId;
  272. this.addLookingCount(option.customerId)
  273. this.stateisshow = option.stateisshow;
  274. this.itemobj = uni.getStorageSync('searchobj');
  275. if (option.isMerge) this.isMerge = option.isMerge
  276. this.$zaudio.autoPlay = true
  277. //注意: 不同的回调方法, 相同的业务函数方法名, 不会相互影响;
  278. this.$zaudio.on('stop', this.ACTION, () => {
  279. console.log('我是强制暂停或关闭小程序音频浮窗触发的')
  280. })
  281. this.$zaudio.on('seek', this.ACTION, (time) => {
  282. this.sliderChangeComplate(this.TIMEEVENT(time))
  283. })
  284. this.$zaudio.on('playing', this.ACTION, (obj) => {
  285. this.duration = obj.duration
  286. this.nowPlaying = obj.current_value
  287. this.TimeUpdate(this.TIMEEVENT(obj.current))
  288. })
  289. this.$zaudio.on('error', this.ACTION, e => {
  290. console.log(e, '加载失败')
  291. })
  292. this.$zaudio.on('ended', this.ACTION, e => {
  293. this.$zaudio.stop()
  294. this.init({
  295. bg: 0,
  296. customerId: this.customerId
  297. })
  298. })
  299. },
  300. onShow() {
  301. this.scrollId = ''
  302. //实时渲染当前的播放状态
  303. if (this.current == 1) {
  304. this.$zaudio.syncRender()
  305. }
  306. this.permissions = uni.getStorageSync('weapp_session_Menu_data') // 权限
  307. this.roleindex = 0;
  308. if (this.stateisshow == 2) {
  309. this.infos = this.itemobj;
  310. } else {
  311. var pages = getCurrentPages();
  312. var currPage = pages[pages.length - 1]; //当前页面
  313. this.infos = currPage.data.info;
  314. }
  315. !this.isPageHide && this.init(this.infos);
  316. this.gituserlist()
  317. this.findTabooWords()
  318. },
  319. onHide() {
  320. this.isPageHide = true
  321. },
  322. onUnload() {
  323. //卸载不需要的业务和获取播放状态的业务,提高页面性能
  324. this.$zaudio.off('seek', this.ACTION);
  325. this.$zaudio.off('stop', this.ACTION);
  326. this.$zaudio.off('playing', this.ACTION);
  327. // this.$zaudio.setAudio([])
  328. },
  329. methods: {
  330. // 对话加命中标签
  331. dealTypes(type) {
  332. if (type) {
  333. let tem = type.split(',')
  334. return tem
  335. } else {
  336. return []
  337. }
  338. },
  339. // 对话加命中标签
  340. dealword(type) {
  341. if (type) {
  342. let a = type.split('-')
  343. let rest = type.substring(2).split('-').join(',')
  344. let arr = [a[0], rest]
  345. return arr
  346. } else {
  347. return []
  348. }
  349. },
  350. // 获取违禁词
  351. findTabooWords() {
  352. this.$u.get('/customer/findTabooWords', {
  353. customerId: this.customerId
  354. }).then(res => {
  355. let arr = []
  356. res.map(item => {
  357. if (item.transferContent) {
  358. item.transferContents = JSON.parse(item.transferContent)
  359. arr.push(item.transferContents)
  360. }
  361. })
  362. this.findTabooWordsList = arr
  363. this.isFirstWords = arr[0].bg
  364. console.log(this.findTabooWordsList, 'findTabooWordsList')
  365. })
  366. },
  367. // 确认无效标记 setViolatedStatus = 2
  368. inputDone() {
  369. if (!this.reasonSrc) {
  370. uni.showToast({
  371. title: '请输入标记无效的原因',
  372. icon: 'none',
  373. duration: 2000
  374. })
  375. return
  376. }
  377. this.setViolated(2)
  378. },
  379. // 下一条
  380. nextValid() {
  381. console.log(this.$zaudio)
  382. if (this.nextPageObj.pageSize < this.nextPageObj.num) {
  383. this.$zaudio.stop()
  384. this.nextPageObj.pageSize++
  385. this.keyWordsMatching(this.nextPageObj)
  386. } else {
  387. uni.showToast({
  388. title: '已经是最后一条了~',
  389. icon: 'none'
  390. })
  391. }
  392. },
  393. // 上一条
  394. preValid() {
  395. if (this.nextPageObj.pageSize == 1) {
  396. uni.showToast({
  397. title: '没有更早的了~'
  398. })
  399. } else {
  400. this.$zaudio.stop()
  401. this.nextPageObj.pageSize--
  402. this.keyWordsMatching(this.nextPageObj)
  403. }
  404. },
  405. // 获取违禁话术详情
  406. keyWordsMatching(params) {
  407. this.$u.post('/customer/findbynum', params).then(res => {
  408. this.customerId = res.results[0].id;
  409. this.current = 0
  410. uni.setStorageSync('nextPageObj', JSON.stringify(this.nextPageObj))
  411. this.resetAudioParams()
  412. this.prohibitedMatch()
  413. }).catch(e => {
  414. this.nextPageObj = JSON.parse(uni.getStorageSync('nextPageObj')), // 当前页面筛选内容
  415. uni.showToast({
  416. title: e.message,
  417. icon: 'none',
  418. duration: 2000
  419. })
  420. })
  421. },
  422. // 违禁词播放位置
  423. prohibitedMatch() {
  424. this.$u.post('/customer/prohibitedMatch', {
  425. customerId: this.customerId
  426. }).then(res => {
  427. let newweijin = res[0];
  428. newweijin.transferContent = JSON.parse(newweijin.transferContent)
  429. var item = {
  430. bg: newweijin.transferContent.bg,
  431. customerId: newweijin.corpusId,
  432. }
  433. // 获取是否有转写的音频
  434. this.$u.post("/corpus/findByPage", {
  435. pageNum: 1,
  436. pageSize: 100,
  437. query: {
  438. customerId: this.customerId,
  439. }
  440. }).then(res => {
  441. if (res == null) {
  442. uni.showToast({
  443. icon: "none",
  444. title: "暂无音频"
  445. })
  446. return
  447. } else {
  448. let newobj = res[0];
  449. this.isMerge = res[0].merge
  450. if (res[0].merge == 0) {
  451. this.infos = item
  452. this.itemobj = item
  453. this.recordPath = res[0].recordPath
  454. uni.setStorageSync("searchobj", item); //写入缓存
  455. console.log('在这里调用的', item)
  456. this.roleindex = 0;
  457. this.gituserlist()
  458. this.findTabooWords()
  459. // this.zyAudio()
  460. } else {
  461. uni.showToast({
  462. icon: "none",
  463. title: "暂无音频"
  464. })
  465. }
  466. }
  467. })
  468. })
  469. },
  470. // 设置违禁状态
  471. setViolated(status) {
  472. let params = {
  473. customerId: this.customerId,
  474. violatedStatus: status,
  475. invalidViolatedCause: this.reasonSrc,
  476. }
  477. this.$u.post('/customer/setViolatedStatus', params).then(res => {
  478. this.tagValidShow = false
  479. uni.showToast({
  480. title: '标记成功',
  481. duration: 2000
  482. });
  483. this.gituserlist()
  484. setTimeout(() => {
  485. this.reasonSrc = ''
  486. }, 2000)
  487. }).catch(e => {
  488. this.tagValidShow = false
  489. uni.showToast({
  490. title: e.message,
  491. duration: 2000
  492. });
  493. })
  494. },
  495. // 展示确认无效原因输入框
  496. showTagValid() {
  497. this.tagValidShow = true
  498. },
  499. //获取用户信息
  500. gituserlist() {
  501. this.$u.get("/matchKeywords/personalReceptionRecord", {
  502. customerId: this.customerId
  503. }).then(res => {
  504. res.endTime1 = res.endTime.substring(0, 19);
  505. this.userlistobj = res;
  506. })
  507. },
  508. //标记顾问
  509. tagtap() {
  510. this.biojiisshow = !this.biojiisshow;
  511. },
  512. //取消标记
  513. unmarktap() {
  514. this.roleindexbiaoji = this.dshfkjsdkksodofydwfkhwdfkjh;
  515. },
  516. //确认标记
  517. Confirmthetag() {
  518. var num = this.roleindexbiaoji + 1;
  519. let params = {
  520. id: this.luyinList[this.csdFileindex].id,
  521. speaker: num,
  522. customerId: this.customerId
  523. }
  524. this.$u.get(config.service.markConsultant, params).then((data) => {
  525. this.biojiisshow = false;
  526. this.biaojiyuyi()
  527. this.fenjiaoseunfo()
  528. uni.showToast({
  529. title: '标记成功',
  530. duration: 2000
  531. });
  532. })
  533. },
  534. // 切换角色展示
  535. tapspagek(index) {
  536. this.roleindex = index;
  537. this.newluyinList = [];
  538. this.fenjiaoseunfo()
  539. this.$forceUpdate()
  540. },
  541. // 初始化音频以及页面数据
  542. init(info, type) {
  543. this.sliderMax = 0; //进度条最大值
  544. this.timeStr = "00:00"; //总的时间
  545. const parames = {
  546. pageNum: 1,
  547. pageSize: 100,
  548. query: {
  549. customerId: this.customerId
  550. }
  551. }
  552. this.$u.post("/corpus/findByPage", parames).then(res => {
  553. if (res && res.length) {
  554. let alltime = 1 + res[0].recordDuration;
  555. this.calibration = res[0].calibration;
  556. if (this.calibration == 0) {
  557. this.kehuyixiangcenterindex = 0;
  558. } else {
  559. this.kehuyixiangcenterindex = 1;
  560. }
  561. if (info.bg != 0) {
  562. this.luyinList = res;
  563. this.recordPath = res[0].recordPath
  564. this.sliderMax = this.getTime(res[0].recordDuration)
  565. this.timeStr = this.getTime(res[0].recordDuration)
  566. this.date = res[0].receptionTime;
  567. this.getCorpusAnalysis(info, type);
  568. } else {
  569. this.luyinList = res;
  570. this.recordPath = res[0].recordPath
  571. this.sliderMax = this.getTime(res[0].recordDuration)
  572. this.timeStr = this.getTime(res[0].recordDuration)
  573. this.date = res[0].receptionTime;
  574. this.getCorpusAnalysis(info, type);
  575. }
  576. }
  577. })
  578. },
  579. // 重置进度条
  580. resetAudioParams() {
  581. this.scrollId = "" // 当前播放滚动到的位置
  582. },
  583. // 获取转义后的对话结果
  584. getCorpusAnalysis(info, type) {
  585. this.dialogList = [];
  586. this.newluyinList = []
  587. uni.request({
  588. url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id +
  589. "&bg=" + info.bg + "&speaker=" + this.roleindex + '&num=50', //仅为示例,并非真实接口地址。
  590. method: "GET",
  591. header: {
  592. 'content-type': 'application/json',
  593. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  594. },
  595. success: (data) => {
  596. this.tablist = [];
  597. this.roleindexbiaoji = 0;
  598. let jsonInfo = JSON.parse(data.data.data.audioContent);
  599. for (var i = 0; i <= data.data.data.speakerNum; i++) {
  600. if (i === 0) {
  601. this.tablist.push({
  602. name: '全部'
  603. })
  604. } else {
  605. this.tablist.push({
  606. name: String.fromCharCode(i + 64)
  607. })
  608. }
  609. }
  610. if (data.data.data.speaker == null) {
  611. this.dshfkjsdkksodofydwfkhwdfkjh = 0;
  612. } else {
  613. if (data.data.data.viewNameFlag == 1) {
  614. this.tablist[data.data.data.speaker].name = this.tablist[data.data.data
  615. .speaker]
  616. .name;
  617. } else {
  618. this.tablist[data.data.data.speaker].name = this.tablist[data.data.data
  619. .speaker]
  620. .name + "顾问";
  621. }
  622. this.roleindexbiaoji = data.data.data.speaker - 1;
  623. this.dshfkjsdkksodofydwfkhwdfkjh = data.data.data.speaker - 1;
  624. }
  625. if (data.data.data.viewNameFlag == 1) {
  626. let p = [{
  627. name: '顾问'
  628. }]
  629. this.tablist = [...this.tablist, ...p]
  630. this.isSw = true
  631. } else {
  632. this.isSw = false
  633. }
  634. this.speaker = data.data.data.speaker;
  635. //上拉标记点
  636. this.textindex = data.data.data.index;
  637. //下拉标记点
  638. this.toptextindex = data.data.data.index;
  639. jsonInfo.forEach(item => {
  640. item.message = JSON.parse(item.onebest)
  641. item.backindex = this.csdFileindex;
  642. if (info.onebest) {
  643. item.message.forEach(che => {
  644. if (che.onebest == info.onebest) {
  645. che.onebest =
  646. `<font style='color: red'>${che.onebest}</font>`;
  647. }
  648. })
  649. }
  650. })
  651. this.newluyinList = jsonInfo;
  652. this.dialogList.push(jsonInfo[0]);
  653. console.log(this.dialogList, '12312321')
  654. if (type == 'show') {
  655. var itc = parseInt(info.bg / 1000)
  656. this.adasdasdasd(itc)
  657. }
  658. this.$forceUpdate()
  659. }
  660. })
  661. },
  662. //下一页
  663. ltolower() {
  664. var lengthcz = this.newluyinList.length - 1;
  665. if (this.textindex >= lengthcz) {
  666. uni.showToast({
  667. title: '到底了',
  668. duration: 2000
  669. });
  670. return
  671. } else {
  672. this.textindex = this.textindex + 1;
  673. this.newluyinList[this.textindex].message.forEach(item => {
  674. this.dialogList[0].message.push(item)
  675. })
  676. }
  677. },
  678. //上一页
  679. rolltoupper() {
  680. if (this.toptextindex == 0) {
  681. return
  682. } else {
  683. if (this.dialogList[0] == undefined) {
  684. return
  685. } else {
  686. this.toptextindex = this.toptextindex - 1;
  687. let reverselist = this.newluyinList[this.toptextindex].message;
  688. let runlist = reverselist.reverse();
  689. runlist.forEach(item => {
  690. this.dialogList[0].message.unshift(item)
  691. })
  692. }
  693. }
  694. },
  695. //搜索跳转
  696. adasdasdasd(e) {
  697. this.stepPlay(e)
  698. },
  699. //分角色标记刷新
  700. fenjiaoseunfo() {
  701. var bgcd = this.playNow * 1000;
  702. this.newluyinList = [];
  703. this.dialogList = [];
  704. let voFlagValue;
  705. if (this.roleindex == 0) {
  706. voFlagValue = 0
  707. } else {
  708. voFlagValue = 1
  709. }
  710. let tempRoleIndex;
  711. if (this.isSw) {
  712. if (this.roleindex == this.tablist.length - 1) {
  713. tempRoleIndex = 0
  714. } else {
  715. tempRoleIndex = this.roleindex
  716. }
  717. } else {
  718. tempRoleIndex = this.roleindex
  719. }
  720. uni.request({
  721. url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id +
  722. "&bg=" + bgcd + "&speaker=" + tempRoleIndex + "&voFlag=" + voFlagValue +
  723. '&num=50', //仅为示例,并非真实接口地址。
  724. method: "GET",
  725. header: {
  726. 'content-type': 'application/json',
  727. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  728. },
  729. success: (data) => {
  730. this.tablist = [];
  731. let jsonInfo = JSON.parse(data.data.data.audioContent);
  732. for (var i = 0; i <= data.data.data.speakerNum; i++) {
  733. if (i === 0) {
  734. this.tablist.push({
  735. name: '全部'
  736. })
  737. } else {
  738. this.tablist.push({
  739. name: String.fromCharCode(i + 64)
  740. })
  741. }
  742. }
  743. if (data.data.data.speaker == null) {
  744. this.roleindexbiaoji = 0;
  745. this.dshfkjsdkksodofydwfkhwdfkjh = 0;
  746. } else {
  747. if (data.data.data.viewNameFlag == 1) {
  748. this.tablist[data.data.data.speaker].name = this.tablist[data.data.data
  749. .speaker]
  750. .name;
  751. } else {
  752. this.tablist[data.data.data.speaker].name = this.tablist[data.data.data
  753. .speaker]
  754. .name + "顾问";
  755. }
  756. this.roleindexbiaoji = data.data.data.speaker - 1;
  757. this.dshfkjsdkksodofydwfkhwdfkjh = data.data.data.speaker - 1;
  758. }
  759. if (data.data.data.viewNameFlag == 1) {
  760. let p = [{
  761. name: '顾问'
  762. }]
  763. this.tablist = [...this.tablist, ...p]
  764. }
  765. if (this.roleindex > this.tablist.length - 1) {
  766. this.roleindex = this.tablist.length - 1
  767. this.fenjiaoseunfo()
  768. }
  769. this.speaker = data.data.data.speaker;
  770. //上拉标记点
  771. this.textindex = data.data.data.index;
  772. //下拉标记点
  773. this.toptextindex = data.data.data.index;
  774. jsonInfo.forEach(item => {
  775. item.message = JSON.parse(item.onebest)
  776. item.backindex = this.csdFileindex
  777. })
  778. console.log(jsonInfo)
  779. this.newluyinList = jsonInfo;
  780. if (this.textindex == null) {
  781. return
  782. } else {
  783. this.dialogList.push(jsonInfo[this.textindex]);
  784. }
  785. }
  786. })
  787. },
  788. // 选中下标
  789. change(index) {
  790. this.current = index;
  791. this.scrollId = ''
  792. if (index == 1) {
  793. this.zyAudio()
  794. }
  795. },
  796. //长按点击播放
  797. clickbofang(dialog, item, type) {
  798. if (type == 'show') {
  799. this.isFirstWords = 0 // 重置为零
  800. this.current = 1
  801. this.infos = item
  802. this.audioType = true
  803. this.init(this.infos, type)
  804. let data = [{
  805. src: this.recordPath,
  806. title: '录音音频',
  807. singer: '',
  808. coverImgUrl: ''
  809. }]
  810. this.$zaudio.setAudio(data)
  811. //渲染第一首音频
  812. this.$zaudio.setRender(0)
  813. setTimeout(() => {
  814. this.adasdasdasd(parseInt(item.bg / 1000))
  815. }, 1500)
  816. return
  817. } else {
  818. this.audioType = false
  819. }
  820. this.dialogList.forEach(res => {
  821. res.message.forEach(asd => {
  822. asd.isshow = false;
  823. })
  824. })
  825. this.$forceUpdate()
  826. let platetime = item.bg;
  827. let newtime = item.bg / 1000;
  828. console.log(newtime, 'newTime')
  829. this.dialogList = []
  830. uni.request({
  831. url: config.service.fastForward + '?corpusId=' + this.luyinList[this.csdFileindex].id +
  832. "&bg=" + platetime, //仅为示例,并非真实接口地址。
  833. method: "GET",
  834. header: {
  835. 'content-type': 'application/json',
  836. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  837. },
  838. success: (data) => {
  839. this.textindex = data.data.data.index;
  840. this.toptextindex = data.data.data.index;
  841. this.dialogList.push(this.newluyinList[data.data.data.index])
  842. const currTimeStr = this.formatTime(newtime)
  843. console.log(currTimeStr, 'currTimeStr')
  844. this.stepPlay(newtime);
  845. }
  846. })
  847. },
  848. TimeUpdate(currentTime) {
  849. this.playNow = Number(currentTime)
  850. if (this.dialogList.length == 0) {
  851. return
  852. } else {
  853. const message = this.dialogList[0].message;
  854. if (!message) return
  855. for (let i = 0; i < message.length; i++) {
  856. if (Math.floor(message[i].bg / 1000) <= this.playNow && this.playNow < Math.floor(message[i].ed /
  857. 1000)) {
  858. console.log(message[i].bg, '我是active', message[i].ed, '我是currentTime', this.playNow)
  859. console.log(message[i].onebest)
  860. this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg;
  861. break;
  862. }
  863. if (i < message.length - 1 && Math.floor(message[i].ed / 1000) <= this.playNow && this.playNow <=
  864. Math.floor(message[i + 1].bg / 1000)) {
  865. this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg;
  866. break;
  867. }
  868. }
  869. }
  870. this.$forceUpdate()
  871. },
  872. //音频前进回退
  873. sliderChangeComplate(currentTime) {
  874. this.dialogList = []
  875. for (let i = 0; i < this.newluyinList.length; i++) {
  876. let message = this.newluyinList[i].message
  877. if (!message) return
  878. if (Math.floor(this.newluyinList[i].bg / 1000) <= currentTime && currentTime <= Math.floor(this
  879. .newluyinList[i].ed / 1000)) {
  880. for (let j = 0; j < message.length; j++) {
  881. let item = message[j]
  882. if (Math.floor(item.bg / 1000) <= currentTime && currentTime <= Math.floor(item.ed / 1000)) {
  883. this.scrollId = "dialog" + this.csdFileindex + "text" + item.bg;
  884. break;
  885. }
  886. if (j < message.length - 1 && Math.floor(item.ed / 1000) <= currentTime && currentTime <= Math
  887. .floor(item.bg / 1000)) {
  888. this.scrollId = "dialog" + this.csdFileindex + "text" + item.bg;
  889. break;
  890. }
  891. }
  892. this.textindex = i;
  893. this.toptextindex = i;
  894. this.dialogList.push(this.newluyinList[i])
  895. }
  896. }
  897. },
  898. // 格式化时间
  899. getTime(time) {
  900. return util.formatSecond(time)
  901. },
  902. // 格式化时间
  903. formatTime(num) {
  904. //格式化时间格式
  905. num = num.toFixed(0);
  906. let second = num % 60;
  907. if (second < 10) second = '0' + second;
  908. let min = Math.floor(num / 60);
  909. if (min < 10) min = '0' + min;
  910. return min + ":" + second;
  911. },
  912. // 迅速切换音频源并切换回来
  913. checkPlaybackRate() {
  914. this.stepPosition = this.nowPlaying
  915. //
  916. let data = [{
  917. src: 'https://static.quhouse.com/record/prop/2022-12-13/1670905992910-00066.mp3',
  918. title: '录音音频',
  919. singer: '',
  920. coverImgUrl: ''
  921. }]
  922. this.$zaudio.setAudio(data)
  923. //渲染第一首音频
  924. this.$zaudio.setRender(0)
  925. if (!this.refresh) {
  926. setTimeout(() => {
  927. this.$zaudio.operate()
  928. }, 150)
  929. }
  930. setTimeout(() => {
  931. this.zyAudio()
  932. }, 500)
  933. },
  934. //录音实例
  935. zyAudio(times) {
  936. let data = [{
  937. src: this.recordPath,
  938. title: '录音音频',
  939. singer: '',
  940. coverImgUrl: ''
  941. }]
  942. if (this.current == 1) {
  943. this.$zaudio.setAudio(data)
  944. //渲染第一首音频
  945. this.$zaudio.setRender(0)
  946. console.log(this.$zaudio)
  947. if (this.isFirstWords != 0) {
  948. setTimeout(() => {
  949. this.stepPlay(Math.floor(this.isFirstWords/1000))
  950. this.isFirstWords = 0
  951. }, 2000)
  952. }
  953. setTimeout(() => {
  954. this.$zaudio.operate()
  955. }, 150)
  956. }
  957. if (this.stepPosition != 0) {
  958. setTimeout(() => {
  959. this.stepPlay(this.stepPosition)
  960. }, 1500)
  961. }
  962. },
  963. // 跳转指定位置播放
  964. stepPlay(t) {
  965. this.$zaudio.seek(t)
  966. if (this.$zaudio.paused) {
  967. this.$zaudio.operate()
  968. }
  969. }
  970. },
  971. filters: {
  972. // violatedStatus
  973. ViolatedStatus(status) {
  974. let str = '';
  975. switch (status) {
  976. case 0:
  977. str = '待处理'
  978. break;
  979. case 1:
  980. str = '有效违禁'
  981. break;
  982. case 2:
  983. str = '无效违禁'
  984. break;
  985. }
  986. return str
  987. },
  988. // 处理状态
  989. DisposeStatus(status) {
  990. let str = '';
  991. switch (status) {
  992. case 0:
  993. str = '待处理'
  994. break;
  995. case 1:
  996. str = '有效违禁'
  997. break;
  998. case 2:
  999. str = '无效违禁'
  1000. break;
  1001. }
  1002. return str
  1003. },
  1004. }
  1005. }
  1006. </script>
  1007. <style lang="scss" scoped>
  1008. .details {
  1009. width: 100vw;
  1010. height: calc(100vh - var(--window-top));
  1011. display: flex;
  1012. flex-direction: column;
  1013. .header {
  1014. padding: 19rpx 30rpx 0;
  1015. width: 100%;
  1016. height: 210rpx;
  1017. .h-box {
  1018. width: 100%;
  1019. height: 100%;
  1020. background: #fff;
  1021. border-radius: 16rpx;
  1022. .h-b-top {
  1023. display: flex;
  1024. align-items: center;
  1025. justify-content: space-between;
  1026. .name {
  1027. font-size: 30rpx;
  1028. font-weight: bold;
  1029. }
  1030. .status {
  1031. display: flex;
  1032. align-items: center;
  1033. .pointer {
  1034. margin: 0 .5em;
  1035. width: 12rpx;
  1036. height: 12rpx;
  1037. border-radius: 50%;
  1038. background: #2671E2;
  1039. }
  1040. }
  1041. }
  1042. .h-b-btm {
  1043. display: flex;
  1044. justify-content: space-between;
  1045. .item {
  1046. flex-shrink: 0;
  1047. display: flex;
  1048. align-items: center;
  1049. &.hit {
  1050. color: #E7483C;
  1051. font-size: bold;
  1052. }
  1053. .item-imgs {
  1054. margin-right: .5em;
  1055. width: 32rpx;
  1056. height: 32rpx;
  1057. }
  1058. }
  1059. }
  1060. }
  1061. }
  1062. .audio {
  1063. .headboxbott {
  1064. width: 100%;
  1065. height: 88rpx;
  1066. display: flex;
  1067. align-items: center;
  1068. .headovfu {
  1069. flex: 1;
  1070. height: 88rpx;
  1071. overflow: hidden;
  1072. }
  1073. .headpade {
  1074. width: 160rpx;
  1075. height: 60rpx;
  1076. display: flex;
  1077. justify-content: center;
  1078. align-items: center;
  1079. border-left: 1px solid #D6D6D6;
  1080. .biaoji {
  1081. min-width: 120rpx;
  1082. height: 48rpx;
  1083. background: #E6625B;
  1084. border-radius: 24rpx;
  1085. text-align: center;
  1086. line-height: 48rpx;
  1087. color: #FFFFFF;
  1088. font-size: 26rpx;
  1089. }
  1090. }
  1091. }
  1092. }
  1093. .scroll-Y {
  1094. flex: 1;
  1095. overflow: auto;
  1096. font-size: 36upx;
  1097. color: #999999;
  1098. background: #FFFFFF;
  1099. overflow-y: scroll;
  1100. width: 100%;
  1101. .dialog-block {
  1102. margin: 20rpx 0;
  1103. border-bottom: 1px solid #ccc;
  1104. .fileName {
  1105. text-align: center;
  1106. margin: 10rpx auto;
  1107. width: 115rpx;
  1108. height: 42rpx;
  1109. line-height: 42rpx;
  1110. background: #EFEFEF;
  1111. border-radius: 4rpx;
  1112. font-size: 20rpx;
  1113. font-weight: 400;
  1114. color: #333333;
  1115. }
  1116. }
  1117. // 违禁正则标签
  1118. .newmark {
  1119. margin: 30rpx 0 10rpx 120rpx;
  1120. .mark-item {
  1121. display: flex;
  1122. flex-wrap: wrap;
  1123. margin-bottom: 12rpx;
  1124. .markicon {
  1125. width: 30rpx;
  1126. height: 30rpx;
  1127. margin-right: 12rpx;
  1128. }
  1129. .marktext {
  1130. font-size: 24rpx;
  1131. font-family: PingFangSC-Regular, PingFang SC;
  1132. font-weight: 400;
  1133. color: #3E50E8;
  1134. min-height: 30rpx;
  1135. line-height: 30rpx;
  1136. max-width: 420rpx;
  1137. text-align: left;
  1138. word-break: break-all;
  1139. }
  1140. }
  1141. }
  1142. .text {
  1143. margin: 0 30upx;
  1144. display: flex;
  1145. align-items: center;
  1146. .avatar {
  1147. margin-right: 24rpx;
  1148. width: 64upx;
  1149. height: 64upx;
  1150. line-height: 64upx;
  1151. text-align: center;
  1152. font-size: 36rpx;
  1153. border-radius: 50%;
  1154. background: #F2F2F2;
  1155. color: #008EF2;
  1156. image {
  1157. width: 40upx;
  1158. }
  1159. }
  1160. .content {
  1161. margin-left: 30upx;
  1162. line-height: 60rpx;
  1163. text-align: left;
  1164. padding: 0 5px;
  1165. background: #2BC805;
  1166. border-radius: 8upx;
  1167. max-width: 442rpx;
  1168. color: #FFFFFF;
  1169. position: relative;
  1170. .tankuangcss {
  1171. position: absolute;
  1172. top: -140rpx;
  1173. left: -120rpx;
  1174. width: 308rpx;
  1175. height: 130rpx;
  1176. background-color: #333333;
  1177. font-size: 24rpx;
  1178. color: #FFFFFF;
  1179. padding-top: 4rpx;
  1180. padding-bottom: 4rpx;
  1181. display: flex;
  1182. flex-wrap: wrap;
  1183. border-radius: 15rpx;
  1184. z-index: 1000;
  1185. }
  1186. .bottoms {
  1187. top: unset;
  1188. bottom: -140rpx;
  1189. }
  1190. }
  1191. .contentInfo {
  1192. .info {
  1193. color: #ccc;
  1194. font-size: 18rpx;
  1195. font-size: 30rpx;
  1196. .AudioUserName {
  1197. margin-right: 20rpx;
  1198. }
  1199. }
  1200. }
  1201. .contentMain {
  1202. display: flex;
  1203. .content {
  1204. margin-left: 0;
  1205. margin-right: 30upx;
  1206. // margin: 0 30upx;
  1207. }
  1208. .play {
  1209. width: 50rpx;
  1210. height: 50rpx;
  1211. margin-right: 20rpx;
  1212. }
  1213. }
  1214. &.active {
  1215. .content {
  1216. color: #FF7538 !important;
  1217. position: relative;
  1218. }
  1219. }
  1220. &.reverse {
  1221. flex-direction: row-reverse;
  1222. text-align: right;
  1223. .avatar {
  1224. margin-left: 24rpx;
  1225. }
  1226. .content {
  1227. margin-left: 0;
  1228. margin-right: 30upx;
  1229. background: #F6F6F6;
  1230. color: #999999;
  1231. }
  1232. .contentInfo {
  1233. .info {
  1234. color: #ccc;
  1235. font-size: 18rpx;
  1236. font-size: 30rpx;
  1237. padding: 0 28rpx;
  1238. display: flex;
  1239. flex-direction: row-reverse;
  1240. .AudioUserName {
  1241. margin-left: 10rpx;
  1242. }
  1243. }
  1244. .contentMain {
  1245. display: flex;
  1246. flex-direction: row-reverse;
  1247. align-items: center;
  1248. .content {
  1249. margin-left: 0;
  1250. margin-right: 30upx;
  1251. }
  1252. .play {
  1253. width: 50rpx;
  1254. height: 50rpx;
  1255. margin-right: 20rpx;
  1256. }
  1257. }
  1258. }
  1259. }
  1260. }
  1261. }
  1262. .bottombox {
  1263. width: 100%;
  1264. min-height: 88rpx;
  1265. .bottomhead {
  1266. width: 100%;
  1267. height: 81rpx;
  1268. border-top: 1px solid #E0E0E0;
  1269. border-bottom: 1px solid #E0E0E0;
  1270. display: flex;
  1271. justify-content: space-between;
  1272. align-items: center;
  1273. .audio-slider {
  1274. width: 87%;
  1275. display: flex;
  1276. justify-content: space-between;
  1277. align-items: center;
  1278. padding-right: 30rpx;
  1279. }
  1280. .audio-slider .slider {
  1281. width: 100%;
  1282. padding: 0px 15rpx;
  1283. box-sizing: border-box;
  1284. }
  1285. .audio-time {
  1286. width: 110rpx;
  1287. text-align: right;
  1288. font-size: 26rpx;
  1289. line-height: 28rpx;
  1290. color: #70798D;
  1291. display: flex;
  1292. justify-content: space-between;
  1293. }
  1294. .audio-play {
  1295. width: 48rpx;
  1296. height: 48rpx;
  1297. flex-shrink: 0;
  1298. }
  1299. .audio-play .image {
  1300. width: 100%;
  1301. height: 100%;
  1302. margin-left: 30rpx;
  1303. }
  1304. }
  1305. .bottomtips {
  1306. padding: 0 32rpx;
  1307. min-height: 70rpx;
  1308. display: flex;
  1309. align-items: center;
  1310. background: #FDEBC6;
  1311. }
  1312. .botbotmm {
  1313. width: 100%;
  1314. height: 88rpx;
  1315. display: flex;
  1316. align-items: center;
  1317. .item {
  1318. flex: 1;
  1319. height: 100%;
  1320. display: flex;
  1321. align-items: center;
  1322. justify-content: center;
  1323. border: 1rpx solid #E0E0E0;
  1324. border-top: none;
  1325. }
  1326. }
  1327. }
  1328. .bounced {
  1329. width: 570rpx;
  1330. background: #FFFFFF;
  1331. z-index: 1000;
  1332. border-radius: 10rpx;
  1333. position: fixed;
  1334. left: 50%;
  1335. top: 50%;
  1336. transform: translate(-50%, -50%);
  1337. .headpade {
  1338. margin-top: 10rpx;
  1339. padding: 8rpx 8rpx 8rpx 8rpx;
  1340. background: #108ee9;
  1341. color: #fff;
  1342. border-radius: 16rpx;
  1343. }
  1344. /* 50%为自身尺寸的一半 */
  1345. .jiajinghuatit {
  1346. width: 100%;
  1347. height: 68rpx;
  1348. font-size: 30rpx;
  1349. text-align: center;
  1350. line-height: 68rpx;
  1351. }
  1352. .jiajinghuaview {
  1353. padding: 18rpx 18rpx 18rpx 18rpx;
  1354. display: flex;
  1355. flex-wrap: wrap;
  1356. .jiajinghuaview1 {
  1357. padding: 8rpx 8rpx 8rpx 8rpx;
  1358. font-size: 26rpx;
  1359. border-radius: 12rpx;
  1360. border: 1px solid #979797;
  1361. margin-left: 8rpx;
  1362. }
  1363. .jighuaview2 {
  1364. padding: 8rpx 18rpx 8rpx 18rpx;
  1365. font-size: 26rpx;
  1366. border-radius: 12rpx;
  1367. border: 1px solid #979797;
  1368. margin-left: 20rpx;
  1369. margin-top: 10rpx;
  1370. display: flex;
  1371. .view1-text {
  1372. text-align: center;
  1373. }
  1374. .view1-img {
  1375. width: 50rpx;
  1376. }
  1377. }
  1378. }
  1379. .bounced3 {
  1380. height: 100rpx;
  1381. width: 100%;
  1382. margin-top: 40rpx;
  1383. border-top: 1px solid #dddddd;
  1384. display: flex;
  1385. }
  1386. .bounced3-1 {
  1387. width: 50%;
  1388. height: 100%;
  1389. text-align: center;
  1390. line-height: 100rpx;
  1391. border-right: 1px solid #dddddd;
  1392. font-size: 36rpx;
  1393. color: #999999;
  1394. }
  1395. .bounced3-2 {
  1396. width: 50%;
  1397. height: 100%;
  1398. text-align: center;
  1399. line-height: 100rpx;
  1400. font-size: 36rpx;
  1401. color: #108ee9;
  1402. }
  1403. }
  1404. .reason {
  1405. padding: 0 32rpx 32rpx;
  1406. width: 686rpx;
  1407. min-height: 350rpx;
  1408. display: flex;
  1409. flex-direction: column;
  1410. box-sizing: border-box;
  1411. .resaon-title {
  1412. padding: 24rpx 0;
  1413. flex-shrink: 0;
  1414. line-height: 32rpx;
  1415. font-size: 32rpx;
  1416. box-sizing: border-box;
  1417. }
  1418. .resaon-textbox {
  1419. padding: 12rpx 16rpx 36rpx;
  1420. position: relative;
  1421. flex-grow: 1;
  1422. box-sizing: border-box;
  1423. border: 1rpx solid #979797;
  1424. // border-radius: 16rpx;
  1425. display: flex;
  1426. textarea {
  1427. flex-grow: 1;
  1428. box-sizing: border-box;
  1429. }
  1430. .lastlength {
  1431. position: absolute;
  1432. right: 32rpx;
  1433. bottom: 12rpx;
  1434. font-size: 24rpx;
  1435. box-sizing: border-box;
  1436. }
  1437. }
  1438. .button {
  1439. margin-top: 24rpx;
  1440. width: 100%;
  1441. display: flex;
  1442. justify-content: flex-end;
  1443. text {
  1444. padding: 10rpx 35rpx;
  1445. color: #fff;
  1446. background: #008EF2;
  1447. border-radius: 16rpx;
  1448. }
  1449. }
  1450. }
  1451. }
  1452. /deep/.u-tab-item {
  1453. border: 1rpx solid #dedede;
  1454. }
  1455. </style>