AI销管
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

details.vue 47 KiB

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