AI销管
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

details.vue 47 KiB

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